OCIOCDLTransform node
This documentation is for version 1.0 of OCIOCDLTransform (fr.inria.openfx.OCIOCDLTransform).
Description
Use OpenColorIO to apply an ASC Color Decision List (CDL) grade.
The formula applied for each channel is:
out = (in * slope + offset)^power.
The saturation is then applied to all channel using the standard rec709 saturation coefficients:
luma = 0.2126 * inR + 0.7152 * inG + 0.0722 * inB
outR = Clamp( luma + sat * (inR - luma) )
outG = Clamp( luma + sat * (inG - luma) )
outB = Clamp( luma + sat * (inB - luma) ).
The grade can be loaded from an ASC .ccc (Color Correction Collection) or .cc (Color Correction) file.
Inputs
Input |
Description |
Optional |
---|---|---|
Source |
No |
|
Mask |
Yes |
Controls
Parameter / script name |
Type |
Default |
Function |
---|---|---|---|
Slope / |
Color |
r: 1 g: 1 b: 1 |
ASC CDL slope |
Offset / |
Color |
r: 0 g: 0 b: 0 |
ASC CDL offset |
Power / |
Color |
r: 1 g: 1 b: 1 |
ASC CDL power |
Saturation / |
Double |
1 |
ASC CDL saturation |
Direction / |
Choice |
Forward |
Transform direction.
Forward (forward)
Inverse (inverse)
|
Read from file / |
Boolean |
Off |
Load color correction information from the .cc or .ccc file. |
File / |
N/A |
Specify the src ASC CDL file, on disk, to use for this transform. This can be either a .cc or .ccc file. If .ccc is specified, the cccid is required. |
|
Reload / |
Button |
Reloads specified files |
|
CCC Id / |
String |
If the source file is an ASC CDL CCC (color correction collection), this specifies the id to lookup. OpenColorIO::Contexts (envvars) are obeyed. |
|
Export / |
N/A |
Export this grade as a ColorCorrection XML file (.cc), which can be loaded with the OCIOFileTransform, or using a FileTransform in an OCIO config. The file must not already exist. |
|
Enable GPU Render / |
Boolean |
Off |
Enable GPU-based OpenGL render (only available when “(Un)premult” is not checked).
If the checkbox is checked but is not enabled (i.e. it cannot be unchecked), GPU render can not be enabled or disabled from the plugin and is probably part of the host options.
If the checkbox is not checked and is not enabled (i.e. it cannot be checked), GPU render is not available on this host.
|
(Un)premult / |
Boolean |
Off |
Divide the image by the alpha channel before processing, and re-multiply it afterwards. Use if the input images are premultiplied. |
Invert Mask / |
Boolean |
Off |
When checked, the effect is fully applied where the mask is 0. |
Mix / |
Double |
1 |
Mix factor between the original and the transformed image. |