[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.1,1.2 rgb2rgb.h,1.1,1.2

Nick Kurshev nick at mplayer.dev.hu
Sun Oct 28 11:28:10 CET 2001


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

Modified Files:
	rgb2rgb.c rgb2rgb.h 
Log Message:
vo_vesa: more rgb2rgb support

Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rgb2rgb.c	28 Oct 2001 10:17:57 -0000	1.1
+++ rgb2rgb.c	28 Oct 2001 10:28:08 -0000	1.2
@@ -2,6 +2,8 @@
 #include "../config.h"
 #include "rgb2rgb.h"
 
+/* TODO: MMX optimization */
+
 void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
 {
   uint32_t *dest = (uint32_t *)dst;
@@ -14,5 +16,20 @@
     rgb0 = *(uint32_t *)s;
     *dest++ = rgb0 & 0xFFFFFFUL;
     s += 3;
+  }
+}
+
+void rgb32to24(uint8_t *src,uint8_t *dst,uint32_t src_size)
+{
+  uint8_t *dest = dst;
+  uint8_t *s = src;
+  uint8_t *end;
+  end = s + src_size;
+  while(s < end)
+  {
+    *dest++ = *s++;
+    *dest++ = *s++;
+    *dest++ = *s++;
+    s++;
   }
 }

Index: rgb2rgb.h
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rgb2rgb.h	28 Oct 2001 10:17:57 -0000	1.1
+++ rgb2rgb.h	28 Oct 2001 10:28:08 -0000	1.2
@@ -1,6 +1,6 @@
 /* 
  *
- *  rgb2rgb.h, Software RGB to RGB coverter
+ *  rgb2rgb.h, Software RGB to RGB converter
  *
  */
 
@@ -8,5 +8,6 @@
 #define RGB2RGB_INCLUDED
 
 extern void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size);
+extern void rgb32to24(uint8_t *src,uint8_t *dst,uint32_t src_size);
 
 #endif




More information about the MPlayer-cvslog mailing list