HDK
|
#include <OpenColorTransforms.h>
Public Member Functions | |
TransformType | getTransformType () const noexceptoverride |
virtual RangeStyle | getStyle () const noexcept=0 |
virtual void | setStyle (RangeStyle style) noexcept=0 |
Set the Range style to clamp or not input values. More... | |
virtual const FormatMetadata & | getFormatMetadata () const noexcept=0 |
virtual FormatMetadata & | getFormatMetadata () noexcept=0 |
virtual bool | equals (const RangeTransform &other) const noexcept=0 |
Checks if this equals other. More... | |
virtual BitDepth | getFileInputBitDepth () const noexcept=0 |
virtual void | setFileInputBitDepth (BitDepth bitDepth) noexcept=0 |
virtual BitDepth | getFileOutputBitDepth () const noexcept=0 |
virtual void | setFileOutputBitDepth (BitDepth bitDepth) noexcept=0 |
virtual double | getMinInValue () const noexcept=0 |
Get the minimum value for the input. More... | |
virtual void | setMinInValue (double val) noexcept=0 |
Set the minimum value for the input. More... | |
virtual bool | hasMinInValue () const noexcept=0 |
Is the minimum value for the input set? More... | |
virtual void | unsetMinInValue () noexcept=0 |
Unset the minimum value for the input. More... | |
virtual void | setMaxInValue (double val) noexcept=0 |
Set the maximum value for the input. More... | |
virtual double | getMaxInValue () const noexcept=0 |
Get the maximum value for the input. More... | |
virtual bool | hasMaxInValue () const noexcept=0 |
Is the maximum value for the input set? More... | |
virtual void | unsetMaxInValue () noexcept=0 |
Unset the maximum value for the input. More... | |
virtual void | setMinOutValue (double val) noexcept=0 |
Set the minimum value for the output. More... | |
virtual double | getMinOutValue () const noexcept=0 |
Get the minimum value for the output. More... | |
virtual bool | hasMinOutValue () const noexcept=0 |
Is the minimum value for the output set? More... | |
virtual void | unsetMinOutValue () noexcept=0 |
Unset the minimum value for the output. More... | |
virtual void | setMaxOutValue (double val) noexcept=0 |
Set the maximum value for the output. More... | |
virtual double | getMaxOutValue () const noexcept=0 |
Get the maximum value for the output. More... | |
virtual bool | hasMaxOutValue () const noexcept=0 |
Is the maximum value for the output set? More... | |
virtual void | unsetMaxOutValue () noexcept=0 |
Unset the maximum value for the output. More... | |
RangeTransform (const RangeTransform &)=delete | |
RangeTransform & | operator= (const RangeTransform &)=delete |
virtual | ~RangeTransform ()=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 RangeTransformRcPtr | Create () |
Creates an instance of RangeTransform. More... | |
Protected Member Functions | |
RangeTransform ()=default | |
![]() | |
Transform ()=default | |
Represents a range transform
The Range is used to apply an affine transform (scale & offset) and clamps values to min/max bounds on all color components except the alpha. The scale and offset values are computed from the input and output bounds.
Refer to section 7.2.4 in specification S-2014-006 "A Common File Format for Look-Up Tables" from the Academy of Motion Picture Arts and Sciences and the American Society of Cinematographers.
Definition at line 1888 of file OpenColorTransforms.h.
|
delete |
|
virtualdefault |
Do not use (needed only for pybind11).
|
protecteddefault |
|
static |
Creates an instance of RangeTransform.
|
pure virtualnoexcept |
Checks if this equals other.
|
pure virtualnoexcept |
File bit-depth
In a format such as CLF, the range values are scaled to take pixels at the specified inBitDepth to pixels at the specified outBitDepth. This complicates the interpretation of the range values and so this object always holds normalized values and scaling is done on the way from or to file formats such as CLF.Get the bit-depths associated with the range values read from a file or set the bit-depths of values to be written to a file (for file formats such as CLF that support multiple bit-depths).
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Get the maximum value for the input.
|
pure virtualnoexcept |
Get the maximum value for the output.
|
pure virtualnoexcept |
Get the minimum value for the input.
Range values
These values are normalized relative to what may be stored in file formats such as CLF. For example in a CLF file using a "10i" input depth, a MaxInValue of 1023 in the file is normalized to 1.0. Likewise, for an output depth of "12i", a MaxOutValue of 4095 in the file is normalized to 1.0. The values here are unclamped and may extend outside [0,1].
|
pure virtualnoexcept |
Get the minimum value for the output.
|
pure virtualnoexcept |
|
inlineoverridevirtualnoexcept |
Implements OCIO_NAMESPACE::Transform.
Definition at line 1894 of file OpenColorTransforms.h.
|
pure virtualnoexcept |
Is the maximum value for the input set?
|
pure virtualnoexcept |
Is the maximum value for the output set?
|
pure virtualnoexcept |
Is the minimum value for the input set?
|
pure virtualnoexcept |
Is the minimum value for the output set?
|
delete |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Set the maximum value for the input.
|
pure virtualnoexcept |
Set the maximum value for the output.
|
pure virtualnoexcept |
Set the minimum value for the input.
|
pure virtualnoexcept |
Set the minimum value for the output.
|
pure virtualnoexcept |
Set the Range style to clamp or not input values.
|
pure virtualnoexcept |
Unset the maximum value for the input.
|
pure virtualnoexcept |
Unset the maximum value for the output.
|
pure virtualnoexcept |
Unset the minimum value for the input.
|
pure virtualnoexcept |
Unset the minimum value for the output.