Home
last modified time | relevance | path

Searched refs:nb_channels (Results 1 – 8 of 8) sorted by relevance

/external/speex/libspeex/
Dspeex_header.c86 EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) in speex_init_header() argument
110 header->nb_channels = nb_channels; in speex_init_header()
134 ENDIAN_SWITCH(le_header->nb_channels); in speex_header_to_packet()
174 ENDIAN_SWITCH(le_header->nb_channels); in speex_packet_to_header()
188 if (le_header->nb_channels>2) in speex_packet_to_header()
189 le_header->nb_channels = 2; in speex_packet_to_header()
190 if (le_header->nb_channels<1) in speex_packet_to_header()
191 le_header->nb_channels = 1; in speex_packet_to_header()
Dresample.c122 spx_uint32_t nb_channels; member
651 … st->mem = (spx_word16_t*)speex_alloc(st->nb_channels*st->mem_alloc_size * sizeof(spx_word16_t)); in update_filter()
652 for (i=0;i<st->nb_channels*st->mem_alloc_size;i++) in update_filter()
659 …st->mem = (spx_word16_t*)speex_realloc(st->mem, st->nb_channels*st->mem_alloc_size * sizeof(spx_wo… in update_filter()
660 for (i=0;i<st->nb_channels*st->mem_alloc_size;i++) in update_filter()
672 …st->mem = (spx_word16_t*)speex_realloc(st->mem, st->nb_channels*st->mem_alloc_size * sizeof(spx_wo… in update_filter()
674 for (i=st->nb_channels-1;i>=0;i--) in update_filter()
714 for (i=0;i<st->nb_channels;i++) in update_filter()
729 EXPORT SpeexResamplerState *speex_resampler_init(spx_uint32_t nb_channels, spx_uint32_t in_rate, sp… in speex_resampler_init() argument
731 … return speex_resampler_init_frac(nb_channels, in_rate, out_rate, in_rate, out_rate, quality, err); in speex_resampler_init()
[all …]
/external/libopus/src/
Dopus_multistream.c48 for (i=0;i<layout->nb_channels;i++) in validate_layout()
61 for (;i<layout->nb_channels;i++) in get_left_channel()
73 for (;i<layout->nb_channels;i++) in get_right_channel()
85 for (;i<layout->nb_channels;i++) in get_mono_channel()
Dopus_multistream_encoder.c113 return (opus_val32*)(void*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32)); in ms_get_preemph_mem()
448 st->layout.nb_channels = channels; in opus_multistream_encoder_init_impl()
457 for (i=0;i<st->layout.nb_channels;i++) in opus_multistream_encoder_init_impl()
676 if (st->bitrate_bps > st->layout.nb_channels*40000) in surround_rate_allocation()
679 stream_offset = st->bitrate_bps/st->layout.nb_channels/2; in surround_rate_allocation()
904 ALLOC(bandSMR, 21*st->layout.nb_channels, opus_val16); in opus_multistream_encode_native()
907 …celt_mode, pcm, bandSMR, mem, preemph_mem, frame_size, 120, st->layout.nb_channels, Fs, copy_chann… in opus_multistream_encode_native()
939 equiv_rate -= 60*(Fs/frame_size - 50)*st->layout.nb_channels; in opus_multistream_encode_native()
940 if (equiv_rate > 10000*st->layout.nb_channels) in opus_multistream_encode_native()
942 else if (equiv_rate > 7000*st->layout.nb_channels) in opus_multistream_encode_native()
[all …]
Dopus_multistream_decoder.c81 st->layout.nb_channels = channels; in opus_multistream_decoder_init()
85 for (i=0;i<st->layout.nb_channels;i++) in opus_multistream_decoder_init()
267 (*copy_channel_out)(pcm, st->layout.nb_channels, chan, in opus_multistream_decode_native()
275 (*copy_channel_out)(pcm, st->layout.nb_channels, chan, in opus_multistream_decode_native()
285 (*copy_channel_out)(pcm, st->layout.nb_channels, chan, in opus_multistream_decode_native()
292 for (c=0;c<st->layout.nb_channels;c++) in opus_multistream_decode_native()
296 (*copy_channel_out)(pcm, st->layout.nb_channels, c, in opus_multistream_decode_native()
Dopus_private.h47 int nb_channels; member
/external/speex/include/speex/
Dspeex_header.h67 spx_int32_t nb_channels; /**< Number of channels encoded */ member
78 void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const struct SpeexMode *m);
Dspeex_resampler.h123 SpeexResamplerState *speex_resampler_init(spx_uint32_t nb_channels,
142 SpeexResamplerState *speex_resampler_init_frac(spx_uint32_t nb_channels,