fm.liveswitch.yuv4mpeg.VideoRecorder Class Reference

A YUV4MPEG video recorder. More...

Public Member Functions

 VideoRecorder (String path)
 Initializes a new instance of the fm.liveswitch.yuv4mpeg.VideoRecorder class. More...
 

Protected Member Functions

void doUpdateHeader ()
 Updates the file header. More...
 
boolean doWrite (fm.liveswitch.VideoBuffer buffer, long presentationTimestamp)
 Write an encoded video frame. More...
 
void doWriteHeader ()
 Writes the file header. More...
 

Detailed Description

A YUV4MPEG video recorder.

Constructor & Destructor Documentation

◆ VideoRecorder()

fm.liveswitch.yuv4mpeg.VideoRecorder.VideoRecorder ( String  path)

Initializes a new instance of the fm.liveswitch.yuv4mpeg.VideoRecorder class.

Parameters
pathThe path.

Reimplemented from fm.liveswitch.VideoRecorder.

Member Function Documentation

◆ doUpdateHeader()

void fm.liveswitch.yuv4mpeg.VideoRecorder.doUpdateHeader ( )
protected

Updates the file header.

◆ doWrite()

boolean fm.liveswitch.yuv4mpeg.VideoRecorder.doWrite ( fm.liveswitch.VideoBuffer  buffer,
long  presentationTimestamp 
)
protected

Write an encoded video frame.

Parameters
bufferThe encoded buffer.
presentationTimestampThe presentation timestamp.
Returns
true
if the encoded frame was written successfully; otherwise,
false

◆ doWriteHeader()

void fm.liveswitch.yuv4mpeg.VideoRecorder.doWriteHeader ( )
protected

Writes the file header.