Index: vo_gl.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v retrieving revision 1.34 diff -u -r1.34 vo_gl.c --- vo_gl.c 30 Dec 2002 01:34:20 -0000 1.34 +++ vo_gl.c 16 May 2003 22:48:04 -0000 @@ -1,8 +1,3 @@ -#define DISP - -// this can be 3 or 4 (regarding 24bpp and 32bpp) -#define BYTES_PP 3 - #define TEXTUREFORMAT_32BPP #include @@ -20,7 +15,6 @@ //#include #include #include -#include "../postproc/rgb2rgb.h" #include @@ -51,8 +45,6 @@ static uint32_t image_width; static uint32_t image_height; -static uint32_t image_format; -static uint32_t image_bpp; static uint32_t image_bytes; static uint32_t texture_width; @@ -92,7 +84,6 @@ image_height = height; image_width = width; - image_format = format; aspect_save_orig(width,height); aspect_save_prescale(d_width,d_height); @@ -169,22 +160,6 @@ | ButtonPressMask | ButtonReleaseMask ); -#if 0 - // If we have blue in the lowest bit then obviously RGB - mode = ((myximage->blue_mask & 0x01) != 0) ? MODE_RGB : MODE_BGR; -#ifdef WORDS_BIGENDIAN - if (myximage->byte_order != MSBFirst) -#else - if (myximage->byte_order != LSBFirst) -#endif - { - printf("[gl] no support for non-native XImage byte order!\n"); - return -1; - } - - printf("DEPTH=%d BPP=%d\n",depth,bpp); -#endif - /* * If depth is 24 then it may either be a 3 or 4 byte per pixel * format. We can't use bpp because then we would lose the @@ -199,15 +174,7 @@ while(texture_widthRGB...\n"); - yuv2rgb(ImageData, src[0], src[1], src[2], - image_width, image_height, - image_width*BYTES_PP, image_width, image_width/2 ); - - for(i=0;i