Mercurial > mplayer.hg
annotate postproc/rgb2rgb.c @ 2504:13e1c5ab417a
vo_vesa: rgb2rgb support
author | nick |
---|---|
date | Sun, 28 Oct 2001 10:17:57 +0000 |
parents | |
children | 2aaa11d22f91 |
rev | line source |
---|---|
2504 | 1 #include <inttypes.h> |
2 #include "../config.h" | |
3 #include "rgb2rgb.h" | |
4 | |
5 void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) | |
6 { | |
7 uint32_t *dest = (uint32_t *)dst; | |
8 uint8_t *s = src; | |
9 uint8_t *end; | |
10 end = s + src_size; | |
11 while(s < end) | |
12 { | |
13 uint32_t rgb0; | |
14 rgb0 = *(uint32_t *)s; | |
15 *dest++ = rgb0 & 0xFFFFFFUL; | |
16 s += 3; | |
17 } | |
18 } |