Lines Matching refs:out_buff_chans
68 #define EXPAND_CHANNELS(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes, zero) \ argument
71 size_t num_out_samples = (num_in_samples * out_buff_chans) / in_buff_chans; \
75 size_t num_zero_chans = out_buff_chans - in_buff_chans; \
81 for (; dst_offset < out_buff_chans; dst_offset++) { \
99 #define EXPAND_MONO_TO_MULTI(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes, zero) \ argument
102 size_t num_out_samples = (num_in_samples * out_buff_chans) / in_buff_chans; \
106 size_t num_zero_chans = out_buff_chans - in_buff_chans - 1; \
112 for (; dst_offset < out_buff_chans; dst_offset++) { \
128 #define CONTRACT_CHANNELS(in_buff, in_buff_chans, out_buff, out_buff_chans, num_in_bytes) \ argument
131 size_t num_out_samples = (num_in_samples * out_buff_chans) / in_buff_chans; \
132 size_t num_skip_samples = in_buff_chans - out_buff_chans; \
138 for (dst_offset = 0; dst_offset < out_buff_chans; dst_offset++) { \
162 size_t num_out_samples = (num_in_samples * out_buff_chans) / in_buff_chans; \
195 size_t num_out_samples = (num_in_samples * out_buff_chans) / in_buff_chans; \
228 void* out_buff, size_t out_buff_chans, in contract_channels() argument
233 if (out_buff_chans == 1) { in contract_channels()
239 (uint8_t*)out_buff, out_buff_chans, in contract_channels()
244 if (out_buff_chans == 1) { in contract_channels()
250 (int16_t*)out_buff, out_buff_chans, in contract_channels()
255 if (out_buff_chans == 1) { in contract_channels()
262 (uint8x3_t*)out_buff, out_buff_chans, in contract_channels()
267 if (out_buff_chans == 1) { in contract_channels()
273 (int32_t*)out_buff, out_buff_chans, in contract_channels()
299 void* out_buff, size_t out_buff_chans, in expand_channels() argument
309 (uint8_t*)out_buff, out_buff_chans, in expand_channels()
314 (uint8_t*)out_buff, out_buff_chans, in expand_channels()
322 (int16_t*)out_buff, out_buff_chans, in expand_channels()
327 (int16_t*)out_buff, out_buff_chans, in expand_channels()
335 (uint8x3_t*)out_buff, out_buff_chans, in expand_channels()
340 (uint8x3_t*)out_buff, out_buff_chans, in expand_channels()
348 (int32_t*)out_buff, out_buff_chans, in expand_channels()
353 (int32_t*)out_buff, out_buff_chans, in expand_channels()
363 void* out_buff, size_t out_buff_chans, in adjust_channels() argument
366 if (out_buff_chans > in_buff_chans) { in adjust_channels()
367 return expand_channels(in_buff, in_buff_chans, out_buff, out_buff_chans, in adjust_channels()
369 } else if (out_buff_chans < in_buff_chans) { in adjust_channels()
370 return contract_channels(in_buff, in_buff_chans, out_buff, out_buff_chans, in adjust_channels()