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>2012-08-08 20:46:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-08-08 20:46:44 +0400
commitac2b6e23eb5479151385bc9b5366b56172e406bf (patch)
tree60cd1bb9b853a680a4c26fcb78ffb02d2fb2366e /source/blender/blenkernel/intern/seqeffects.c
parente4b494ac3badcd347dcc50db1e9368ec4acfb61a (diff)
Code cleanup: use defines instead of magic constants
Diffstat (limited to 'source/blender/blenkernel/intern/seqeffects.c')
-rw-r--r--source/blender/blenkernel/intern/seqeffects.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c
index 2a0409662ce..a6688a4f7ee 100644
--- a/source/blender/blenkernel/intern/seqeffects.c
+++ b/source/blender/blenkernel/intern/seqeffects.c
@@ -2281,7 +2281,7 @@ static void copy_solid_color(Sequence *dst, Sequence *src)
static int early_out_color(Sequence *UNUSED(seq), float UNUSED(facf0), float UNUSED(facf1))
{
- return -1;
+ return EARLY_NO_INPUT;
}
static ImBuf *do_solid_color(SeqRenderData context, Sequence *seq, float UNUSED(cfra), float facf0, float facf1,
@@ -2374,7 +2374,7 @@ static int num_inputs_multicam(void)
static int early_out_multicam(Sequence *UNUSED(seq), float UNUSED(facf0), float UNUSED(facf1))
{
- return -1;
+ return EARLY_NO_INPUT;
}
static ImBuf *do_multicam(SeqRenderData context, Sequence *seq, float cfra, float UNUSED(facf0), float UNUSED(facf1),
@@ -2424,7 +2424,7 @@ static int num_inputs_adjustment(void)
static int early_out_adjustment(Sequence *UNUSED(seq), float UNUSED(facf0), float UNUSED(facf1))
{
- return -1;
+ return EARLY_NO_INPUT;
}
static ImBuf *do_adjustment_impl(SeqRenderData context, Sequence *seq, float cfra)
@@ -2537,7 +2537,7 @@ static void copy_speed_effect(Sequence *dst, Sequence *src)
static int early_out_speed(Sequence *UNUSED(seq), float UNUSED(facf0), float UNUSED(facf1))
{
- return 1;
+ return EARLY_USE_INPUT_1;
}
static void store_icu_yrange_speed(Sequence *seq, short UNUSED(adrcode), float *ymin, float *ymax)
@@ -2696,26 +2696,26 @@ static int num_inputs_default(void)
static int early_out_noop(Sequence *UNUSED(seq), float UNUSED(facf0), float UNUSED(facf1))
{
- return 0;
+ return EARLY_DO_EFFECT;
}
static int early_out_fade(Sequence *UNUSED(seq), float facf0, float facf1)
{
if (facf0 == 0.0f && facf1 == 0.0f) {
- return 1;
+ return EARLY_USE_INPUT_1;
}
else if (facf0 == 1.0f && facf1 == 1.0f) {
- return 2;
+ return EARLY_USE_INPUT_2;
}
- return 0;
+ return EARLY_DO_EFFECT;
}
static int early_out_mul_input2(Sequence *UNUSED(seq), float facf0, float facf1)
{
if (facf0 == 0.0f && facf1 == 0.0f) {
- return 1;
+ return EARLY_USE_INPUT_1;
}
- return 0;
+ return EARLY_DO_EFFECT;
}
static void store_icu_yrange_noop(Sequence *UNUSED(seq), short UNUSED(adrcode), float *UNUSED(ymin), float *UNUSED(ymax))