Expand description
Transforms: the user-facing descriptions of color operations (port of
OpenColorTransforms.h).
Every transform is a plain struct with public fields plus convenience
accessors. The Transform enum wraps all of them. Transforms are turned
into ops by build::build_ops.
Re-exports§
Modules§
- build
- Conversion of transforms into ops.
- grading
- Grading value types used by the grading transforms (
GradingPrimary,GradingTone,GradingRgbCurve,GradingHueCurve, B-spline curves).
Structs§
- Allocation
Transform - Allocation (uniform / lg2) transform, used by legacy GPU paths and
allocationin colorspaces. - Builtin
Transform - A transform from the builtin registry, identified by its style name
(for instance
"ACEScct_to_ACES2065-1"). - CdlTransform
- ASC CDL (slope / offset / power / saturation).
- Color
Space Transform - Conversion between two color spaces of the config.
- Display
View Transform - Conversion from a color space to a (display, view) pair.
- Exponent
Transform - Power function
out = in ^ valueper channel (RGBA). - Exponent
With Linear Transform - Power function with a linear segment near zero (sRGB / Rec.709 style “moncurve”).
- Exposure
Contrast Transform - Exposure / contrast / gamma adjustment.
- File
Transform - Transform loaded from an external file (LUT, CDL, CLF, …).
- Fixed
Function Transform - Hard-coded color math (ACES red modifier, glow, HSV, PQ, ACES 2 …).
- Grading
HueCurve Transform - Hue curve grading.
- Grading
Primary Transform - Primary grading (lift/gamma/gain, contrast, offset, exposure, saturation).
- Grading
RgbCurve Transform - RGB curve grading.
- Grading
Tone Transform - Tonal grading (blacks, shadows, midtones, highlights, whites).
- Group
Transform - Ordered list of transforms.
- LogAffine
Transform out = logSlope * log(linSlope * in + linOffset, base) + logOffset.- LogCamera
Transform - Camera log curve: log affine with a linear segment below
lin_side_break. - LogTransform
out = log(in, base).- Look
Transform - Apply looks (and color space conversions) from
srctodst. - Lut1D
Transform - 1D LUT.
valuesholdslength * 3interleaved RGB values. - Lut3D
Transform - 3D LUT.
valuesholdsgrid_size^3 * 3RGB values with the blue index changing fastest:index = ((r * n + g) * n + b) * 3. - Matrix
Transform - 4x4 matrix (row major) plus offset:
out = M * in + offset. - Range
Transform - Affine remap of
[min_in, max_in]to[min_out, max_out]with optional clamping. Each bound is optional.
Enums§
- Transform
- Any transform.
Constants§
- DEFAULT_
LUMA_ COEFS - Default luma coefficients (Rec.709) used by CDL saturation.
- IDENTITY_
MATRI X44 - The 4x4 identity matrix.
- METADATA_
INPUT_ DESCRIPTION - Element name of the input description child.
- METADATA_
SAT_ DESCRIPTION - Element name of the SAT description child.
- METADATA_
SOP_ DESCRIPTION - Element name of the SOP description child.
- METADATA_
VIEWING_ DESCRIPTION - Element name of the viewing description child.