diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-08-23 11:25:54 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-08-23 12:39:11 +0300 |
commit | 4de7c0c3105a80d244dd9f2078c310331873a16b (patch) | |
tree | 35c091edbd67d2d3fbbbfb078f0085df52999458 /source/blender/makesdna/DNA_color_types.h | |
parent | 01973290a9fd6c7e48ab4d19043eb3a26939cb4e (diff) |
Compositor: Film-like curve
Film-like curves for the RGB Curve node (Compositor) and Curve Modifier
(Sequencer)
Film-like curves originated from Adobe.
"It’s an RGB curve where the tone curve is applied on the largest and smallest value, and then the middle value is adapted to keep a constant hue as defined by RGB-HSL/HSV. In terms of look and saturation increase it’s very similar to a pure RGB curve, more so than a HSL-L curve or HSV-V curve, but some color shift problems are avoided."
Other tools like Natron, Krita and RawTherapee have implemented this curve tone.
Reviewers: brecht, campbellbarton
Reviewed By: brecht
Tags: #compositing, #video_sequencer
Differential Revision: https://developer.blender.org/D3638
Diffstat (limited to 'source/blender/makesdna/DNA_color_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_color_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h index 4f860e16b88..fe158f85cd9 100644 --- a/source/blender/makesdna/DNA_color_types.h +++ b/source/blender/makesdna/DNA_color_types.h @@ -82,6 +82,9 @@ typedef struct CurveMapping { float bwmul[3]; /* black/white point multiply value, for speed */ float sample[3]; /* sample values, if flag set it draws line and intersection */ + + short tone; + short pad[3]; } CurveMapping; /* cumapping->flag */ @@ -102,6 +105,12 @@ typedef enum eCurveMappingPreset { CURVE_PRESET_GAUSS = 7, } eCurveMappingPreset; +/* CurveMapping->tone */ +typedef enum eCurveMappingTone { + CURVE_TONE_STANDARD = 0, + CURVE_TONE_FILMLIKE = 1, +} eCurveMappingTone; + /* histogram->mode */ enum { HISTO_MODE_LUMA = 0, |