This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
A base class representing a video source. More...
#include <ofVideoBaseTypes.h>

Public Member Functions | |
virtual | ~ofBaseVideo () |
Destroy the ofBaseVideo. | |
virtual bool | isFrameNew () const =0 |
virtual void | close ()=0 |
Close the video source. | |
virtual bool | isInitialized () const =0 |
Determine if the video source is initialized. | |
virtual bool | setPixelFormat (ofPixelFormat pixelFormat)=0 |
Set the requested ofPixelFormat. | |
virtual ofPixelFormat | getPixelFormat () const =0 |
![]() | |
virtual | ~ofBaseHasPixels_ () |
Destroy the ofAbstractHasPixels. | |
virtual ofPixels_< unsigned char > & | getPixels ()=0 |
Get a reference to the underlying ofPixels. | |
virtual const ofPixels_< unsigned char > & | getPixels () const=0 |
Get a const reference to the underlying ofPixels. | |
![]() | |
virtual | ~ofAbstractHasPixels () |
Destroy the ofAbstractHasPixels. | |
![]() | |
virtual | ~ofBaseUpdates () |
Destroy the ofBaseUpdates. | |
virtual void | update ()=0 |
Update the object's state. | |
Detailed Description
A base class representing a video source.
Constructor & Destructor Documentation
◆ ~ofBaseVideo()
|
inlinevirtual |
Destroy the ofBaseVideo.
Member Function Documentation
◆ close()
|
pure virtual |
Close the video source.
Implemented in ofAVFoundationPlayer, ofDirectShowGrabber, ofDirectShowPlayer, ofGstVideoUtils, ofGstVideoGrabber, ofGstVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.
◆ getPixelFormat()
|
pure virtual |
- Returns
- the current ofPixelFormat.
Implemented in ofAVFoundationPlayer, ofDirectShowGrabber, ofDirectShowPlayer, ofGstVideoUtils, ofGstVideoGrabber, ofGstVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.
◆ isFrameNew()
|
pure virtual |
- Returns
- true if the pixel data was updated since the last call to update().
Implemented in ofAVFoundationPlayer, ofDirectShowGrabber, ofDirectShowPlayer, ofGstVideoUtils, ofGstVideoGrabber, ofGstVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.
◆ isInitialized()
|
pure virtual |
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.
Implemented in ofDirectShowGrabber, ofGstVideoUtils, ofGstVideoGrabber, ofBaseVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.
◆ setPixelFormat()
|
pure virtual |
Set the requested ofPixelFormat.
- Parameters
-
pixelFormat the requested ofPixelFormat.
- Returns
- true if the format was successfully changed.
Implemented in ofAVFoundationPlayer, ofDirectShowGrabber, ofDirectShowPlayer, ofGstVideoUtils, ofGstVideoGrabber, ofGstVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.
The documentation for this class was generated from the following file:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/video/ofVideoBaseTypes.h