40#define le16(x) RtlUshortByteSwap((x))
41#define le32(x) RtlUlongByteSwap((x))
66 dst = (
char *)
dst + dst_stride;
79 dst = (
char *)
dst + dst_stride;
93 dest24[2] =
dest - 0x80;
95 dst = (
char *)
dst + dst_stride;
106 *dest32 =
le32(
dest * 16843009 - 2147483648U);
108 dst = (
char *)
dst + dst_stride;
122 dst = (
char *)
dst + dst_stride;
134 dst = (
char *)
dst + dst_stride;
147 dest24[0] =
dest / 256;
149 dest24[2] =
dest / 256;
151 dst = (
char *)
dst + dst_stride;
162 *dest32 =
dest * 65537;
164 dst = (
char *)
dst + dst_stride;
175 *dst8 = ((
const BYTE *)
src)[2];
177 dst = (
char *)
dst + dst_stride;
191 dst = (
char *)
dst + dst_stride;
204 dest24[0] = src24[0];
205 dest24[1] = src24[1];
206 dest24[2] = src24[2];
208 dst = (
char *)
dst + dst_stride;
222 dst = (
char *)
dst + dst_stride;
236 dst = (
char *)
dst + dst_stride;
249 dst = (
char *)
dst + dst_stride;
262 dest24[0] =
dest / 256;
263 dest24[1] =
dest / 65536;
264 dest24[2] =
dest / 16777216;
266 dst = (
char *)
dst + dst_stride;
279 dst = (
char *)
dst + dst_stride;
290 float v = *((
float *) &src_le);
298 d =
v * 127.5f - 0.5f;
302 dst = (
char *)
dst + dst_stride;
313 float v = *((
float *) &src_le);
322 *
d =
v * 32767.5f - 0.5f;
326 dst = (
char *)
dst + dst_stride;
337 float v = *((
float *) &src_le);
354 dest24[0] =
v * 8388608.0f;
355 dest24[1] =
v * 32768.0f;
356 dest24[2] =
v * 128.0f;
360 dest24[0] =
v * 8388608.0f;
361 dest24[1] =
v * 32768.0f;
362 dest24[2] =
v * 127.0f;
365 dst = (
char *)
dst + dst_stride;
376 float v = *((
float *) &src_le);
380 *
d = -2147483647 - 1;
384 *
d =
v * 2147483647.5f - 0.5f;
388 dst = (
char *)
dst + dst_stride;
429 field |= 0xFF000000U;
455 *
dst = (*src) + 0x80;
458 else if (*
src > 0x7f)
474 else if (*
src > 0x7fff)
487 if (*
src <= -0x800000)
493 else if (*
src > 0x7fffff)
519 else if (*
src > 0x7fffffff)
static void convert_8_to_8(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void mix8(signed char *src, INT *dst, unsigned len)
static void convert_ieee_32_to_8(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_16_to_8(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
const mixfunc mixfunctions[4]
static void mix24(BYTE *src, INT *dst, unsigned len)
const normfunc normfunctions[4]
static void convert_24_to_32(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_8_to_24(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void src_advance(const void **src, UINT stride, INT *count, UINT *freqAcc, UINT adj)
static void convert_24_to_16(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_16_to_24(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_32_to_32(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void mix32(INT *src, LONGLONG *dst, unsigned len)
static void mix16(SHORT *src, INT *dst, unsigned len)
static void norm8(INT *src, signed char *dst, unsigned len)
static void convert_24_to_24(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_ieee_32_to_24(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_ieee_32_to_32(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void norm32(LONGLONG *src, INT *dst, unsigned len)
static void convert_16_to_32(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_24_to_8(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
const bitsconvertfunc convertbpp[5][4]
static void norm16(INT *src, SHORT *dst, unsigned len)
static void convert_32_to_16(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void norm24(INT *src, BYTE *dst, unsigned len)
static void convert_8_to_32(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_32_to_24(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_32_to_8(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_ieee_32_to_16(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_8_to_16(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
static void convert_16_to_16(const void *src, void *dst, UINT src_stride, UINT dst_stride, INT count, UINT freqAcc, UINT adj)
void(* bitsconvertfunc)(const void *, void *, UINT, UINT, INT, UINT, UINT)
void(* normfunc)(const void *, void *, unsigned)
void(* mixfunc)(const void *, void *, unsigned)
GLuint GLuint GLsizei count