Home | History | Annotate | Download | only in audio_utils

Lines Matching refs:out_buff

65  * i.e. in_buff == out_buff
68 #define EXPAND_CHANNELS(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes, zero) \
72 typeof(out_buff) dst_ptr = out_buff + num_out_samples - 1; \
86 return num_out_samples * sizeof(*out_buff); \
96 * i.e. in_buff == out_buff
99 #define EXPAND_MONO_TO_MULTI(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes, zero) \
103 typeof(out_buff) dst_ptr = out_buff + num_out_samples - 1; \
118 return num_out_samples * sizeof(*out_buff); \
125 * i.e. in_buff == out_buff
128 #define CONTRACT_CHANNELS(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes) \
133 typeof(out_buff) dst_ptr = out_buff; \
144 return num_out_samples * sizeof(*out_buff); \
154 * i.e. in_buff == out_buff
159 #define CONTRACT_TO_MONO(in_buff, out_buff, num_in_bytes) \
164 typeof(out_buff) dst_ptr = out_buff; \
179 return num_out_samples * sizeof(*out_buff); \
187 * i.e. in_buff == out_buff
192 #define CONTRACT_TO_MONO_24(in_buff, out_buff, num_in_bytes) \
197 typeof(out_buff) dst_ptr = out_buff; \
208 return num_out_samples * sizeof(*out_buff); \
216 * out_buff points to the buffer to receive converted samples.
228 void* out_buff, size_t out_buff_chans,
235 CONTRACT_TO_MONO((const uint8_t*)in_buff, (uint8_t*)out_buff, num_in_bytes);
239 (uint8_t*)out_buff, out_buff_chans,
246 CONTRACT_TO_MONO((const int16_t*)in_buff, (int16_t*)out_buff, num_in_bytes);
250 (int16_t*)out_buff, out_buff_chans,
258 (uint8x3_t*)out_buff, num_in_bytes);
262 (uint8x3_t*)out_buff, out_buff_chans,
269 CONTRACT_TO_MONO((const int32_t*)in_buff, (int32_t*)out_buff, num_in_bytes);
273 (int32_t*)out_buff, out_buff_chans,
287 * out_buff points to the buffer to receive converted samples.
299 void* out_buff, size_t out_buff_chans,
309 (uint8_t*)out_buff, out_buff_chans,
314 (uint8_t*)out_buff, out_buff_chans,
322 (int16_t*)out_buff, out_buff_chans,
327 (int16_t*)out_buff, out_buff_chans,
335 (uint8x3_t*)out_buff, out_buff_chans,
340 (uint8x3_t*)out_buff, out_buff_chans,
348 (int32_t*)out_buff, out_buff_chans,
353 (int32_t*)out_buff, out_buff_chans,
363 void* out_buff, size_t out_buff_chans,
367 return expand_channels(in_buff, in_buff_chans, out_buff, out_buff_chans,
370 return contract_channels(in_buff, in_buff_chans, out_buff, out_buff_chans,
372 } else if (in_buff != out_buff) {
373 memcpy(out_buff, in_buff, num_in_bytes);