public interface IVideoEncoder extends IInvocable
IVideoEncoder
- video encoder.Modifier and Type | Interface and Description |
---|---|
static class |
IVideoEncoder.CallbackAdapter
CallbackAdapter - video decoder callback adapter. |
static interface |
IVideoEncoder.ICallback
ICallback - video encoder callback. |
static class |
IVideoEncoder.Method
Method - methods. |
Modifier and Type | Field and Description |
---|---|
static int |
B_FRAME
B_FRAME - 0x04 : B-frame. |
static int |
CONFIGURATION_FRAME
CONFIGURATION_FRAME - 0x10 : configuration frame. |
static int |
I_FRAME
I_FRAME - 0x01 : I-frame. |
static int |
P_FRAME
P_FRAME - 0x02 : P-frame. |
Modifier and Type | Method and Description |
---|---|
void |
encodeFrame(java.lang.Object tag,
int width,
int height,
byte[][] ycbcr420,
boolean forceKeyFrame,
IVideoEncoder.ICallback callback)
Encodes the frame.
|
void |
encodeFrame(java.lang.Object tag,
VideoFrame frame,
boolean forceKeyFrame,
IVideoEncoder.ICallback callback)
Encodes the frame.
|
int |
id()
Returns codec id (one of
Video constants). |
void |
release()
Release resources acquired by encoder.
|
invoke
static final int I_FRAME
I_FRAME
- 0x01 : I-frame.static final int P_FRAME
P_FRAME
- 0x02 : P-frame.static final int B_FRAME
B_FRAME
- 0x04 : B-frame.static final int CONFIGURATION_FRAME
CONFIGURATION_FRAME
- 0x10 : configuration frame.int id()
Video
constants).void encodeFrame(java.lang.Object tag, VideoFrame frame, boolean forceKeyFrame, IVideoEncoder.ICallback callback)
tag
- frame tagframe
- frame to encodeforceKeyFrame
- true
to encode key frame; if false
then encoder decides the type of the encoded framecallback
- callbackvoid encodeFrame(java.lang.Object tag, int width, int height, byte[][] ycbcr420, boolean forceKeyFrame, IVideoEncoder.ICallback callback)
tag
- frame tagwidth
- frame widthheight
- frame heightycbcr420
- frane ycbcr420 dataforceKeyFrame
- true
to encode key frame; if false
then encoder decides the type of the encoded framecallback
- callbackvoid release()