11 #ifndef _COP2_KEYBASE_H_
12 #define _COP2_KEYBASE_H_
38 virtual bool hasSpillParms()
const;
39 virtual void setColorParms(
float hmin,
float hmax,
40 float smin,
float smax,
41 float lmin,
float lmax,
44 virtual void setSpillParms(
float hmin,
float hmax,
45 float smin,
float smax,
46 float lmin,
float lmax,
49 virtual void setStateControl(
int state);
52 static float hueInterp(
float v1,
float v2,
float w);
53 static float linear(
float v1,
float v2,
float w);
56 static float hueComp(
float h,
float hue1,
float hue2,
float spill = 0.0
f,
57 float (*ifunc)(
float) = 0);
58 static float linearComp(
float v,
float v1,
float v2,
float spill = 0.0
f,
59 float (*ifunc)(
float) = 0);
62 static void expandRegion(
float h,
float s,
float l,
63 float &hmin,
float &hmax,
64 float &smin,
float &smax,
65 float &lmin,
float &lmax);
88 float val[4],
float key);
121 virtual void getShaderAndConstants(
COP2_Context &context,
void getInputDependenciesForOutputArea(COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas) override
virtual OP_ERROR doCookMyTile(COP2_Context &context, TIL_TileList *tiles)=0
virtual int getSuperSample(COP2_Context &)
GLfloat GLfloat GLfloat v2
IMATH_NAMESPACE::V2f float
GLuint const GLchar * name
float(* cop2_InterpFunc)(float w)
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
float(* COP2_KeyFunction)(void *data, const float val[4])
float(* cop2_Interpolate)(float v1, float v2, float w)
TIL_Sequence * cookSequenceInfo(OP_ERROR &error) override