Interface VideoFile
access this type via: media.video.VideoFile (provides, requires or uses)
--- semantic variants: divf
API to read a video file.
Functions
bool validHeader(byte content[])
VideoHeader readHeader(byte content[])
VideoFrame readFrame(byte content[], int offset)
byte[] writeHeader(VideoHeader hdr)
byte[] writeFrame(VideoFrame f)
bool validHeader(byte content[])
Checks if a video file has a valid header, for a given semantic variant of this API.
VideoHeader readHeader(byte content[])
Reads the video header.
VideoFrame readFrame(byte content[], int offset)
Reads a frame of (usually encoded) video, from the given offset of a byte array.
byte[] writeHeader(VideoHeader hdr)
Writes the video header to a byte array.
byte[] writeFrame(VideoFrame f)
Writes a frame of (usually encoded) video to a byte array.