XnFPSCalculator.h File Reference
#include <XnPlatform.h>
#include <XnStatus.h>
Go to the source code of this file.
Typedef Documentation
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. |
This function marks that another frame was processed.
- Parameters:
-
| pFPS | [in] A pointer to an XnFPSData struct. |
| nNow | [in] Optional. Current time. When not provided, function will take it itself. |