test/testoverlay2.c
changeset 1439 4d3bb026cd16
parent 1151 be9c9c8f6d53
child 1642 f1211a4b7380
     1.1 --- a/test/testoverlay2.c	Sun Feb 26 04:54:01 2006 +0000
     1.2 +++ b/test/testoverlay2.c	Sun Feb 26 05:02:14 2006 +0000
     1.3 @@ -57,8 +57,6 @@
     1.4  
     1.5  void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance)
     1.6  {
     1.7 -    int i;
     1.8 -
     1.9      if (monochrome)
    1.10      {
    1.11  #if 1 /* these are the two formulas that I found on the FourCC site... */
    1.12 @@ -92,7 +90,7 @@
    1.13      }
    1.14  }
    1.15  
    1.16 -ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.17 +void ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.18  {
    1.19  	int x,y;
    1.20  	int yuv[3];
    1.21 @@ -125,7 +123,7 @@
    1.22  	SDL_UnlockSurface(s);
    1.23  }
    1.24  
    1.25 -ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.26 +void ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.27  {
    1.28  	int x,y;
    1.29  	int yuv[3];
    1.30 @@ -158,7 +156,7 @@
    1.31  	SDL_UnlockSurface(s);
    1.32  }
    1.33  
    1.34 -ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.35 +void ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.36  {
    1.37  	int x,y;
    1.38  	int yuv[3];
    1.39 @@ -191,7 +189,7 @@
    1.40  	SDL_UnlockSurface(s);
    1.41  }
    1.42  
    1.43 -ConvertRGBtoYVYU(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.44 +void ConvertRGBtoYVYU(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.45  {
    1.46  	int x,y;
    1.47  	int yuv[3];
    1.48 @@ -227,7 +225,7 @@
    1.49  	SDL_UnlockSurface(s);
    1.50  }
    1.51  
    1.52 -ConvertRGBtoYUY2(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.53 +void ConvertRGBtoYUY2(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
    1.54  {
    1.55  	int x,y;
    1.56  	int yuv[3];
    1.57 @@ -416,7 +414,7 @@
    1.58      /* Set video mode */
    1.59      if ( (screen=SDL_SetVideoMode(MOOSEPIC_W*scale, MOOSEPIC_H*scale, 0, SDL_RESIZABLE | SDL_SWSURFACE)) == NULL )
    1.60      {
    1.61 -        fprintf(stderr, "Couldn't set video mode: %s\n", 0, SDL_GetError());
    1.62 +        fprintf(stderr, "Couldn't set video mode: %s\n", SDL_GetError());
    1.63          free(RawMooseData);
    1.64          quit(4);
    1.65      }
    1.66 @@ -430,7 +428,7 @@
    1.67                                                 MOOSEPIC_H, 8, MOOSEPIC_W, 0, 0, 0, 0);
    1.68          if (MooseFrame[i]==NULL)
    1.69          {
    1.70 -            fprintf(stderr, "Couldn't create SDL_Surfaces:%s\n", 0, SDL_GetError());
    1.71 +            fprintf(stderr, "Couldn't create SDL_Surfaces:%s\n", SDL_GetError());
    1.72              free(RawMooseData);
    1.73              quit(5);
    1.74          }