[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.3,1.4

Nick Kurshev nick at mplayer.dev.hu
Sun Oct 28 12:00:42 CET 2001


Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv21042/main/postproc

Modified Files:
	rgb2rgb.c 
Log Message:
Prev ver could work only on x86

Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rgb2rgb.c	28 Oct 2001 10:45:42 -0000	1.3
+++ rgb2rgb.c	28 Oct 2001 11:00:40 -0000	1.4
@@ -7,16 +7,16 @@
 
 void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
 {
-  uint32_t *dest = (uint32_t *)dst;
+  uint8_t *dest = dst;
   uint8_t *s = src;
   uint8_t *end;
   end = s + src_size;
   while(s < end)
   {
-    uint32_t rgb0;
-    rgb0 = *(uint32_t *)s;
-    *dest++ = rgb0 & 0xFFFFFFUL;
-    s += 3;
+    *dest++ = *s++;
+    *dest++ = *s++;
+    *dest++ = *s++;
+    *dest++ = 0;
   }
 }
 




More information about the MPlayer-cvslog mailing list