[FFmpeg-devel] [PATCH]Remove unused parameter from rotozoom.c

Carl Eugen Hoyos cehoyos
Wed Jul 22 04:03:13 CEST 2009


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > -static void gen_image(int num, int w, int h)
> > +static void gen_image(int w, int h)
> >  {
> >    const int c = h_cos [teta];
> >    const int s = h_sin [teta];
> 
> maybe teta should be calcuated from i or passed instead of being a
> global ...

Do you mean like this?

+  const int c = h_cos [num * 360 / DEFAULT_NB_PICT];
+  const int s = h_sin [num * 360 / DEFAULT_NB_PICT];

Carl Eugen




More information about the ffmpeg-devel mailing list