HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
COP2_ColorCurve.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: COP2_Bright.h
7  *
8  * COMMENTS:
9  * ColorCurve COP.
10  */
11 #ifndef _COP2_COLORCURVE_H_
12 #define _COP2_COLORCURVE_H_
13 
14 #include "COP2_API.h"
15 #define ARG_COLORCURVE_EDIT (myParmBase + 0)
16 #define ARG_COLORCURVE_EXTEND (myParmBase + 1)
17 // label
18 #define ARG_COLORCURVE_USE_COMP (myParmBase + 3)
19 #define ARG_COLORCURVE_ALL (myParmBase + 4)
20 #define ARG_COLORCURVE_RED (myParmBase + 5)
21 #define ARG_COLORCURVE_GREEN (myParmBase + 6)
22 #define ARG_COLORCURVE_BLUE (myParmBase + 7)
23 #define ARG_COLORCURVE_ALPHA (myParmBase + 8)
24 
25 #include "COP2_PixelOp.h"
26 
28 {
29 public:
30 
31  static OP_Node *myConstructor(OP_Network*, const char *,
32  OP_Operator *);
35  static PRM_Template myTemplateList[];
36  static CH_LocalVariable myVariableList[];
37  static const char * myInputLabels[];
38 
39  static int componentModeChanged(void *, int, float,
40  const PRM_Template *);
41  static int globalChanged(void *, int, float,
42  const PRM_Template *);
43  static int redChanged(void *, int, float,
44  const PRM_Template *);
45  static int greenChanged(void *, int, float,
46  const PRM_Template *);
47  static int blueChanged(void *, int, float,
48  const PRM_Template *);
49  static int alphaChanged(void *, int, float,
50  const PRM_Template *);
51 
52  bool areComponentsModified();
53 
54  void componentModeChanged();
55 protected:
57  int array_index, float t,
58  int xres, int yres,
59  int thread) override;
60 
61  bool isFrameEffectHandled() override { return false; }
62 
63  bool updateParmsFlags() override;
64 private:
65  COP2_ColorCurve(OP_Network *parent, const char *name,
66  OP_Operator *entry);
67  ~COP2_ColorCurve() override;
68 
69 
70 
71  bool EXTEND_SLOPE()
72  { return (bool)evalInt(ARG_COLORCURVE_EXTEND,0,0.0f); }
73 
74  int COLOR_CURVE_ALL() {return evalInt(ARG_COLORCURVE_ALL,0,0.0f);}
75  bool COMPONENTS() {return evalInt(ARG_COLORCURVE_USE_COMP,0,0.0f);}
76 
77  int COLOR_CURVE_COMP(int index)
78  { return evalInt(ARG_COLORCURVE_RED+index,0,0.0f); }
79 
80  void COLORCURVE_POINT_ALL(int index, float &x, float &y, float &s,
81  float t);
82  void COLORCURVE_POINT_COMP(int comp, int index, float &x, float &y,
83  float &s, float t);
84  int myParmBase;
85 };
86 #endif
static OP_TemplatePair myTemplatePair
bool isFrameEffectHandled() override
GLdouble s
Definition: glad.h:3009
GLint y
Definition: glcorearb.h:103
#define ARG_COLORCURVE_RED
#define ARG_COLORCURVE_EXTEND
GLfloat f
Definition: glcorearb.h:1926
bool updateParmsFlags() override
GLuint const GLchar * name
Definition: glcorearb.h:786
GLint GLenum GLint x
Definition: glcorearb.h:409
GLdouble t
Definition: glad.h:2397
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
#define COP2_API
Definition: COP2_API.h:10
GLuint index
Definition: glcorearb.h:786
exint evalInt(int pi, int vi, fpreal t) const
#define ARG_COLORCURVE_ALL
#define ARG_COLORCURVE_USE_COMP
static OP_VariablePair myVariablePair
virtual RU_PixelFunction * addPixelFunction(const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread)=0