[Mplayer-cvslog] CVS: main/libvo mga_common.c,1.11,1.12

GEREOFFY arpi_esp at users.sourceforge.net
Mon Apr 16 03:25:47 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv8860

Modified Files:
	mga_common.c 
Log Message:
UYVY support

Index: mga_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/mga_common.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** mga_common.c	2001/04/15 20:31:57	1.11
--- mga_common.c	2001/04/16 01:25:45	1.12
***************
*** 13,20 ****
      int x,y;
      uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
!     if (mga_vid_config.format==MGA_VID_FORMAT_YV12)
          vo_draw_alpha_yv12(w,h,src,srca,stride,vid_data+bespitch*y0+x0,bespitch);
!     else
          vo_draw_alpha_yuy2(w,h,src,srca,stride,vid_data+2*(bespitch*y0+x0),2*bespitch);
  }
  
--- 13,27 ----
      int x,y;
      uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
!     switch(mga_vid_config.format){
!     case MGA_VID_FORMAT_YV12:
          vo_draw_alpha_yv12(w,h,src,srca,stride,vid_data+bespitch*y0+x0,bespitch);
!         break;
!     case MGA_VID_FORMAT_YUY2:
          vo_draw_alpha_yuy2(w,h,src,srca,stride,vid_data+2*(bespitch*y0+x0),2*bespitch);
+         break;
+     case MGA_VID_FORMAT_UYVY:
+         vo_draw_alpha_yuy2(w,h,src,srca,stride,vid_data+2*(bespitch*y0+x0)+1,2*bespitch);
+         break;
+     }
  }
  


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list