public class

DJICodecManager

extends Object
java.lang.Object
   ↳ dji.sdk.codec.DJICodecManager

Class Overview

Class that handles encoding and decoding of media

Summary

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
From class java.lang.Object

Public Constructors

public DJICodecManager (Context context, SurfaceTexture surfaceTexture, int width, int height)

Constructor.

Parameters
context The context.
surfaceTexture The surface texture view.
width The width of surface texture view.
height The height of surface texture view.

Public Methods

public void cleanSurface ()

Cleans the surface from the codec manager.

public void destroyCodec ()

Destroys the media codec.

public Integer getVideoHeight ()

public Integer getVideoWidth ()

public void sendDataToDecoder (byte[] videoBuffer, int size)

Sends H264 raw video data to the decoder.

Parameters
videoBuffer The video buffer data.
size The data size.