Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rtc.video.ViESurfaceRenderer Class Reference
Inheritance diagram for io.agora.rtc.video.ViESurfaceRenderer:

Public Member Functions

 ViESurfaceRenderer (SurfaceView view)
 
void surfaceChanged (SurfaceHolder holder, int format, int in_width, int in_height)
 
void surfaceCreated (SurfaceHolder holder)
 
void surfaceDestroyed (SurfaceHolder holder)
 
Bitmap CreateBitmap (int width, int height)
 
ByteBuffer CreateByteBuffer (int width, int height)
 
void SetCoordinates (float left, float top, float right, float bottom)
 
void DrawByteBuffer ()
 
void DrawBitmap ()
 

Member Function Documentation

◆ CreateByteBuffer()

ByteBuffer io.agora.rtc.video.ViESurfaceRenderer.CreateByteBuffer ( int  width,
int  height 
)

Fixed https://jira.agoralab.co/browse/MS-10534 by Jinbin Xie: Do not do this check, this is an obvious bug, because if changed the width or height, then the bitmap and byteBuffer would not be recreated according to the new width/height, so the logics in AndroidSurfaceViewChannel::DeliverFrame would be useless indeed, and lead to crash in function I422ToRGB565Row_NEON at last. – Lionfore Hao Jan 27th, 2020