44 #define PXL_LOOKUP_1D 0x3F
45 #define PXL_SEPARATE_CHANNELS 0x10
46 #define PXL_SINGLE_CHANNEL 0x20
47 #define PXL_ILLEGAL_MATCH 0x30
48 #define PXL_LOG_SAMPLE 0x100
57 int64 getMemoryUsage(
bool inclusive)
const;
64 void evalLUT(
float color[3])
const;
70 void set3DLUT(
int size,
float *lut);
76 float black=0.0
f,
float white=1.0
f,
82 fpreal indexToValue(
int i)
const;
91 bool getLogSampling()
const;
92 float getLogBias()
const;
93 int getNumChannels()
const;
94 int getTableSize()
const;
95 float getBlackPoint()
const;
96 float getWhitePoint()
const;
97 void getDomain(
float &
s,
float &e)
const;
98 void getRange(
float &s,
float &e)
const;
105 void setLogSampling(
bool log);
106 void setLogBias(
float bias);
108 void setNumChannels(
int num);
109 void setTableSize(
int size);
110 void setBlackWhitePoints(
float b,
float w);
111 void setDomain(
float s,
float e);
112 void setRange(
float s,
float e);
113 void invert(
int newsize = 0);
118 bool is3DLUT()
const {
return myCubeSize != 0; }
130 unsigned w = 0)
const;
135 float black,
float white,
136 float from = 0.0
f,
float to = 1.0
f)
const;
139 void eval1DLUT(
float color[3])
const;
140 void get1DLUT(
float *lut[4],
int size,
float b,
float w,
141 float sc,
float sh,
float gamma)
const;
147 int comp = -1)
const;
150 void eval3DLUT(
float color[3])
const;
155 void copy3DLUT(
float *lut,
float *prelut = 0)
const;
162 float black = 0.0
f,
float white = 1.0
f,
163 int component = -1)
const;
167 bool load(
const char *
filename,
bool header_only =
false);
168 bool save(
const char *
filename,
bool half_prec=
false)
const;
171 bool load(FILE *fp,
bool header_only);
172 bool loadBinary(FILE *fp,
bool header_only);
173 bool save(FILE *fp)
const;
174 bool saveBinary(FILE *fp,
bool half_prec =
false)
const;
184 bool buildGamma(
fpreal gamma,
194 bool buildOpenColorIO(
const char *src_color_space,
195 const char *dest_color_space,
196 const char * looks = NULL);
211 void *getTextureID()
const;
212 void clearTextureID();
215 void *getPreLutID()
const;
222 inline void lerpPreLUT(
float &color,
float prelut_scale,
223 const fpreal *prelut,
int prelut_last)
const;
225 void save1D(FILE *fp,
bool bin,
bool half =
false)
const;
226 void save3D(FILE *fp,
bool bin,
bool half =
false)
const;
GLboolean GLboolean GLboolean b
GT_API const UT_StringHolder filename
float getPreShift() const
void setPreLutID(void *id)
GLubyte GLubyte GLubyte GLubyte w
GLint GLint GLsizei GLint GLenum GLenum type
HUSD_API const char * raster()
void setTextureID(void *id)
GLint GLint GLsizei GLint GLenum format
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER T clip(const T &p, const Box< T > &box)