|
|
|
@ -317,7 +317,7 @@ void rgb15tobgr15(const uint8_t *src, uint8_t *dst, int src_size) |
|
|
|
|
void rgb12tobgr12(const uint8_t *src, uint8_t *dst, int src_size) |
|
|
|
|
{ |
|
|
|
|
uint16_t *d = (uint16_t *)dst; |
|
|
|
|
uint16_t *s = (uint16_t *)src; |
|
|
|
|
const uint16_t *s = (const uint16_t *)src; |
|
|
|
|
int i, num_pixels = src_size >> 1; |
|
|
|
|
|
|
|
|
|
for (i = 0; i < num_pixels; i++) { |
|
|
|
@ -331,7 +331,7 @@ void rgb48tobgr48_ ## need_bswap(const uint8_t *src, \ |
|
|
|
|
uint8_t *dst, int src_size) \
|
|
|
|
|
{ \
|
|
|
|
|
uint16_t *d = (uint16_t *)dst; \
|
|
|
|
|
uint16_t *s = (uint16_t *)src; \
|
|
|
|
|
const uint16_t *s = (const uint16_t *)src; \
|
|
|
|
|
int i, num_pixels = src_size >> 1; \
|
|
|
|
|
\
|
|
|
|
|
for (i = 0; i < num_pixels; i += 3) { \
|
|
|
|
@ -349,7 +349,7 @@ void rgb64tobgr48_ ## need_bswap(const uint8_t *src, \ |
|
|
|
|
uint8_t *dst, int src_size) \
|
|
|
|
|
{ \
|
|
|
|
|
uint16_t *d = (uint16_t *)dst; \
|
|
|
|
|
uint16_t *s = (uint16_t *)src; \
|
|
|
|
|
const uint16_t *s = (const uint16_t *)src; \
|
|
|
|
|
int i, num_pixels = src_size >> 3; \
|
|
|
|
|
\
|
|
|
|
|
for (i = 0; i < num_pixels; i++) { \
|
|
|
|
@ -367,7 +367,7 @@ void rgb64to48_ ## need_bswap(const uint8_t *src, \ |
|
|
|
|
uint8_t *dst, int src_size) \
|
|
|
|
|
{ \
|
|
|
|
|
uint16_t *d = (uint16_t *)dst; \
|
|
|
|
|
uint16_t *s = (uint16_t *)src; \
|
|
|
|
|
const uint16_t *s = (const uint16_t *)src; \
|
|
|
|
|
int i, num_pixels = src_size >> 3; \
|
|
|
|
|
\
|
|
|
|
|
for (i = 0; i < num_pixels; i++) { \
|
|
|
|
@ -385,7 +385,7 @@ void rgb48tobgr64_ ## need_bswap(const uint8_t *src, \ |
|
|
|
|
uint8_t *dst, int src_size) \
|
|
|
|
|
{ \
|
|
|
|
|
uint16_t *d = (uint16_t *)dst; \
|
|
|
|
|
uint16_t *s = (uint16_t *)src; \
|
|
|
|
|
const uint16_t *s = (const uint16_t *)src; \
|
|
|
|
|
int i, num_pixels = src_size / 6; \
|
|
|
|
|
\
|
|
|
|
|
for (i = 0; i < num_pixels; i++) { \
|
|
|
|
@ -404,7 +404,7 @@ void rgb48to64_ ## need_bswap(const uint8_t *src, \ |
|
|
|
|
uint8_t *dst, int src_size) \
|
|
|
|
|
{ \
|
|
|
|
|
uint16_t *d = (uint16_t *)dst; \
|
|
|
|
|
uint16_t *s = (uint16_t *)src; \
|
|
|
|
|
const uint16_t *s = (const uint16_t *)src; \
|
|
|
|
|
int i, num_pixels = src_size / 6; \
|
|
|
|
|
\
|
|
|
|
|
for (i = 0; i < num_pixels; i++) { \
|
|
|
|
|