[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.6,1.7

Nick Kurshev nick at mplayer.dev.hu
Mon Jan 7 11:54:35 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv1228/main/vidix/drivers

Modified Files:
	radeon_vid.c 
Log Message:
double buffering fixing

Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- radeon_vid.c	7 Jan 2002 09:28:21 -0000	1.6
+++ radeon_vid.c	7 Jan 2002 10:54:32 -0000	1.7
@@ -992,8 +992,17 @@
 {
   unsigned pitch,awidth;
   pitch = radeon_query_pitch(info->fourcc);
-  awidth = info->src.w + ((pitch-1) & ~(pitch-1));
-  info->frame_size = awidth*info->src.h+(awidth*info->src.h)/2;
+  awidth = (info->src.w + (pitch-1)) & ~(pitch-1);
+  switch(info->fourcc)
+  {
+    case IMGFMT_I420:
+    case IMGFMT_YV12:
+    case IMGFMT_IYUV:
+		info->frame_size = awidth*info->src.h+(awidth*info->src.h)/2;
+		break;
+    default:	info->frame_size = awidth*info->src.h*2;
+		break;
+  }
 }
 
 int vixConfigPlayback(vidix_playback_t *info)
@@ -1021,7 +1030,7 @@
   return 0;
 }
 
-int vixPlaybackFrameSel(unsigned frame)
+int vixPlaybackFrameSelect(unsigned frame)
 {
     uint32_t off0,off1,off2;
 /*    if(!besr.double_buff) return; */




More information about the MPlayer-cvslog mailing list