diff options
author | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 10:17:57 +0000 |
---|---|---|
committer | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 10:17:57 +0000 |
commit | b234ae818baabca22afed95b70fb5a3607dac0cc (patch) | |
tree | e6d21c75fdf1e015df6d17ddfe31f514d4c923ff /postproc/rgb2rgb_template.c | |
parent | 390b20a6c9d82432a407dc38af2f0013f6c77be8 (diff) | |
download | ffmpeg-b234ae818baabca22afed95b70fb5a3607dac0cc.tar.gz |
vo_vesa: rgb2rgb support
Originally committed as revision 2505 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb_template.c')
-rw-r--r-- | postproc/rgb2rgb_template.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c new file mode 100644 index 0000000000..1a71ba9dce --- /dev/null +++ b/postproc/rgb2rgb_template.c @@ -0,0 +1,18 @@ +#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; + } +} |