OpenNI 1.5.4
|
Go to the source code of this file.
Typedefs | |
typedef struct XnFPSDataImpl * | XnFPSData |
Functions | |
XN_C_API XnStatus XN_C_DECL | xnFPSInit (XnFPSData *pFPS, XnUInt32 nSamplesCount) |
XN_C_API XnStatus XN_C_DECL | xnFPSMarkFrame (XnFPSData *pFPS, XnUInt64 nNow=0) |
XN_C_API XnDouble XN_C_DECL | xnFPSCalc (XnFPSData *pFPS, XnUInt32 nAverageOver=3000, XnUInt64 nNow=0) |
XN_C_API XnStatus XN_C_DECL | xnFPSFree (XnFPSData *pFPS) |
Typedef Documentation
typedef struct XnFPSDataImpl* XnFPSData |
Function Documentation
XN_C_API XnDouble XN_C_DECL xnFPSCalc | ( | XnFPSData * | pFPS, |
XnUInt32 | nAverageOver = 3000 , |
||
XnUInt64 | nNow = 0 |
||
) |
This function calculates the average FPS over the last frames.
- Parameters:
-
pFPS [in] A pointer to an XnFPSData struct. nAverageOver [in] The number of milliseconds to average over. nNow [in] Optional. Current time. When not provided, function will take it itself.
This function frees the FPS calculator.
- Parameters:
-
pFPS [in] A pointer to an XnFPSData struct.
This function initializes the FPS calculator.
- Parameters:
-
pFPS [in] A pointer to an XnFPSData struct. nSamplesCount [in] The number of last frames to be kept.
Generated on Wed May 16 2012 10:16:05 for OpenNI 1.5.4 by 1.7.5.1