[FFmpeg-cvslog] r19482 - trunk/tests/rotozoom.c

cehoyos subversion
Wed Jul 22 10:26:17 CEST 2009


Author: cehoyos
Date: Wed Jul 22 10:26:17 2009
New Revision: 19482

Log:
Calculate gradient from parameter instead of using a global variable.

Modified:
   trunk/tests/rotozoom.c

Modified: trunk/tests/rotozoom.c
==============================================================================
--- trunk/tests/rotozoom.c	Wed Jul 22 05:56:08 2009	(r19481)
+++ trunk/tests/rotozoom.c	Wed Jul 22 10:26:17 2009	(r19482)
@@ -197,8 +197,8 @@ static int ipol(uint8_t *src, int x, int
 
 static void gen_image(int num, int w, int h)
 {
-  const int c = h_cos [teta];
-  const int s = h_sin [teta];
+  const int c = h_cos [num % 360];
+  const int s = h_sin [num % 360];
 
   const int xi = -(w/2) * c;
   const int yi =  (w/2) * s;



More information about the ffmpeg-cvslog mailing list