public interface VideoReader.FrameCallback

Callback used by VideoReader#readFrames(float, FrameCallback) to receive frames as they are decoded.

Methods

public abstract boolean frame(VideoFrame frame)Called once per decoded output frame.

Method details

frame

public abstract boolean frame(VideoFrame frame)
Called once per decoded output frame.

Parameters

frame VideoFrame
the decoded frame

Returns

true to continue decoding, false to stop early