Interface VideoFrameProcessor.Listener
-
- Enclosing interface:
- VideoFrameProcessor
public static interface VideoFrameProcessor.Listener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEnded()Called after theVideoFrameProcessorhas rendered its final output frame.voidonError(VideoFrameProcessingException exception)Called when an exception occurs during asynchronous video frame processing.voidonOutputFrameAvailableForRendering(long presentationTimeUs)Called when an output frame with the givenpresentationTimeUsbecomes available for rendering.voidonOutputSizeChanged(int width, int height)Called when the output size changes.
-
-
-
Method Detail
-
onOutputSizeChanged
void onOutputSizeChanged(int width, int height)Called when the output size changes.The output size is the frame size in pixels after applying all effects.
The output size may differ from the size specified using
VideoFrameProcessor.setOutputSurfaceInfo(SurfaceInfo).
-
onOutputFrameAvailableForRendering
void onOutputFrameAvailableForRendering(long presentationTimeUs)
Called when an output frame with the givenpresentationTimeUsbecomes available for rendering.- Parameters:
presentationTimeUs- The presentation time of the frame, in microseconds.
-
onError
void onError(VideoFrameProcessingException exception)
Called when an exception occurs during asynchronous video frame processing.If an error occurred, consuming and producing further frames will not work as expected and the
VideoFrameProcessorshould be released.
-
onEnded
void onEnded()
Called after theVideoFrameProcessorhas rendered its final output frame.
-
-