Typedefs | Functions
XnFPSCalculator.h File Reference
#include <XnPlatform.h>
#include <XnStatus.h>
Include dependency graph for XnFPSCalculator.h:

Go to the source code of this file.

Typedefs

typedef struct XnFPSDataImpl * XnFPSData

Functions

XN_C_API XnDouble xnFPSCalc (XnFPSData *pFPS, XnUInt32 nAverageOver=3000, XnUInt64 nNow=0)
XN_C_API XnStatus xnFPSFree (XnFPSData *pFPS)
XN_C_API XnStatus xnFPSInit (XnFPSData *pFPS, XnUInt32 nSamplesCount)
XN_C_API XnStatus xnFPSMarkFrame (XnFPSData *pFPS, XnUInt64 nNow=0)

Typedef Documentation

typedef struct XnFPSDataImpl* XnFPSData

Definition at line 39 of file XnFPSCalculator.h.


Function Documentation

XN_C_API XnDouble 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.
XN_C_API XnStatus xnFPSInit ( XnFPSData pFPS,
XnUInt32  nSamplesCount 
)

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.
XN_C_API XnStatus xnFPSMarkFrame ( XnFPSData pFPS,
XnUInt64  nNow = 0 
)

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.


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51