#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 |
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.
openni::VideoMode::VideoMode | ( | ) | [inline] |
openni::VideoMode::VideoMode | ( | const VideoMode & | other | ) | [inline] |
int openni::VideoMode::getFps | ( | ) | const [inline] |
PixelFormat openni::VideoMode::getPixelFormat | ( | ) | const [inline] |
int openni::VideoMode::getResolutionX | ( | ) | const [inline] |
int openni::VideoMode::getResolutionY | ( | ) | const [inline] |
void openni::VideoMode::setFps | ( | int | fps | ) | [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. |
void openni::VideoMode::setPixelFormat | ( | PixelFormat | format | ) | [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. |
void openni::VideoMode::setResolution | ( | int | resolutionX, |
int | resolutionY | ||
) | [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 class SensorInfo [friend] |
friend class VideoFrameRef [friend] |
friend class VideoStream [friend] |