19 unsigned short *d = (
unsigned short *)dest;
25 *d++ = (b >> 3) | ((g << 3) & 0x07E0) | ((r << 8) & 0xF800);
35 unsigned int *d = (
unsigned int *)dest;
41 *d++ = 0xFF000000 | b | (g << 8) | (r << 16);
49 unsigned short *d = (
unsigned short *)dest;
51 *d++ = (((
unsigned short)src[0] << 8) & 0xF800) | (((
unsigned short)src[1] << 3) & 0x07E0) | ((
unsigned short)src[2] >> 3);
60 unsigned int *d = (
unsigned int *)dest;
63 *d++ = 0xFF000000 | ((
unsigned int)src[0] << 16) | ((
unsigned int)src[1] << 8) | ((
unsigned int)src[2]);
71 unsigned short *d = (
unsigned short *)dest;
76 c = *(
unsigned int *)src & 0x00FFFFFF;
77 *d++ = (
unsigned short)((c >> (16+3)) | ((c >> 5) & 0x07E0) | ((c << 8) & 0xF800));
78 src +=
sizeof(
unsigned int );
85 unsigned int *d = (
unsigned int *)dest;
90 c = *(
unsigned int *)src;
91 *d++ = (c >> 16) | (c & 0xFF00FF00) | (c << 16);
92 src +=
sizeof(
unsigned int );
99 unsigned short *d = (
unsigned short *)dest;
101 *d++ = ((
unsigned short)src[0] >> 3) | (((
unsigned short)src[1] << 3) & 0x07E0) | (((
unsigned short)src[2] << 8) & 0xF800);
110 unsigned int *d = (
unsigned int *)dest;
113 *d++ = 0xFF000000 | (*(
unsigned int *)src & 0xFFFFFF);
121 unsigned short *d = (
unsigned short *)dest;
122 const unsigned int *s = (
const unsigned int *)src;
125 *d++ = (
unsigned short)(((*s & 0xFF) >> 3) | ((*s >> 5) & 0x07E0) | ((*s >> 8) & 0xF800));
138 unsigned char *dest,
int dst_bpp,
139 int width,
int isrgb )
153 else if (src_bpp == 24)
163 else if (src_bpp == 32)
176 convert( src, dest, width );