HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PXL_OCIO.h File Reference
#include "PXL_API.h"
#include "PXL_Common.h"
#include <SYS/SYS_Types.h>
#include <UT/UT_Functor.h>
+ Include dependency graph for PXL_OCIO.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PXL_OCIO::PHandle
 

Namespaces

 PXL_OCIO
 Abstract interface to OpenColorIO.
 

Functions

PXL_API const UT_StringRefPXL_OCIO::configFilePath ()
 The path and filename of the config file being used. More...
 
PXL_API bool PXL_OCIO::isOCIOEnvSet (bool check_for_active_vars=true)
 
PXL_API const char * PXL_OCIO::getDefaultDisplay ()
 Returns the current color space name. More...
 
PXL_API const char * PXL_OCIO::getDefaultView (const char *display=NULL)
 Returns the current color space name. More...
 
PXL_API bool PXL_OCIO::getViewsForDisplay (const char *display, UT_StringArray &view_names)
 Return the list of views for a given display. More...
 
PXL_API void PXL_OCIO::getActiveDisplays (UT_StringArray &names)
 Returns the list of active displays. More...
 
PXL_API void PXL_OCIO::getActiveViews (UT_StringArray &names)
 Returns the list of active views. More...
 
PXL_API void PXL_OCIO::getColorSpaces (UT_StringArray &names)
 Returns a list of the supported color spaces. More...
 
PXL_API void PXL_OCIO::getLooks (UT_StringArray &looks)
 Returns a list of looks (color transforms) More...
 
PXL_API void PXL_OCIO::getRoles (UT_StringArray &names)
 Returns a list of the supported roles. More...
 
PXL_API void PXL_OCIO::reload ()
 Reload the configuration. More...
 
PXL_API const char * PXL_OCIO::getDefaultRole ()
 
PXL_API const char * PXL_OCIO::getReferenceRole ()
 
PXL_API const char * PXL_OCIO::getDataRole ()
 
PXL_API const char * PXL_OCIO::getSceneLinearRole ()
 
PXL_API const char * PXL_OCIO::getCompLogRole ()
 
PXL_API const char * PXL_OCIO::getColorPickingRole ()
 
PXL_API const UT_StringHolderPXL_OCIO::getsRGBColorSpace ()
 
PXL_API UT_StringHolder PXL_OCIO::getsRGBColorSpace (const char *display)
 
PXL_API const UT_StringHolderPXL_OCIO::getRec709ColorSpace ()
 
PXL_API const UT_StringHolderPXL_OCIO::getLinearRec709ColorSpace ()
 
PXL_API const UT_StringHolderPXL_OCIO::getRawColorSpace ()
 
PXL_API const char * PXL_OCIO::getColorSpaceForDisplayView (const char *display_name, const char *view_name)
 Return the colorspace defined by the view for a given display. More...
 
PXL_API const char * PXL_OCIO::getTransformNameForDisplayView (const char *display_name, const char *view_name)
 Return the colorspace defined by the view for a given display. More...
 
PXL_API const char * PXL_OCIO::getLooksForDisplayView (const char *display_name, const char *view_name)
 Return the looks attached to the view for a given display. More...
 
PXL_API const char * PXL_OCIO::parseColorSpaceFromString (const char *string)
 
PXL_API UT_StringHolder PXL_OCIO::parseColorSpaceFromHolder (const UT_StringHolder &s)
 
PXL_API const UT_StringHolderPXL_OCIO::pxlImageColorSpace (PXL_ColorSpace cs, const UT_StringHolder &ocioname)
 Convert a PXL_ColorSpace to roughly the OCIO equivalent. More...
 
PXL_API const ColorSpace * PXL_OCIO::lookupSpace (const UT_StringHolder &name)
 
PXL_API const char * PXL_OCIO::getName (const ColorSpace *space)
 Return the name of the color space. More...
 
PXL_API const char * PXL_OCIO::getDescription (const ColorSpace *space)
 Return the description of the color space. More...
 
PXL_API bool PXL_OCIO::getAllocationVars (const ColorSpace *space, bool &uniform, fpreal &min, fpreal &max, fpreal &offset)
 Return the allocation variable meta data about the color space. More...
 
PXL_API bool PXL_OCIO::isFloatPointSpace (const ColorSpace *space, bool &fp)
 Set 'fp' to true if the color space is defined for FP, false for uint. More...
 
PXL_API bool PXL_OCIO::getInfo (const ColorSpace *space, UT_Options &info)
 
PXL_API void PXL_OCIO::viewingRuleNames (UT_StringArray &names)
 Get the viewing rule names. More...
 
PXL_API const UT_OptionsPXL_OCIO::viewingRule (const UT_StringRef &name)
 Lookup a viewing rule by the name. More...
 
PXL_API bool PXL_OCIO::transform (const PHandle &processor, fpreal32 *data, int npixels, int nchannels)
 Transform pixels by a processor. More...
 
PXL_API bool PXL_OCIO::transform (const PHandle &processor, void *src, void *dst, int width, int height, int nchannels)
 
PXL_API bool PXL_OCIO::transform (const PHandle &processor, fpreal32 *src, int width, int height, int nchannels)
 
bool PXL_OCIO::is3DTransform (const UT_StringHolder &view_transform)
 
bool PXL_OCIO::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. More...
 
bool PXL_OCIO::transform (const UT_StringHolder &view_transform, fpreal32 *data, int npixels, int nchannels, bool forward_transform=true)
 Transform with the given view transform, which must exist in the config. More...
 
PXL_API bool PXL_OCIO::issRGB (const ColorSpace *s)
 
PXL_API bool PXL_OCIO::isSceneLinear (const ColorSpace *s)
 
PXL_API PXL_ColorSpace PXL_OCIO::pxlImageColorSpace (const ColorSpace *cs, UT_StringHolder &name)
 
PXL_API PXL_ColorSpace PXL_OCIO::pxlImageColorSpace (const UT_StringHolder &csname, UT_StringHolder &name)
 
PXL_API PHandle PXL_OCIO::lookupProcessor (const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, bool forward_transform=true)
 
PXL_API PHandle PXL_OCIO::lookupProcessor (const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
 
PXL_API PHandle PXL_OCIO::lookupViewProcessor (const UT_StringHolder &src, const UT_StringHolder &display, const UT_StringHolder &view, bool forward_transform)
 
PXL_API PHandle PXL_OCIO::lookupViewProcessor (const UT_StringHolder &view_transform, bool forward_transform)
 
bool PXL_OCIO::isValidTransform (const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
 
bool PXL_OCIO::isValidTransform (const UT_StringHolder &transform, bool forward)
 
bool PXL_OCIO::isNoOpTransform (const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
 
bool PXL_OCIO::is3DTransform (const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, bool forward_transform=true)
 
bool PXL_OCIO::transform (const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, fpreal32 *data, int npixels, int nchannels, bool forward_transform=true)
 
bool PXL_OCIO::transform (const ColorSpace *src, const ColorSpace *dest, const UT_StringHolder &looks, fpreal32 *data, int npixels, int nchannels, bool forward_transform=true)
 
bool PXL_OCIO::transform (const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, void *src_data, void *dst_data, int width, int height, int nchannels, bool forward_transform=true)
 
bool PXL_OCIO::transform (const UT_StringHolder &src, const UT_StringHolder &dest, const UT_StringHolder &looks, fpreal32 *src_data, int width, int height, int nchannels, bool forward_transform=true)
 
PXL_API int PXL_OCIO::addConfigChangeCB (UT_Functor< void > callback)
 
PXL_API void PXL_OCIO::removeConfigChangeCB (int id)