Commit 79547bbf authored by nick's avatar nick

vo_vesa: rgb2rgb support


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2505 b3059339-0415-0410-9bf9-f77b7e298cf2
parent a9925e7a
......@@ -3,7 +3,7 @@ include ../config.mak
LIBNAME = libpostproc.a
SRCS=postprocess.c swscale.c
SRCS=postprocess.c swscale.c rgb2rgb.c
OBJS=$(SRCS:.c=.o)
CFLAGS = $(OPTFLAGS) -I. -I.. -Wall
......
#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;
}
}
/*
*
* 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
#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;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment