OpenNI2 SDK  v2.3.0.81
Public 成员函数 | 所有成员列表
org.openni.VideoMode类 参考

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.

构造及析构函数说明

◆ VideoMode()

org.openni.VideoMode.VideoMode ( )
inline

Default constructor, creates an empty VideoMode object. Application programs should, in most cases, use the copy constructor to copy an existing valid video mode. This is much less error prone that creating and attempting to configure a new VideoMode from scratch.

成员函数说明

◆ getFps()

int org.openni.VideoMode.getFps ( )
inline

Getter function for the frame rate of this VideoMode.

返回
Current frame rate, measured in frames per second.

◆ getPixelFormat()

PixelFormat org.openni.VideoMode.getPixelFormat ( )
inline

Getter function for the pixel format of this VideoMode.

返回
Current pixel format setting of this VideoMode.

◆ getResolutionX()

int org.openni.VideoMode.getResolutionX ( )
inline

Getter function for the X resolution of this VideoMode.

返回
Current horizontal resolution of this VideoMode, in pixels.

◆ getResolutionY()

int org.openni.VideoMode.getResolutionY ( )
inline

Getter function for the Y resolution of this VideoMode.

返回
Current vertical resolution of this VideoMode, in pixels.

◆ setFps()

void org.openni.VideoMode.setFps ( int  fps)
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.

参数
fpsDesired new frame rate, measured in frames per second.

◆ setPixelFormat()

void org.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 org.openni.SensorInfo#getSupportedVideoModes() to obtain a list of valid video modes.

参数
formatDesired new pixel format for this VideoMode.

◆ setResolution()

void org.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 org.openni.SensorInfo#getSupportedVideoModes() to obtain a list of valid video modes.

参数
resolutionXDesired new horizontal resolution in pixels.
resolutionYDesired new vertical resolution in pixels.

该类的文档由以下文件生成: