[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.2,1.3

Szabolcs Berecz szabii at users.sourceforge.net
Wed Mar 28 20:01:18 CEST 2001


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

Modified Files:
	vo_fbdev.c 
Log Message:
works with .avi (for me :) )

Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** vo_fbdev.c	2001/03/28 16:35:14	1.2
--- vo_fbdev.c	2001/03/28 18:01:16	1.3
***************
*** 28,32 ****
  };
  
! static int vt_active;
  static int vt_fd;
  
--- 28,32 ----
  };
  
! static int vt_active = -1;
  static int vt_fd;
  
***************
*** 196,201 ****
  			return 0;
  	printf("vo_fbdev: query_format(%#x): ", format);
! 	if (format & IMGFMT_BGR_MASK == IMGFMT_BGR)
! 		goto not_supported;
  	switch (format) {
  		case IMGFMT_YV12:
--- 196,201 ----
  			return 0;
  	printf("vo_fbdev: query_format(%#x): ", format);
! //	if (format & IMGFMT_BGR_MASK == IMGFMT_BGR)
! //		goto not_supported;
  	switch (format) {
  		case IMGFMT_YV12:
***************
*** 276,289 ****
  				in_height, in_width * (fb_bpp / 8),
  				in_width, in_width / 2);
! 	} else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) {
  		int i;
  		uint8_t *dst = next_frame;
  		uint8_t *s = src[0];
  		for (i = 0; i < in_height; i++) {
! 			memcpy(next_frame, s, in_width * (fb_bpp / 8));
! 			dst += screen_width;
  			s += in_width * (fb_bpp / 8);
  		}
! 	} else {
  	}
  	return 0;
--- 276,289 ----
  				in_height, in_width * (fb_bpp / 8),
  				in_width, in_width / 2);
! 	} else if ((pixel_format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
  		int i;
  		uint8_t *dst = next_frame;
  		uint8_t *s = src[0];
  		for (i = 0; i < in_height; i++) {
! 			memcpy(dst, s, in_width * (fb_bpp / 8));
! 			dst += in_width * (fb_bpp / 8);
  			s += in_width * (fb_bpp / 8);
  		}
! 	} else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) {
  	}
  	return 0;


_______________________________________________
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