HDK
|
An implementation of the ASC Color Decision List (CDL), based on the ASC v1.2 specification. More...
#include <OpenColorTransforms.h>
Public Member Functions | |
TransformType | getTransformType () const noexceptoverride |
virtual FormatMetadata & | getFormatMetadata () noexcept=0 |
virtual const FormatMetadata & | getFormatMetadata () const noexcept=0 |
virtual bool | equals (const CDLTransform &other) const noexcept=0 |
virtual CDLStyle | getStyle () const =0 |
virtual void | setStyle (CDLStyle style)=0 |
virtual void | getSlope (double *rgb) const =0 |
virtual void | setSlope (const double *rgb)=0 |
virtual void | getOffset (double *rgb) const =0 |
virtual void | setOffset (const double *rgb)=0 |
virtual void | getPower (double *rgb) const =0 |
virtual void | setPower (const double *rgb)=0 |
virtual void | getSOP (double *vec9) const =0 |
virtual void | setSOP (const double *vec9)=0 |
virtual double | getSat () const =0 |
virtual void | setSat (double sat)=0 |
virtual void | getSatLumaCoefs (double *rgb) const =0 |
These are hard-coded, by spec, to r709. More... | |
virtual const char * | getID () const =0 |
virtual void | setID (const char *id)=0 |
virtual const char * | getFirstSOPDescription () const =0 |
virtual void | setFirstSOPDescription (const char *description)=0 |
CDLTransform (const CDLTransform &)=delete | |
CDLTransform & | operator= (const CDLTransform &)=delete |
virtual | ~CDLTransform ()=default |
Do not use (needed only for pybind11). More... | |
Public Member Functions inherited from OCIO_NAMESPACE::Transform | |
virtual TransformRcPtr | createEditableCopy () const =0 |
virtual TransformDirection | getDirection () const noexcept=0 |
virtual void | setDirection (TransformDirection dir) noexcept=0 |
Note that this only affects the evaluation and not the values stored in the object. More... | |
virtual void | validate () const |
Will throw if data is not valid. More... | |
Transform (const Transform &)=delete | |
Transform & | operator= (const Transform &)=delete |
virtual | ~Transform ()=default |
Do not use (needed only for pybind11). More... | |
Static Public Member Functions | |
static CDLTransformRcPtr | Create () |
static CDLTransformRcPtr | CreateFromFile (const char *src, const char *cccid) |
Load the CDL from the src .cdl, .cc, or .ccc file. More... | |
static GroupTransformRcPtr | CreateGroupFromFile (const char *src) |
Load all of the CDLs in a .cdl or .ccc file into a single GroupTransform. More... | |
Protected Member Functions | |
CDLTransform ()=default | |
Protected Member Functions inherited from OCIO_NAMESPACE::Transform | |
Transform ()=default | |
An implementation of the ASC Color Decision List (CDL), based on the ASC v1.2 specification.
ASC_SOP
Slope, offset, power:: out = clamp( (in * slope) + offset ) ^ power
Definition at line 244 of file OpenColorTransforms.h.
|
delete |
|
virtualdefault |
Do not use (needed only for pybind11).
|
protecteddefault |
|
static |
|
static |
Load the CDL from the src .cdl, .cc, or .ccc file.
|
static |
Load all of the CDLs in a .cdl or .ccc file into a single GroupTransform.
|
pure virtualnoexcept |
|
pure virtual |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtual |
The get/setID methods are now deprecated. The preferred way of interacting with the ID is now via the transform's formatMetadata.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
These are hard-coded, by spec, to r709.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlineoverridevirtualnoexcept |
Implements OCIO_NAMESPACE::Transform.
Definition at line 270 of file OpenColorTransforms.h.
|
delete |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Use CDL_ASC to clamp values to [0,1] per the ASC spec. Use NO_CLAMP to never clamp values (regardless of whether power is 1.0). The NO_CLAMP option passes negatives through unchanged (like the NEGATIVE_PASS_THRU style of ExponentTransform). The default style is CDL_NO_CLAMP.