43 void clear() { myProcessor =
nullptr; }
117 const char *view_name);
121 const char *view_name);
125 const char *view_name);
190 bool forward_transform=
true,
191 const BitDepth src_depth=DefaultBitDepth,
192 const BitDepth dst_depth=DefaultBitDepth);
196 bool forward_transform=
true,
197 const BitDepth src_depth=DefaultBitDepth,
198 const BitDepth dst_depth=DefaultBitDepth);
202 bool forward_transform,
203 const BitDepth src_depth=DefaultBitDepth,
204 const BitDepth dst_depth=DefaultBitDepth);
207 bool forward_transform,
208 const BitDepth src_depth=DefaultBitDepth,
209 const BitDepth dst_depth=DefaultBitDepth);
215 const int nchannels);
218 const int height,
const int src_channels,
219 const int dst_channels);
240 return processor.
isNoOp();
248 return processor.
is3D();
261 bool forward_transform =
true)
264 data, npixels, nchannels);
270 bool forward_transform =
true)
273 data, npixels, nchannels);
282 bool forward_xform =
true)
285 data, npixels, nchannels);
291 bool forward_transform =
true)
294 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.
PXL_API PHandle lookupProcessor(const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, bool forward_transform=true, const BitDepth src_depth=DefaultBitDepth, const BitDepth dst_depth=DefaultBitDepth)
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()
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 const UT_StringHolder & getSceneLinearColorSpace()
PXL_API void getRoles(UT_StringArray &names)
Returns a list of the supported roles.
PXL_API PHandle lookupViewProcessor(const UT_StringHolder &src, const UT_StringHolder &display, const UT_StringHolder &view, bool forward_transform, const BitDepth src_depth=DefaultBitDepth, const BitDepth dst_depth=DefaultBitDepth)
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)
bool is3DTransform(const PHandle &processor)
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)
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 transform(const PHandle &processor, fpreal32 *data, const int npixels, const int nchannels)
Transform pixels by a processor.
PXL_API bool getInfo(const ColorSpace *space, UT_Options &info)
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.
bool isNoOpTransform(const PHandle &processor)
PXL_API void removeConfigChangeCB(int id)
PXL_API const char * getDefaultRole()
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.
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
bool isValidTransform(const PHandle &processor)