Extends
This class extends others, you can call their methods on an instance of ofBaseVideo too:
Documentation from code comments
A base class representing a video source.
~ofBaseVideo()
ofBaseVideo::~ofBaseVideo()
getPixelFormat()
ofPixelFormat ofBaseVideo::getPixelFormat()
Documentation from code comments
Returns: the current ofPixelFormat.
isFrameNew()
bool ofBaseVideo::isFrameNew()
Documentation from code comments
Returns: true if the pixel data was updated since the last call to update().
isInitialized()
bool ofBaseVideo::isInitialized()
Documentation from code comments
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 ofBaseVideo::setPixelFormat(ofPixelFormat pixelFormat)
Documentation from code comments
Set the requested ofPixelFormat.
Parameters:
pixelFormat the requested ofPixelFormat.
Returns: true if the format was successfully changed.
Last updated 星期二, 10 十一月 2026 23:36:11 UTC - fb2d27279e84b28dcc6d42cd76f15da2d9c8342d

If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue