#include <OpenNI.h>
Public Member Functions | |
int | getFps () const |
PixelFormat | getPixelFormat () const |
int | getResolutionX () const |
int | getResolutionY () const |
VideoMode & | operator= (const VideoMode &other) |
void | setFps (int fps) |
void | setPixelFormat (PixelFormat format) |
void | setResolution (int resolutionX, int resolutionY) |
VideoMode () | |
VideoMode (const VideoMode &other) | |
Friends | |
class | SensorInfo |
class | VideoFrameRef |
class | VideoStream |
Additional Inherited Members | |
Private Attributes inherited from OniVideoMode | |
int | fps |
OniPixelFormat | pixelFormat |
int | resolutionX |
int | resolutionY |
Encapsulates a group of settings for a VideoStream. Settings stored include frame rate, resolution, and pixel format.
This class is used as an input for changing the settings of a VideoStream, as well as an output for reporting the current settings of that class. It is also used by SensorInfo to report available video modes of a stream.
Recommended practice is to use SensorInfo::getSupportedVideoModes() to obtain a list of valid video modes, and then to use items from that list to pass new settings to VideoStream. This is much less likely to produce an invalid video mode than instantiating and manually changing objects of this class.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Setter function for the frame rate. Application use of this function is not recommended. Instead, use SensorInfo::getSupportedVideoModes() to obtain a list of valid video modes.
[in] | fps | Desired new frame rate, measured in frames per second. |
|
inline |
Setter function for the pixel format of this VideoMode. Application use of this function is not recommended. Instead, use SensorInfo::getSupportedVideoModes() to obtain a list of valid video modes.
[in] | format | Desired new pixel format for this VideoMode. |
|
inline |
Setter function for the resolution of this VideoMode. Application use of this function is not recommended. Instead, use SensorInfo::getSupportedVideoModes() to obtain a list of valid video modes.
[in] | resolutionX | Desired new horizontal resolution in pixels. |
[in] | resolutionY | Desired new vertical resolution in pixels. |
|
friend |
|
friend |
|
friend |