DJI Mobile SDK Documentation

      class YuvDataCallback

      interface YuvDataCallback
      Package:dji.sdk.codec
      Description:

      Interface for the YUV data callback.

      Class Members:

      Callback Method

      Yuv Data Received
      method
      method onYuvDataReceived
      void onYuvDataReceived(MediaFormat format, ByteBuffer yuvFrame, int dataSize, int width, int height)
      Package:dji.sdk.codec
      Description:

      Callback method for processing the yuv frame data from hardware decoder. Only works well after enabledYuvData is invoked and set as true.

      Input Parameters:
      MediaFormat formatthe format of YUV.
      ByteBuffer yuvFrameYUV data buffer in the codec.
      int dataSizesize of the YUV data
      int widthwidth of the video
      int heightheight of the video