OpenNI 1.5.4
XnFPSCalculator.h
Go to the documentation of this file.
1/****************************************************************************
2* *
3* OpenNI 1.x Alpha *
4* Copyright (C) 2011 PrimeSense Ltd. *
5* *
6* This file is part of OpenNI. *
7* *
8* OpenNI is free software: you can redistribute it and/or modify *
9* it under the terms of the GNU Lesser General Public License as published *
10* by the Free Software Foundation, either version 3 of the License, or *
11* (at your option) any later version. *
12* *
13* OpenNI is distributed in the hope that it will be useful, *
14* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16* GNU Lesser General Public License for more details. *
17* *
18* You should have received a copy of the GNU Lesser General Public License *
19* along with OpenNI. If not, see <http://www.gnu.org/licenses/>. *
20* *
21****************************************************************************/
22#ifndef __XN_FPS_CALCULATOR_H__
23#define __XN_FPS_CALCULATOR_H__
24
25//---------------------------------------------------------------------------
26// Includes
27//---------------------------------------------------------------------------
28#include <XnPlatform.h>
29#include <XnStatus.h>
30
31//---------------------------------------------------------------------------
32// Types
33//---------------------------------------------------------------------------
34struct XnFPSDataImpl;
35typedef struct XnFPSDataImpl* XnFPSData;
36
37//---------------------------------------------------------------------------
38// Exported Functions
39//---------------------------------------------------------------------------
46XN_C_API XnStatus XN_C_DECL xnFPSInit(XnFPSData* pFPS, XnUInt32 nSamplesCount);
47
54XN_C_API XnStatus XN_C_DECL xnFPSMarkFrame(XnFPSData* pFPS, XnUInt64 nNow = 0);
55
63XN_C_API XnDouble XN_C_DECL xnFPSCalc(XnFPSData* pFPS, XnUInt32 nAverageOver = 3000, XnUInt64 nNow = 0);
64
71
72#endif //__XN_FPS_CALCULATOR_H__
XN_C_API XnStatus XN_C_DECL xnFPSMarkFrame(XnFPSData *pFPS, XnUInt64 nNow=0)
XN_C_API XnStatus XN_C_DECL xnFPSInit(XnFPSData *pFPS, XnUInt32 nSamplesCount)
XN_C_API XnStatus XN_C_DECL xnFPSFree(XnFPSData *pFPS)
XN_C_API XnDouble XN_C_DECL xnFPSCalc(XnFPSData *pFPS, XnUInt32 nAverageOver=3000, XnUInt64 nNow=0)
struct XnFPSDataImpl * XnFPSData
Definition: XnFPSCalculator.h:35
#define XN_C_API
Definition: XnPlatform.h:129
XnUInt32 XnStatus
Definition: XnStatus.h:34