[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49705] trunk/blender/source/blender/ blenkernel/intern/seqeffects.c: Code cleanup: use defines instead of magic constants

Sergey Sharybin sergey.vfx at gmail.com
Wed Aug 8 18:46:44 CEST 2012


Revision: 49705
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49705
Author:   nazgul
Date:     2012-08-08 16:46:44 +0000 (Wed, 08 Aug 2012)
Log Message:
-----------
Code cleanup: use defines instead of magic constants

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/seqeffects.c

Modified: trunk/blender/source/blender/blenkernel/intern/seqeffects.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/seqeffects.c	2012-08-08 16:46:43 UTC (rev 49704)
+++ trunk/blender/source/blender/blenkernel/intern/seqeffects.c	2012-08-08 16:46:44 UTC (rev 49705)
@@ -2281,7 +2281,7 @@
 
 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 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 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 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 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))




More information about the Bf-blender-cvs mailing list