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:
authorPeter Schlaile <peter@schlaile.de>2006-11-12 01:35:40 +0300
committerPeter Schlaile <peter@schlaile.de>2006-11-12 01:35:40 +0300
commitc1b4132e8d33f90b959c8b431b02f57d1cefdf66 (patch)
tree822c81d739e9096cf51a577c032fd9ab713e412f /source/blender/src/drawseq.c
parent05c59da48fb5b242e2cf1bfc0e9e371ded70736b (diff)
== Sequencer ==
Major sequencer rewrite to add Speed Control effect. Changes: - Cleaned up large parts of sequence.c removing a lot of unnecessary code. (We first built old seqar array to decide, what is visible, then build dependencies with new code, then used old code to iterate through the strips and deciding using new code what is used and so forth and so on...) Should be much faster now. - Now we build the strips recursively thereby elemenating the need of a seperate dependency calculation. - Added a Speed-Control effect to change strip speed afterwards. (Offers global speed as well as IPO-controlled speed. There are several modes to play with: - Control by velocity (IPO = velocity where 1.0 is normal speed) - Control by frame number (IPO = target frame) - IPO-Value can be rescaled to frame-value, to make frame exact matching possible. (Matching video tracks to audio tracks with IPOs ;-) Demo-Blend file is here http://peter.schlaile.de/blender/sequencer/speedcontroltest.blend Since this was also a Plumiferos request I hope to be mentioned in the credits ;-) Enjoy! And please test the new sequencer thoroughly. It is really more like a rewrite this time.
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r--source/blender/src/drawseq.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c
index 36c58bd8d5c..24c5f3d45fe 100644
--- a/source/blender/src/drawseq.c
+++ b/source/blender/src/drawseq.c
@@ -118,6 +118,7 @@ static char *give_seqname(Sequence *seq)
else if(seq->type==SEQ_GLOW) return "Glow";
else if(seq->type==SEQ_TRANSFORM) return "Transform";
else if(seq->type==SEQ_COLOR) return "Color";
+ else if(seq->type==SEQ_SPEED) return "Speed";
else if(seq->type==SEQ_PLUGIN) {
if(!(seq->flag & SEQ_EFFECT_NOT_LOADED) &&
seq->plugin && seq->plugin->doit) return seq->plugin->pname;
@@ -182,6 +183,7 @@ static void get_seq_color3ubv(Sequence *seq, char *col)
/* effects */
case SEQ_TRANSFORM:
+ case SEQ_SPEED:
case SEQ_ADD:
case SEQ_SUB:
case SEQ_MUL:
@@ -1189,7 +1191,37 @@ static void seq_panel_properties(short cntrl) // SEQ_HANDLER_PROPERTIES
} else if(last_seq->type==SEQ_COLOR) {
SolidColorVars *colvars = (SolidColorVars *)last_seq->effectdata;
uiDefButF(block, COL, SEQ_BUT_RELOAD, "",10,90,150,19, colvars->col, 0, 0, 0, 0, "");
+ } else if(last_seq->type==SEQ_SPEED){
+ SpeedControlVars *sp =
+ (SpeedControlVars *)last_seq->effectdata;
+
+ uiDefButF(block, NUM, SEQ_BUT_EFFECT, "Global Speed:", 10,70,150,19, &sp->globalSpeed, 0.0, 100.0, 0, 0, "Global Speed");
+
+ uiDefButBitI(block, TOG, SEQ_SPEED_INTEGRATE,
+ SEQ_BUT_EFFECT,
+ "IPO is velocity",
+ 10,50,150,19, &sp->flags,
+ 0.0, 1.0, 0, 0,
+ "Interpret the IPO value as a "
+ "velocity instead of a frame number");
+
+ uiDefButBitI(block, TOG, SEQ_SPEED_BLEND,
+ SEQ_BUT_EFFECT,
+ "Enable frame blending",
+ 10,30,150,19, &sp->flags,
+ 0.0, 1.0, 0, 0,
+ "Blend two frames into the "
+ "target for a smoother result");
+
+ uiDefButBitI(block, TOG, SEQ_SPEED_COMPRESS_IPO_Y,
+ SEQ_BUT_EFFECT,
+ "IPO value runs from [0..1]",
+ 10,10,150,19, &sp->flags,
+ 0.0, 1.0, 0, 0,
+ "Scale IPO value to get the "
+ "target frame number.");
}
+
uiBlockEndAlign(block);
}
}