HDK
|
#include <OpenColorTransforms.h>
Public Member Functions | |
TransformType | getTransformType () const noexceptoverride |
virtual const FormatMetadata & | getFormatMetadata () const noexcept=0 |
virtual FormatMetadata & | getFormatMetadata () noexcept=0 |
virtual bool | equals (const ExposureContrastTransform &other) const noexcept=0 |
Checks if this exactly equals other. More... | |
virtual ExposureContrastStyle | getStyle () const =0 |
virtual void | setStyle (ExposureContrastStyle style)=0 |
Select the algorithm for linear, video or log color spaces. More... | |
virtual double | getExposure () const =0 |
virtual void | setExposure (double exposure)=0 |
virtual bool | isExposureDynamic () const =0 |
virtual void | makeExposureDynamic ()=0 |
virtual void | makeExposureNonDynamic ()=0 |
virtual double | getContrast () const =0 |
virtual void | setContrast (double contrast)=0 |
virtual bool | isContrastDynamic () const =0 |
virtual void | makeContrastDynamic ()=0 |
virtual void | makeContrastNonDynamic ()=0 |
virtual double | getGamma () const =0 |
virtual void | setGamma (double gamma)=0 |
virtual bool | isGammaDynamic () const =0 |
virtual void | makeGammaDynamic ()=0 |
virtual void | makeGammaNonDynamic ()=0 |
virtual double | getPivot () const =0 |
virtual void | setPivot (double pivot)=0 |
virtual double | getLogExposureStep () const =0 |
virtual void | setLogExposureStep (double logExposureStep)=0 |
virtual double | getLogMidGray () const =0 |
virtual void | setLogMidGray (double logMidGray)=0 |
virtual | ~ExposureContrastTransform ()=default |
Do not use (needed only for pybind11). More... | |
![]() | |
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 ExposureContrastTransformRcPtr | Create () |
Protected Member Functions | |
ExposureContrastTransform ()=default | |
![]() | |
Transform ()=default | |
Applies exposure, gamma, and pivoted contrast adjustments. Adjusts the math to be appropriate for linear, logarithmic, or video color spaces.
Definition at line 913 of file OpenColorTransforms.h.
|
virtualdefault |
Do not use (needed only for pybind11).
|
protecteddefault |
|
static |
|
pure virtualnoexcept |
Checks if this exactly equals other.
|
pure virtual |
|
pure virtual |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlineoverridevirtualnoexcept |
Implements OCIO_NAMESPACE::Transform.
Definition at line 918 of file OpenColorTransforms.h.
|
pure virtual |
Contrast can be made dynamic so the value can be changed through the CPU or GPU processor, but if there are several ExposureContrastTransform only one can have a dynamic contrast.
|
pure virtual |
Exposure can be made dynamic so the value can be changed through the CPU or GPU processor, but if there are several ExposureContrastTransform only one can have a dynamic exposure.
|
pure virtual |
Gamma can be made dynamic so the value can be changed through the CPU or GPU processor, but if there are several ExposureContrastTransform only one can have a dynamic gamma.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Applies a contrast/gamma adjustment around a pivot point. The contrast and gamma are mathematically the same, but two controls are provided to enable the use of separate dynamic parameters. Contrast is usually a scene-referred adjustment that pivots around gray whereas gamma is usually a display-referred adjustment that pivots around white.
|
pure virtual |
Applies an exposure adjustment. The value is in units of stops (regardless of style), for example, a value of -1 would be equivalent to reducing the lighting by one half.
|
pure virtual |
|
pure virtual |
Set the increment needed to move one stop for the log-style algorithm. For example, ACEScct is 0.057, LogC is roughly 0.074, and Cineon is roughly 90/1023 = 0.088. The default value is 0.088.
|
pure virtual |
Set the position of 18% gray for use by the log-style algorithm. For example, ACEScct is about 0.41, LogC is about 0.39, and ADX10 is 445/1023 = 0.435. The default value is 0.435.
|
pure virtual |
Set the pivot point around which the contrast and gamma controls will work. Regardless of whether linear/video/log-style is being used, the pivot is always expressed in linear. In other words, a pivot of 0.18 is always mid-gray.
|
pure virtual |
Select the algorithm for linear, video or log color spaces.