HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~CL_RealtimeStamp() override;
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  void reset(fpreal val = 0.0) override;
42 
43 private:
44 
45  void doShiftOp(int nsamples,const fpreal *source,
46  int nshift) override;
47  void doWindowOp(int nsamples, fpreal *dest) override;
48 
49  void doStamp(int nsamples, const fpreal *source);
50  void doConvolve(int nsamples, const fpreal *source);
51 
52  int myStampSize;
53  const fpreal *myStampData;
54  int myFunction;
55  int myStampOn;
56  int myLastStampedSample;
57  fpreal myStampThreshold;
58  void (*myCallback)(void *,int,CL_RealtimeStamp*);
59  void *myData;
60 };
61 
62 #endif
GLsizeiptr size
Definition: glew.h:1681
GLuint const GLfloat * val
Definition: glew.h:2794
GLsizei GLsizei GLchar * source
Definition: glew.h:1832
#define CL_API
Definition: CL_API.h:10
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
void
Definition: png.h:1083
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
virtual void reset(fpreal val=0.0)
GLenum func
Definition: glcorearb.h:782
fpreal64 fpreal
Definition: SYS_Types.h:277
int getLastStampedIndex() const