HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CL_RealtimeStamp.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CL_RealtimeStamp.h ( Clip Library, C++)
7  *
8  * COMMENTS:
9  * Does a realtime stamp or convolve
10  *
11  */
12 
13 
14 #ifndef __CL_RealtimeStamp__
15 #define __CL_RealtimeStamp__
16 
17 #include "CL_API.h"
18 #include "CL_SlidingWindow.h"
19 #include <SYS/SYS_Types.h>
20 
21 
23 {
24 public:
25  enum {
26  REALTIME_STAMP = 0,
27  REALTIME_CONVOLVE = 1
28  };
29 
31  virtual ~CL_RealtimeStamp();
32 
33  void setStampData(int size, const fpreal *data, fpreal threshold);
34  void setFunction(int func);
35  void setStampState(int state);
36  int getStampState();
37  void setStampCallback(void (*callback)(void *,int,CL_RealtimeStamp*),
38  void *data);
39 
40  int getLastStampedIndex() const { return myLastStampedSample; }
41  virtual void reset(fpreal val = 0.0);
42 
43 private:
44 
45  virtual void doShiftOp(int nsamples,const fpreal *source, int nshift);
46  virtual void doWindowOp(int nsamples, fpreal *dest);
47 
48  void doStamp(int nsamples, const fpreal *source);
49  void doConvolve(int nsamples, const fpreal *source);
50 
51  int myStampSize;
52  const fpreal *myStampData;
53  int myFunction;
54  int myStampOn;
55  int myLastStampedSample;
56  fpreal myStampThreshold;
57  void (*myCallback)(void *,int,CL_RealtimeStamp*);
58  void *myData;
59 };
60 
61 #endif
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLsizeiptr size
Definition: glcorearb.h:663
#define CL_API
Definition: CL_API.h:10
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
virtual void reset(fpreal val=0.0)
GLboolean * data
Definition: glcorearb.h:130
double fpreal
Definition: SYS_Types.h:263
GLenum func
Definition: glcorearb.h:782
typedef int
Definition: png.h:1175
GLuint GLfloat * val
Definition: glcorearb.h:1607
int getLastStampedIndex() const