vo_vesa: rgb2rgb support
[libav.git] / postproc / rgb2rgb.c
CommitLineData
b234ae81
NK
1#include <inttypes.h>
2#include "../config.h"
3#include "rgb2rgb.h"
4
5void 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}