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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-05-08 18:20:57 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-05-08 18:20:57 +0400
commitf25e7d62b3023812eb594250d22e142c02533482 (patch)
treecd1654a7700147e0620f944b9079b7767c617916 /source/blender/makesdna/DNA_sequence_types.h
parent89eb80fb686c14fc1f34ced450ceb03a7d871fec (diff)
Mask modifier for sequences
This modifier uses a mask set in the modifier settings and multiplies strip by it. Alpha channel will also be multiplied by mask, which makes it easy to mask some objects on footage and alpha-over them in sequencer. Actually, this modifier sets alpha for byte strips directly (since byte is always straight alpha) and multiplies float buffer by mask (flaots are premulled) so in both cases masked strip could be easy alpha-overed without any artifacts. It uses own structure with only SequenceModifierData property in to preserve both forward and backwards compatibilities (using new structure ensures modifier will be ignored on load in older blenders, the same happens for mesh modifiers actually). Request from Pablo Vazquez.
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index d9057c45380..5dbc80c16a5 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -289,6 +289,10 @@ typedef struct BrightContrastModifierData {
float contrast;
} BrightContrastModifierData;
+typedef struct SequencerMaskModifierData {
+ SequenceModifierData modifier;
+} SequencerMaskModifierData;
+
/* ***************** Scopes ****************** */
typedef struct SequencerScopes {
@@ -434,6 +438,7 @@ enum {
seqModifierType_Curves = 2,
seqModifierType_HueCorrect = 3,
seqModifierType_BrightContrast = 4,
+ seqModifierType_Mask = 5,
NUM_SEQUENCE_MODIFIER_TYPES
};