Home
last modified time | relevance | path

Searched refs:nchannels (Results 1 – 25 of 43) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dsbcdsp.c166 int nsamples, int nchannels) in sbc_enc_process_input_4s() argument
172 for (c = 0; c < nchannels; c++) in sbc_enc_process_input_4s()
179 for (; nsamples >= 8; nsamples -= 8, pcm += 16 * nchannels) { in sbc_enc_process_input_4s()
181 for (c = 0; c < nchannels; c++) { in sbc_enc_process_input_4s()
183 x[0] = AV_RN16(pcm + 14*nchannels + 2*c); in sbc_enc_process_input_4s()
184 x[1] = AV_RN16(pcm + 6*nchannels + 2*c); in sbc_enc_process_input_4s()
185 x[2] = AV_RN16(pcm + 12*nchannels + 2*c); in sbc_enc_process_input_4s()
186 x[3] = AV_RN16(pcm + 8*nchannels + 2*c); in sbc_enc_process_input_4s()
187 x[4] = AV_RN16(pcm + 0*nchannels + 2*c); in sbc_enc_process_input_4s()
188 x[5] = AV_RN16(pcm + 4*nchannels + 2*c); in sbc_enc_process_input_4s()
[all …]
Ddca_xll.c97 for (j = 0; j < c->nchannels; j++) { in parse_dmix_coeffs()
132 c->nchannels = get_bits(&s->gb, 4) + 1; in chs_parse_header()
133 if (c->nchannels > DCA_XLL_CHANNELS_MAX) { in chs_parse_header()
134 avpriv_request_sample(s->avctx, "%d XLL channels", c->nchannels); in chs_parse_header()
139 c->residual_encode = get_bits(&s->gb, c->nchannels); in chs_parse_header()
217 if (av_popcount(c->ch_mask) != c->nchannels) { in chs_parse_header()
228 if (c->nchannels != 2 || s->nchsets != 1 || get_bits1(&s->gb)) { in chs_parse_header()
280 if ((b->decor_enabled = get_bits1(&s->gb)) && c->nchannels > 1) { in chs_parse_header()
281 int ch_nbits = av_ceil_log2(c->nchannels); in chs_parse_header()
284 for (i = 0; i < c->nchannels; i++) { in chs_parse_header()
[all …]
Ddca_core.c153 int n, ch, nchannels, header_size = 0, header_pos = get_bits_count(&s->gb); in parse_coding_header() local
165 s->nchannels = get_bits(&s->gb, 3) + 1; in parse_coding_header()
166 if (s->nchannels != ff_dca_channels[s->audio_mode]) { in parse_coding_header()
167 …of primary audio channels (%d) for audio channel arrangement (%d)\n", s->nchannels, s->audio_mode); in parse_coding_header()
170 av_assert1(s->nchannels <= DCA_CHANNELS - 2); in parse_coding_header()
180 s->nchannels = ff_dca_channels[s->audio_mode] + 1; in parse_coding_header()
181 av_assert1(s->nchannels <= DCA_CHANNELS - 1); in parse_coding_header()
197 nchannels = get_bits(&s->gb, 3) + 1; in parse_coding_header()
198 if (nchannels > DCA_XXCH_CHANNELS_MAX) { in parse_coding_header()
199 avpriv_request_sample(s->avctx, "%d XXCH channels", nchannels); in parse_coding_header()
[all …]
Dsbcdsp.h64 int nsamples, int nchannels);
67 int nsamples, int nchannels);
Ddcadec.c44 int dca_ch, wav_ch, nchannels = 0; in ff_dca_set_channel_layout() local
49 ch_remap[nchannels++] = dca_ch; in ff_dca_set_channel_layout()
71 ch_remap[nchannels++] = wav_map[wav_ch]; in ff_dca_set_channel_layout()
75 avctx->channels = nchannels; in ff_dca_set_channel_layout()
76 return nchannels; in ff_dca_set_channel_layout()
Ddca_xll.h66 int nchannels; ///< Number of channels in the channel set (N) member
128 int nchannels; ///< Total number of channels in a hierarchy member
Ddca_lbr.c350 for (ch = 0; ch < s->nchannels; ch++) { in parse_tonal()
996 int nsamples = nchsamples * s->nchannels * s->nsubbands; in alloc_sample_buffer()
1006 for (ch = 0; ch < s->nchannels; ch++) { in alloc_sample_buffer()
1020 int old_nchannels = s->nchannels; in parse_decoder_init()
1079 s->nchannels = FFMIN(s->nchannels_total, DCA_LBR_CHANNELS); in parse_decoder_init()
1151 s->nchannels = 2; in parse_decoder_init()
1159 || old_nchannels != s->nchannels) { in parse_decoder_init()
1265 for (ch = 0; ch < s->nchannels; ch++) { in ff_dca_lbr_parse()
1375 for (i = 0; i < (s->nchannels + 1) / 2; i++) { in ff_dca_lbr_parse()
1377 int ch2 = FFMIN(ch1 + 1, s->nchannels - 1); in ff_dca_lbr_parse()
[all …]
/third_party/gstreamer/gstplugins_good/ext/wavpack/
Dgstwavpackcommon.c99 gst_wavpack_get_default_channel_mask (gint nchannels) in gst_wavpack_get_default_channel_mask() argument
107 switch (nchannels) { in gst_wavpack_get_default_channel_mask()
204 gst_wavpack_get_default_channel_positions (gint nchannels) in gst_wavpack_get_default_channel_positions() argument
206 GstAudioChannelPosition *pos = g_new (GstAudioChannelPosition, nchannels); in gst_wavpack_get_default_channel_positions()
209 if (nchannels == 1) { in gst_wavpack_get_default_channel_positions()
214 for (i = 0; i < nchannels; i++) in gst_wavpack_get_default_channel_positions()
222 gint nchannels) in gst_wavpack_get_channel_mask_from_positions() argument
227 if (nchannels == 1 && pos[0] == GST_AUDIO_CHANNEL_POSITION_MONO) { in gst_wavpack_get_channel_mask_from_positions()
234 for (i = 0; i < nchannels; i++) { in gst_wavpack_get_channel_mask_from_positions()
247 gst_wavpack_set_channel_mapping (GstAudioChannelPosition * pos, gint nchannels, in gst_wavpack_set_channel_mapping() argument
[all …]
Dgstwavpackcommon.h69 gint gst_wavpack_get_default_channel_mask (gint nchannels);
70 gboolean gst_wavpack_get_channel_positions (gint nchannels, gint layout, GstAudioChannelPosition *p…
71 GstAudioChannelPosition *gst_wavpack_get_default_channel_positions (gint nchannels);
72 gint gst_wavpack_get_channel_mask_from_positions (GstAudioChannelPosition *pos, gint nchannels);
73 gboolean gst_wavpack_set_channel_mapping (GstAudioChannelPosition *pos, gint nchannels, gint8 *chan…
/third_party/python/Lib/test/
Daudiotests.py29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument
31 self.assertEqual(f.getnchannels(), nchannels)
40 (nchannels, sampwidth, framerate, nframes, comptype, compname))
41 self.assertEqual(params.nchannels, nchannels)
57 f.setnchannels(self.nchannels)
65 self.assertEqual(f.getnchannels(), self.nchannels)
75 self.check_params(f, self.nchannels, self.sampwidth, self.framerate,
93 f.setnchannels(self.nchannels)
102 self.assertEqual(params.nchannels, self.nchannels)
113 f.setnchannels(self.nchannels)
[all …]
Dtest_sunau.py18 nchannels = 2 variable in SunauPCM8Test
35 nchannels = 2 variable in SunauPCM16Test
54 nchannels = 2 variable in SunauPCM24Test
79 nchannels = 2 variable in SunauPCM32Test
104 nchannels = 2 variable in SunauULAWTest
Dtest_ossaudiodev.py31 nchannels = au.getnchannels()
41 return (data, rate, 16, nchannels)
45 def play_sound_file(self, data, rate, ssize, nchannels): argument
76 expected_time = float(len(data)) / (ssize/8) / nchannels / rate
79 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
Dtest_wave.py19 nchannels = 2 variable in WavePCM8Test
36 nchannels = 2 variable in WavePCM16Test
57 nchannels = 2 variable in WavePCM24Test
84 nchannels = 2 variable in WavePCM32Test
Dtest_aifc.py23 nchannels = 2 variable in AifcPCM8Test
40 nchannels = 2 variable in AifcPCM16Test
59 nchannels = 2 variable in AifcPCM24Test
84 nchannels = 2 variable in AifcPCM32Test
109 nchannels = 2 variable in AifcULAWTest
130 nchannels = 2 variable in AifcALAWTest
179 self.assertEqual(params.nchannels, f.getnchannels())
287 for nchannels in 0, -1:
289 b += b'COMM' + struct.pack('>LhlhhLL', 38, nchannels, 0, 8,
/third_party/gstreamer/gstplugins_good/gst/audiofx/
Daudiofxbaseiirfilter.c83 for (i = 0; i < filter->nchannels; i++) { in gst_audio_fx_base_iir_filter_finalize()
135 filter->nchannels = 0; in gst_audio_fx_base_iir_filter_init()
202 for (i = 0; i < filter->nchannels; i++) { in gst_audio_fx_base_iir_filter_set_coefficients()
226 if (filter->nchannels && !filter->channels) { in gst_audio_fx_base_iir_filter_set_coefficients()
230 g_new0 (GstAudioFXBaseIIRFilterChannelCtx, filter->nchannels); in gst_audio_fx_base_iir_filter_set_coefficients()
231 for (i = 0; i < filter->nchannels; i++) { in gst_audio_fx_base_iir_filter_set_coefficients()
269 if (channels != filter->nchannels) { in gst_audio_fx_base_iir_filter_setup()
274 for (i = 0; i < filter->nchannels; i++) { in gst_audio_fx_base_iir_filter_setup()
290 filter->nchannels = channels; in gst_audio_fx_base_iir_filter_setup()
341 gint i, j, channels = filter->nchannels; \
[all …]
/third_party/pulseaudio/src/pulsecore/
Dmix_neon.c205 static void pa_mix_s16ne_neon(pa_mix_info streams[], unsigned nstreams, unsigned nchannels, void *d… in pa_mix_s16ne_neon() argument
206 if (nstreams == 2 && nchannels == 2) in pa_mix_s16ne_neon()
208 else if (nstreams == 2 && nchannels == 4) in pa_mix_s16ne_neon()
210 else if (nstreams == 2 && nchannels == 1) in pa_mix_s16ne_neon()
212 else if (nchannels == 2) in pa_mix_s16ne_neon()
215 fallback(streams, nstreams, nchannels, data, length); in pa_mix_s16ne_neon()
Dmix.c39 unsigned channel, nchannels, padding; in calc_linear_integer_volume() local
44 nchannels = volume->channels; in calc_linear_integer_volume()
46 for (channel = 0; channel < nchannels; channel++) in calc_linear_integer_volume()
54 unsigned channel, nchannels, padding; in calc_linear_float_volume() local
59 nchannels = volume->channels; in calc_linear_float_volume()
61 for (channel = 0; channel < nchannels; channel++) in calc_linear_float_volume()
/third_party/python/Modules/
Dossaudiodev.c613 _ssize(oss_audio_t *self, int *nchannels, int *ssize) in _ssize() argument
639 if (ioctl(self->fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize()
651 int nchannels=0, ssize=0; in oss_bufsize() local
656 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_bufsize()
664 return PyLong_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize()
673 int nchannels=0, ssize=0; in oss_obufcount() local
678 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obufcount()
687 (ssize * nchannels)); in oss_obufcount()
696 int nchannels=0, ssize=0; in oss_obuffree() local
701 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obuffree()
[all …]
Daudioop.c1317 int nchannels, int inrate, int outrate, PyObject *state, in audioop_ratecv_impl() argument
1329 if (nchannels < 1) { in audioop_ratecv_impl()
1334 if (width > INT_MAX / nchannels) { in audioop_ratecv_impl()
1342 bytes_per_frame = width * nchannels; in audioop_ratecv_impl()
1368 if ((size_t)nchannels > SIZE_MAX/sizeof(int)) { in audioop_ratecv_impl()
1373 prev_i = (int *) PyMem_Malloc(nchannels * sizeof(int)); in audioop_ratecv_impl()
1374 cur_i = (int *) PyMem_Malloc(nchannels * sizeof(int)); in audioop_ratecv_impl()
1384 for (chan = 0; chan < nchannels; chan++) in audioop_ratecv_impl()
1396 if (PyTuple_Size(samps) != nchannels) { in audioop_ratecv_impl()
1401 for (chan = 0; chan < nchannels; chan++) { in audioop_ratecv_impl()
[all …]
/third_party/python/Lib/
Dsndhdr.py45 SndHeaders.nchannels.__doc__ = ("""The number of channels or 0 if it cannot be
108 nchannels = func(h[20:24])
119 frame_size = sample_size * nchannels
124 return filetype, rate, nchannels, nframe, sample_bits
Dwave.py337 def setnchannels(self, nchannels): argument
340 if nchannels < 1:
342 self._nchannels = nchannels
396 nchannels, sampwidth, framerate, nframes, comptype, compname = params
399 self.setnchannels(nchannels)
Dsunau.py342 def setnchannels(self, nchannels): argument
345 if nchannels not in (1, 2, 4):
347 self._nchannels = nchannels
404 nchannels, sampwidth, framerate, nframes, comptype, compname = params
405 self.setnchannels(nchannels)
Daifc.py260 _aifc_params.nchannels.__doc__ = 'Number of audio channels (1 for mono, 2 for stereo)'
614 def setnchannels(self, nchannels): argument
617 if nchannels < 1:
619 self._nchannels = nchannels
679 nchannels, sampwidth, framerate, nframes, comptype, compname = params
685 self.setnchannels(nchannels)
/third_party/ffmpeg/libavcodec/arm/
Dsbcdsp_init_arm.c50 int nsamples, int nchannels);
53 int nsamples, int nchannels);
/third_party/python/Doc/library/
Daifc.rst26 ``nchannels * samplesize`` bytes, and a second's worth of audio consists of
27 ``nchannels * samplesize * framerate`` bytes.
93 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
161 .. method:: aifc.setnchannels(nchannels)
197 .. method:: aifc.setparams(nchannels, sampwidth, framerate, comptype, compname)

12