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:
authorJoshua Leung <aligorith@gmail.com>2011-06-16 06:46:38 +0400
committerJoshua Leung <aligorith@gmail.com>2011-06-16 06:46:38 +0400
commitcfcc4b4fcd7dabd0929db53fc5a9cf0833704259 (patch)
treea61c1736ae50f7581e3d06ddeafb8ae7901a978b /source/blender/makesdna/DNA_sequence_types.h
parent4ef1e67ce8245e03ff41c00a09be98d65dfe49f5 (diff)
== Simple Title Cards for Sequencer ==
This commit adds an experimental effect strip to the sequencer: "Title Card". This is useful for adding simple one-line text section headers or "title cards" (i.e. title + author/contact details) to video clips, which is often seen in demo videos accompanying papers and/or animation tests. See http://aligorith.blogspot.com/2011/06/gsoc11-simple-title- cards.html for some more details on usage. Code notes: - There are a few things I've done here which will probably need cleaning up. For instance, the hacks to get threadsafe fonts for rendering, and also the way I've tried to piggyback the backdrop drawing on top of the Solid Colour strips (this method was used to keep changes here minimal, but is quite fragile if things change).
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 3e7654bcf47..b9bea7a89b0 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -227,6 +227,14 @@ typedef struct SolidColorVars {
float pad;
} SolidColorVars;
+typedef struct TitleCardVars {
+ char titlestr[64];
+ char subtitle[128];
+
+ float fgcol[3];
+ float bgcol[3];
+} TitleCardVars;
+
typedef struct SpeedControlVars {
float * frameMap;
float globalSpeed;
@@ -314,7 +322,8 @@ typedef struct SpeedControlVars {
#define SEQ_SPEED 29
#define SEQ_MULTICAM 30
#define SEQ_ADJUSTMENT 31
-#define SEQ_EFFECT_MAX 31
+#define SEQ_TITLECARD 40
+#define SEQ_EFFECT_MAX 40
#define STRIPELEM_FAILED 0
#define STRIPELEM_OK 1