public static class IVideoDecoder.CallbackAdapter extends java.lang.Object implements IVideoDecoder.ICallback
CallbackAdapter
- video decoder callback adapter.Constructor and Description |
---|
CallbackAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onDecodedFrame(VideoFrame frame)
Notifies about decoded
frame . |
void |
onDelayedFrame(java.lang.Object tag)
Notifies about delayed frame.
|
void |
onException(java.lang.Object tag,
java.lang.Exception e)
Notifies about decoding exception
e . |
void |
onFrameInfo(int width,
int height,
int[] offset)
Notifies about frame info.
|
public void onFrameInfo(int width, int height, int[] offset)
IVideoDecoder.ICallback
Note:
- This method is invoked only once when width/height/crop offset is changed
and before onDelayed*, onDecoded* methods invocation.
onFrameInfo
in interface IVideoDecoder.ICallback
width
- frame widthheight
- frame heightoffset
- frame crop offset (top, left, bottom, right),
if null
then all offset parameters are 0public void onDelayedFrame(java.lang.Object tag)
IVideoDecoder.ICallback
onDelayedFrame
in interface IVideoDecoder.ICallback
tag
- frame tagpublic void onDecodedFrame(VideoFrame frame)
IVideoDecoder.ICallback
frame
.onDecodedFrame
in interface IVideoDecoder.ICallback
frame
- decoded framepublic void onException(java.lang.Object tag, java.lang.Exception e)
IVideoDecoder.ICallback
e
.onException
in interface IVideoDecoder.ICallback
tag
- frame tage
- exception