104
t_sample *mixeng_conv[2][2][2][2] = {
107
#define IN_MIN INT32_MIN
108
#define IN_MAX INT32_MAX
111
#define ENDIAN_CONVERSION natural
112
#define ENDIAN_CONVERT(v) (v)
113
#include "mixeng_template.h"
114
#undef ENDIAN_CONVERT
115
#undef ENDIAN_CONVERSION
116
#define ENDIAN_CONVERSION swap
117
#define ENDIAN_CONVERT(v) bswap32 (v)
118
#include "mixeng_template.h"
119
#undef ENDIAN_CONVERT
120
#undef ENDIAN_CONVERSION
127
/* Unsigned 16 bit */
128
#define IN_T uint32_t
130
#define IN_MAX UINT32_MAX
132
#define ENDIAN_CONVERSION natural
133
#define ENDIAN_CONVERT(v) (v)
134
#include "mixeng_template.h"
135
#undef ENDIAN_CONVERT
136
#undef ENDIAN_CONVERSION
137
#define ENDIAN_CONVERSION swap
138
#define ENDIAN_CONVERT(v) bswap32 (v)
139
#include "mixeng_template.h"
140
#undef ENDIAN_CONVERT
141
#undef ENDIAN_CONVERSION
147
t_sample *mixeng_conv[2][2][2][3] = {
108
151
conv_natural_uint8_t_to_mono,
109
conv_natural_uint16_t_to_mono
152
conv_natural_uint16_t_to_mono,
153
conv_natural_uint32_t_to_mono
112
156
conv_natural_uint8_t_to_mono,
113
conv_swap_uint16_t_to_mono
157
conv_swap_uint16_t_to_mono,
158
conv_swap_uint32_t_to_mono,
118
163
conv_natural_int8_t_to_mono,
119
conv_natural_int16_t_to_mono
164
conv_natural_int16_t_to_mono,
165
conv_natural_int32_t_to_mono
122
168
conv_natural_int8_t_to_mono,
123
conv_swap_int16_t_to_mono
169
conv_swap_int16_t_to_mono,
170
conv_swap_int32_t_to_mono
130
177
conv_natural_uint8_t_to_stereo,
131
conv_natural_uint16_t_to_stereo
178
conv_natural_uint16_t_to_stereo,
179
conv_natural_uint32_t_to_stereo
134
182
conv_natural_uint8_t_to_stereo,
135
conv_swap_uint16_t_to_stereo
183
conv_swap_uint16_t_to_stereo,
184
conv_swap_uint32_t_to_stereo
140
189
conv_natural_int8_t_to_stereo,
141
conv_natural_int16_t_to_stereo
190
conv_natural_int16_t_to_stereo,
191
conv_natural_int32_t_to_stereo
144
194
conv_natural_int8_t_to_stereo,
145
conv_swap_int16_t_to_stereo
195
conv_swap_int16_t_to_stereo,
196
conv_swap_int32_t_to_stereo,
151
f_sample *mixeng_clip[2][2][2][2] = {
202
f_sample *mixeng_clip[2][2][2][3] = {
155
206
clip_natural_uint8_t_from_mono,
156
clip_natural_uint16_t_from_mono
207
clip_natural_uint16_t_from_mono,
208
clip_natural_uint32_t_from_mono
159
211
clip_natural_uint8_t_from_mono,
160
clip_swap_uint16_t_from_mono
212
clip_swap_uint16_t_from_mono,
213
clip_swap_uint32_t_from_mono
165
218
clip_natural_int8_t_from_mono,
166
clip_natural_int16_t_from_mono
219
clip_natural_int16_t_from_mono,
220
clip_natural_int32_t_from_mono
169
223
clip_natural_int8_t_from_mono,
170
clip_swap_int16_t_from_mono
224
clip_swap_int16_t_from_mono,
225
clip_swap_int32_t_from_mono
177
232
clip_natural_uint8_t_from_stereo,
178
clip_natural_uint16_t_from_stereo
233
clip_natural_uint16_t_from_stereo,
234
clip_natural_uint32_t_from_stereo
181
237
clip_natural_uint8_t_from_stereo,
182
clip_swap_uint16_t_from_stereo
238
clip_swap_uint16_t_from_stereo,
239
clip_swap_uint32_t_from_stereo
187
244
clip_natural_int8_t_from_stereo,
188
clip_natural_int16_t_from_stereo
245
clip_natural_int16_t_from_stereo,
246
clip_natural_int32_t_from_stereo
191
249
clip_natural_int8_t_from_stereo,
192
clip_swap_int16_t_from_stereo
250
clip_swap_int16_t_from_stereo,
251
clip_swap_int32_t_from_stereo