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

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


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

Modified Files:
	Makefile 
Added Files:
	rgb2rgb.c rgb2rgb.h 
Log Message:
vo_vesa: rgb2rgb support

--- NEW FILE ---
#include <inttypes.h>
#include "../config.h"
#include "rgb2rgb.h"

void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
{
  uint32_t *dest = (uint32_t *)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;
  }
}

--- NEW FILE ---
/* 
 *
 *  rgb2rgb.h, Software RGB to RGB coverter
 *
 */

#ifndef RGB2RGB_INCLUDED
#define RGB2RGB_INCLUDED

extern void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size);

#endif

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile	24 Oct 2001 07:34:41 -0000	1.1
+++ Makefile	28 Oct 2001 10:17:57 -0000	1.2
@@ -3,7 +3,7 @@
 
 LIBNAME = libpostproc.a
 
-SRCS=postprocess.c swscale.c
+SRCS=postprocess.c swscale.c rgb2rgb.c
 OBJS=$(SRCS:.c=.o)
 
 CFLAGS  = $(OPTFLAGS) -I. -I.. -Wall




More information about the MPlayer-cvslog mailing list