[Mplayer-cvslog] CVS: main/libvo vo_gl2.c,1.3,1.4
Sven Goethel
sven at mplayer.dev.hu
Fri Oct 19 12:09:40 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv10371/main/libvo
Modified Files:
vo_gl2.c
Log Message:
improved gl, please check performance and correct display
Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vo_gl2.c 18 Oct 2001 02:42:20 -0000 1.3
+++ vo_gl2.c 19 Oct 2001 10:09:29 -0000 1.4
@@ -1,10 +1,5 @@
#define DISP
-// this can be 3 or 4 (regarding 24bpp and 32bpp)
-#define BYTES_PP 3
-
-#define TEXTUREFORMAT_32BPP
-
/*
* video_out_gl.c, X11/OpenGL interface
* based on video_out_x11 by Aaron Holtzman,
@@ -20,7 +15,6 @@
[...992 lines suppressed...]
static inline uint32_t
draw_frame_x11_rgb(uint8_t *src[])
{
-int i;
-uint8_t *ImageData=src[0];
+ resetTexturePointers((unsigned char *)src[0]);
+ ImageData=(unsigned char *)src[0];
- printf("draw_frame_x11_rgb not implemented\n");
-// drawTextureDisplay ();
+ used_r=1;
-// Display_Image(ImageData);
- return 0;
+ setupTextureDirtyArea(0, 0, image_width, image_height);
+ return 0;
}
More information about the MPlayer-cvslog
mailing list