1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 11:25:10 +00:00
mpv/postproc/rgb2rgb.c
nick d6bed371d7 vo_vesa: rgb2rgb support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2505 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-28 10:17:57 +00:00

19 lines
341 B
C

#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;
}
}