[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.25,1.26

Zoltan Mark Vician se7encode at users.sourceforge.net
Tue Apr 24 17:56:43 CEST 2001


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

Modified Files:
	vo_svga.c 
Log Message:
Some names, types changed.

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** vo_svga.c	2001/04/24 12:34:08	1.25
--- vo_svga.c	2001/04/24 15:56:41	1.26
***************
*** 452,466 ****
      switch(bpp) {
        case 32: {
!         uint16_t *source = (uint16_t *) src[0];
!         uint16_t *dest = (uint16_t *) bppbuf;
!         uint16_t *end;
      
! 	end = source + (maxw * maxh * 2);
!         while (source < end) {
! 	  *dest++ = *source++;
! 	  (uint8_t *)dest = (uint8_t *)source;
! 	  *(((uint8_t *)dest)+1) = 0;
! 	  dest++;
! 	  source++;
  	}
        } break;
--- 452,465 ----
      switch(bpp) {
        case 32: {
!         uint8_t *source = src[0];
!         uint8_t *dest = bppbuf;
! 	register uint32_t i = 0;
      
! 	while (i < (maxw * maxh * 4)) {
! 	  dest[i] = source[i];
! 	  dest[i+1] = source[i+1];
! 	  dest[i+2] = source[i+2];
! 	  dest[i+3] = 0;
! 	  i += 4;
  	}
        } break;
***************
*** 471,481 ****
          uint16_t *source = (uint16_t *) src[0];
          uint16_t *dest = (uint16_t *) bppbuf;
!         uint16_t *end;
  	register uint16_t srcdata;
  	
! 	end = source + (maxw * maxh);
! 	while (source < end) {
! 	  srcdata = *source++;
! 	  *dest++ = (srcdata & 0x1f) | ((srcdata & 0x7fe0) << 1);
  	}
  #endif
--- 470,479 ----
          uint16_t *source = (uint16_t *) src[0];
          uint16_t *dest = (uint16_t *) bppbuf;
! 	register uint32_t i = 0;
  	register uint16_t srcdata;
  	
! 	while (i < (maxw * maxh)) {
! 	  srcdata = source[i];
! 	  dest[i++] = (srcdata & 0x1f) | ((srcdata & 0x7fe0) << 1);
  	}
  #endif


_______________________________________________
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