ofDocsdocumentation types ofBaseVideo

ofBaseVideo


close( )

void close()

Close the video source.


getPixelFormat( )

ofPixelFormat getPixelFormat()

Returns: the current ofPixelFormat.


isFrameNew( )

bool isFrameNew()

Returns: true if the pixel data was updated since the last call to update().


isInitialized( )

bool isInitialized()

Determine if the video source is initialized.

Video sources such as cameras are often initialized with a setup() method. Video sources such as movie players are often initialized with a load() method.

Returns: true if the video source is initialized.


setPixelFormat( ... )

bool setPixelFormat(ofPixelFormat pixelFormat)

Set the requested ofPixelFormat.

Parameters:

pixelFormat the requested ofPixelFormat.

Returns: true if the format was successfully changed.


~ofBaseVideo( )

~ofBaseVideo()

Destroy the ofBaseVideo.