38 void clear() { myProcessor =
nullptr; }
109 const char *view_name);
113 const char *view_name);
117 const char *view_name);
182 bool forward_transform=
true);
186 bool forward_transform=
true);
190 bool forward_transform);
193 bool forward_transform);
211 bool forward_transform =
true)
218 bool forward_transform =
true)
238 bool forward_transform =
true)
245 bool forward_transform =
true)
257 bool forward_transform =
true)
264 bool forward_transform =
true)
285 bool forward_transform =
true)
288 data, npixels, nchannels);
294 bool forward_transform =
true)
297 data, npixels, nchannels);
303 void *src_data,
void *dst_data,
int width,
int height,
304 int nchannels,
bool forward_transform =
true)
307 src_data, dst_data, width, height, nchannels);
314 int nchannels,
bool forward_transform =
true)
317 src_data, width, height, nchannels);
327 bool forward_xform =
true)
330 data, npixels, nchannels);
336 bool forward_transform =
true)
339 data, npixels, nchannels);
PXL_API bool isSceneLinear(const ColorSpace *s)
PXL_API void reload()
Reload the configuration.
PXL_API const char * getDescription(const ColorSpace *space)
Return the description of the color space.
PXL_API UT_StringHolder parseColorSpaceFromHolder(const UT_StringHolder &s)
PXL_API void getColorSpaces(UT_StringArray &names)
Returns a list of the supported color spaces.
PXL_API const char * getCompLogRole()
PXL_API void getActiveViews(UT_StringArray &names)
Returns the list of active views.
bool transformToView(const UT_StringHolder &src, const UT_StringHolder &display, const UT_StringHolder &view, fpreal32 *data, int npixels, int nchannels, bool forward_xform=true)
Transform from a colorspace to a display/view, including looks.
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
PXL_API const char * getDefaultView(const char *display=NULL)
Returns the current color space name.
PXL_API bool getViewsForDisplay(const char *display, UT_StringArray &view_names)
Return the list of views for a given display.
PXL_API const char * getDataRole()
bool is3DTransform(const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
PXL_API const char * getTransformNameForDisplayView(const char *display_name, const char *view_name)
Return the colorspace defined by the view for a given display.
PXL_API void getRoles(UT_StringArray &names)
Returns a list of the supported roles.
PXL_API bool transform(const PHandle &processor, fpreal32 *data, int npixels, int nchannels)
Transform pixels by a processor.
PXL_API const UT_StringHolder & getRawColorSpace()
GLint GLsizei GLsizei height
PXL_API bool isFloatPointSpace(const ColorSpace *space, bool &fp)
Set 'fp' to true if the color space is defined for FP, false for uint.
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
PXL_API const UT_StringHolder & pxlImageColorSpace(PXL_ColorSpace cs, const UT_StringHolder &ocioname)
Convert a PXL_ColorSpace to roughly the OCIO equivalent.
PXL_API const char * getSceneLinearRole()
PXL_API const char * getReferenceRole()
PXL_API bool getAllocationVars(const ColorSpace *space, bool &uniform, fpreal &min, fpreal &max, fpreal &offset)
Return the allocation variable meta data about the color space.
PXL_API const ColorSpace * lookupSpace(const UT_StringHolder &name)
GLuint const GLchar * name
PXL_API const UT_StringHolder & getsRGBColorSpace()
PXL_API const char * getDefaultDisplay()
Returns the current color space name.
PXL_API const char * parseColorSpaceFromString(const char *string)
PXL_API const UT_StringHolder & getLinearRec709ColorSpace()
A map of string to various well defined value types.
PXL_API bool isOCIOEnvSet(bool check_for_active_vars=true)
class OCIOEXPORT Processor
PXL_API const UT_StringRef & configFilePath()
The path and filename of the config file being used.
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
PXL_API bool getInfo(const ColorSpace *space, UT_Options &info)
bool isNoOpTransform(const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
PXL_API bool issRGB(const ColorSpace *s)
PXL_API void viewingRuleNames(UT_StringArray &names)
Get the viewing rule names.
PXL_API int addConfigChangeCB(UT_Functor< void > callback)
PXL_API const char * getColorSpaceForDisplayView(const char *display_name, const char *view_name)
Return the colorspace defined by the view for a given display.
PXL_API const char * getColorPickingRole()
class OCIOEXPORT ColorSpace
PXL_API void getLooks(UT_StringArray &looks)
Returns a list of looks (color transforms)
PXL_API const UT_Options & viewingRule(const UT_StringRef &name)
Lookup a viewing rule by the name.
PXL_API void getActiveDisplays(UT_StringArray &names)
Returns the list of active displays.
PXL_API PHandle lookupProcessor(const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, bool forward_transform=true)
PXL_API void removeConfigChangeCB(int id)
PXL_API const char * getDefaultRole()
PXL_API PHandle lookupViewProcessor(const UT_StringHolder &src, const UT_StringHolder &display, const UT_StringHolder &view, bool forward_transform)
bool isValidTransform(const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
PXL_API const UT_StringHolder & getRec709ColorSpace()
PXL_API const char * getLooksForDisplayView(const char *display_name, const char *view_name)
Return the looks attached to the view for a given display.