summaryrefslogtreecommitdiffstats
path: root/postproc/rgb2rgb.c
blob: 1a71ba9dce648549966a7b767cf1b1277696999b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
  }
}