class YuvDataCallback
interface YuvDataCallback
|
Description:
Interface for the YUV data callback.
Class Members:
Callback Method
method onYuvDataReceived
void onYuvDataReceived(MediaFormat format, ByteBuffer yuvFrame, int dataSize, int width, int height)
|
Description:
Callback method for processing the yuv frame data from hardware decoder. Only works well after enabledYuvData
is invoked and set as true
.
MediaFormat format | the format of YUV. |
ByteBuffer yuvFrame | YUV data buffer in the codec. |
int dataSize | size of the YUV data |
int width | width of the video |
int height | height of the video |