Interface VideoFrameProcessor.Listener
-
- Enclosing interface:
- VideoFrameProcessor
public static interface VideoFrameProcessor.Listener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEnded()
Called after theVideoFrameProcessor
has rendered its final output frame.void
onError(VideoFrameProcessingException exception)
Called when an exception occurs during asynchronous video frame processing.void
onOutputFrameAvailableForRendering(long presentationTimeUs)
Called when an output frame with the givenpresentationTimeUs
becomes available for rendering.void
onOutputSizeChanged(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 givenpresentationTimeUs
becomes 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
VideoFrameProcessor
should be released.
-
onEnded
void onEnded()
Called after theVideoFrameProcessor
has rendered its final output frame.
-
-