![]() |
OpenNI2 SDK
v2.3.0.81
|
Public 成员函数 | |
VideoMode () | |
VideoMode (int resX, int resY, int fps, int pixelFormat) | |
int | hashCode () |
boolean | equals (Object obj) |
PixelFormat | getPixelFormat () |
int | getResolutionX () |
int | getResolutionY () |
int | getFps () |
void | setPixelFormat (PixelFormat format) |
void | setResolution (int resolutionX, int resolutionY) |
void | setFps (int fps) |
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 org.openni.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 |
Getter function for the frame rate of this VideoMode.
|
inline |
|
inline |
|
inline |
|
inline |
Setter function for the frame rate. Application use of this function is not recommended. Instead, use org.openni.SensorInfo#getSupportedVideoModes() to obtain a list of valid video modes.
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 org.openni.SensorInfo#getSupportedVideoModes() to obtain a list of valid video modes.
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 org.openni.SensorInfo#getSupportedVideoModes() to obtain a list of valid video modes.
resolutionX | Desired new horizontal resolution in pixels. |
resolutionY | Desired new vertical resolution in pixels. |