java.lang.Object | |
↳ | dji.sdk.codec.DJICodecManager |
Class that handles encoding and decoding of media
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DJICodecManager(Context context, SurfaceTexture surfaceTexture, int width, int height)
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
cleanSurface()
Cleans the surface from the codec manager.
| ||||||||||
void |
destroyCodec()
Destroys the media codec.
| ||||||||||
Integer | getVideoHeight() | ||||||||||
Integer | getVideoWidth() | ||||||||||
void |
sendDataToDecoder(byte[] videoBuffer, int size)
Sends H264 raw video data to the decoder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor.
context | The context. |
---|---|
surfaceTexture | The surface texture view. |
width | The width of surface texture view. |
height | The height of surface texture view. |
Cleans the surface from the codec manager.
Destroys the media codec.
Sends H264 raw video data to the decoder.
videoBuffer | The video buffer data. |
---|---|
size | The data size. |