221 * This fonction will compute the extraction parameter into pi_selection to go
222 * from i_channels with their type given by pi_order_src[] into the order
223 * describe by pi_order_dst.
224 * It will also set :
225 * - *pi_channels as the number of channels that will be extracted which is
226 * lower (in case of non understood channels type) or equal to i_channels.
227 * - the layout of the channels (*pi_layout).
228 *
229 * It will return true if channel extraction is really needed, in which case
230 * aout_ChannelExtract must be used
231 *
232 * XXX It must be used when the source may have channel type not understood
233 * by VLC. In this case the channel type pi_order_src[] must be set to 0.
234 * XXX It must also be used if multiple channels have the same type.
235 */
236VLC_APIboolaout_CheckChannelExtraction( int *pi_selection, uint32_t *pi_layout, int *pi_channels, const uint32_t pi_order_dst[AOUT_CHAN_MAX], const uint32_t *pi_order_src, int i_channels );
237
238/**
239 * Do the actual channels extraction using the parameters created by
240 * aout_CheckChannelExtraction.
241 *
242 * XXX this function does not work in place (p_dst and p_src must not overlap).
243 * XXX Only 8, 16, 24, 32, 64 bits per sample are supported.
244 */
245VLC_APIvoidaout_ChannelExtract( void *p_dst, int i_dst_channels, constvoid *p_src, int i_src_channels, int i_sample_count, constint *pi_selection, int i_bits_per_sample );