Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beck <software@plasmasolutions.de>2015-12-28 13:55:14 +0300
committerThomas Beck <software@plasmasolutions.de>2015-12-28 14:16:48 +0300
commitdaf6f5f81e241484ea8afc5d70ef3027969e5ac1 (patch)
tree723d322d646da66ce8beda142b493652463d9422 /source/blender/makesdna/DNA_sequence_types.h
parent225b02fcd66052b1d6dfa4a146798e41c44e0cd4 (diff)
White Balance modifier for the VSE
This snippet creates a white balance modifier for the video sequence editor. It is useful for everyone who likes to set a new white point in the video source (easily via the eyedropper). Just select a point in the source file where you know that it should be white. The algorithm will then shift the colors towards your new white point. See attached the image for a quick demo. {F270576} Reviewers: psy-fi Reviewed By: psy-fi Subscribers: Blendify Projects: #bf_blender Differential Revision: https://developer.blender.org/D1698
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index e5c102b1d2d..bb49419b2ac 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -307,11 +307,12 @@ typedef struct SequenceModifierData {
int type, flag;
char name[64]; /* MAX_NAME */
- /* mask input, either sequence or maks ID */
+ /* mask input, either sequence or mask ID */
int mask_input_type, pad;
struct Sequence *mask_sequence;
struct Mask *mask_id;
+ struct Scene *scene;
} SequenceModifierData;
typedef struct ColorBalanceModifierData {
@@ -344,6 +345,13 @@ typedef struct SequencerMaskModifierData {
SequenceModifierData modifier;
} SequencerMaskModifierData;
+typedef struct WhiteBalanceModifierData {
+ SequenceModifierData modifier;
+
+ float white_value[3];
+ float pad;
+} WhiteBalanceModifierData;
+
/* ***************** Scopes ****************** */
typedef struct SequencerScopes {
@@ -519,6 +527,7 @@ enum {
seqModifierType_HueCorrect = 3,
seqModifierType_BrightContrast = 4,
seqModifierType_Mask = 5,
+ seqModifierType_WhiteBalance = 6,
NUM_SEQUENCE_MODIFIER_TYPES
};