From 145d3540b3e2dafa9351c79a463c230304ce0ae5 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 1 Jul 2015 20:29:18 +0200 Subject: Text effect strip for sequencer. Is pretty much what it says :) Easy subtitles for everyone! Supports size, positioning, a cheap shadow effect (probably will need more work), and autocentering on x axis. Now you can go wild with long spanish names in your soap opera videos. Will probably be refined as days go by, but at least it's now ready for testing. --- source/blender/makesdna/DNA_sequence_types.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_sequence_types.h') diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 7904d056e1a..7cf4d9fdff7 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -271,6 +271,17 @@ typedef struct GaussianBlurVars { float size_y; } GaussianBlurVars; +typedef struct TextVars { + char text[512]; + int text_size; + int xpos, ypos; + int flags; +} TextVars; + +enum { + TEXT_SEQ_SHADOW = (1 << 0), + TEXT_SEQ_AUTO_CENTER = (1 << 1), +}; /* ***************** Sequence modifiers ****************** */ typedef struct SequenceModifierData { @@ -463,7 +474,9 @@ enum { SEQ_TYPE_MULTICAM = 30, SEQ_TYPE_ADJUSTMENT = 31, SEQ_TYPE_GAUSSIAN_BLUR = 40, - SEQ_TYPE_MAX = 40 + SEQ_TYPE_TEXT = 41, + + SEQ_TYPE_MAX = 41 }; #define SEQ_MOVIECLIP_RENDER_UNDISTORTED (1 << 0) -- cgit v1.2.3