Home
last modified time | relevance | path

Searched refs:n_channels (Results 1 – 25 of 28) sorted by relevance

12

/third_party/gstreamer/gstplugins_base/ext/opus/
Dgstopusdec.c207 dec->n_channels = 0; in gst_opus_dec_reset()
285 gint rate = dec->sample_rate, channels = dec->n_channels; in gst_opus_dec_negotiate()
289 if (dec->n_channels <= 2) { /* including 0 */ in gst_opus_dec_negotiate()
293 gst_caps_set_simple (constraint, "channels", G_TYPE_INT, dec->n_channels, in gst_opus_dec_negotiate()
312 channels = dec->n_channels > 0 ? dec->n_channels : 2; in gst_opus_dec_negotiate()
313 gst_structure_fixate_field_nearest_int (s, "channels", dec->n_channels); in gst_opus_dec_negotiate()
319 dec->n_channels = channels; in gst_opus_dec_negotiate()
323 if (dec->n_channels == 0) { in gst_opus_dec_negotiate()
325 dec->n_channels = 2; in gst_opus_dec_negotiate()
334 GST_INFO_OBJECT (dec, "Negotiated %d channels, %d Hz", dec->n_channels, in gst_opus_dec_negotiate()
[all …]
Dgstopusenc.c379 enc->n_channels = -1; in gst_opus_enc_init()
487 for (n = 0; n < enc->n_channels; ++n) { in gst_opus_enc_find_channel_position()
501 for (c = 0; c < enc->n_channels; ++c) { in gst_opus_enc_find_channel_position_in_vorbis_order()
502 if (gst_opus_channel_positions[enc->n_channels - 1][c] == position) { in gst_opus_enc_find_channel_position_in_vorbis_order()
524 enc->n_channels); in gst_opus_enc_setup_channel_mappings()
532 if (enc->n_channels == 1 && !enc->unpositioned) { in gst_opus_enc_setup_channel_mappings()
541 if (enc->n_channels == 2 && !enc->unpositioned) { in gst_opus_enc_setup_channel_mappings()
555 if (enc->n_channels >= 3 && enc->n_channels <= 8 && !enc->unpositioned) { in gst_opus_enc_setup_channel_mappings()
615 for (n = 0; n < enc->n_channels; ++n) { in gst_opus_enc_setup_channel_mappings()
635 "Mapping tables built: %d channels, %d stereo streams", enc->n_channels, in gst_opus_enc_setup_channel_mappings()
[all …]
Dgstopuscommon.c94 GstDebugCategory * category, const char *msg, int n_channels, in gst_opus_common_log_channel_mapping_table() argument
104 for (n = 0; n < n_channels; ++n) { in gst_opus_common_log_channel_mapping_table()
Dgstopuscommon.h33 int n_channels, const guint8 *table);
Dgstopusdec.h56 guint n_channels; member
Dgstopusenc.h79 gint n_channels; member
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcRobustBufferAccessBehaviorTests.cpp972 void initPixels(std::vector<TYPE>& pixels, GLuint n_pixels, GLuint n_channels) in initPixels() argument
974 if (n_channels == 1) in initPixels()
979 else if (n_channels == 2) in initPixels()
988 else if (n_channels == 4) in initPixels()
1871 static const GLuint n_channels = 4; in verifyInvalidResults() local
1873 std::vector<GLubyte> pixels(n_pixels * n_channels); in verifyInvalidResults()
1874 initPixels(pixels, n_pixels, n_channels); in verifyInvalidResults()
1887 const GLubyte drawn_red = pixels[i * n_channels]; in verifyInvalidResults()
1902 static const GLuint n_channels = 4; in verifyInvalidResults() local
1904 std::vector<GLbyte> pixels(n_pixels * n_channels); in verifyInvalidResults()
[all …]
/third_party/gstreamer/gstplugins_good/sys/oss/
Dgstosshelper.c60 int n_channels; member
108 probe->n_channels = 2; in gst_oss_helper_probe_caps()
321 int n_channels; in gst_oss_helper_rate_check_rate() local
326 n_channels = probe->n_channels; in gst_oss_helper_rate_check_rate()
329 format, n_channels, rate); in gst_oss_helper_rate_check_rate()
335 ret = ioctl (probe->fd, SNDCTL_DSP_CHANNELS, &n_channels); in gst_oss_helper_rate_check_rate()
336 if (ret < 0 || n_channels != probe->n_channels) { in gst_oss_helper_rate_check_rate()
337 GST_DEBUG ("unsupported channels: %d (%d)", probe->n_channels, n_channels); in gst_oss_helper_rate_check_rate()
Doss_probe.c33 int n_channels; member
68 probe->n_channels = 2; in main()
83 probe->n_channels = 1; in main()
93 probe->n_channels = 2; in main()
103 probe->n_channels = 1; in main()
210 int n_channels; in check_rate() local
214 n_channels = probe->n_channels; in check_rate()
217 ioctl (probe->fd, SNDCTL_DSP_CHANNELS, &n_channels); in check_rate()
/third_party/libsnd/src/
Drx2.c86 int n_channels ; in rx2_open() local
214 psf_binheader_readf (psf, "E2", &n_channels) ; in rx2_open()
215 n_channels = (n_channels & 0x0000FF00) >> 8 ; in rx2_open()
216 psf_log_printf (psf, " Channels : %d\n", n_channels) ; in rx2_open()
268 printf ("Comp Ratio : %f:1\n", (2.0 * slce_total * n_channels) / sdat_length) ; in rx2_open()
/third_party/ffmpeg/doc/examples/
Ddecode_audio.c119 int n_channels = 0; in main() local
218 n_channels = c->channels; in main()
224 fmt, n_channels, c->sample_rate, in main()
Ddemuxing_decoding.c348 int n_channels = audio_dec_ctx->channels; in main() local
357 n_channels = 1; in main()
365 fmt, n_channels, audio_dec_ctx->sample_rate, in main()
/third_party/gstreamer/gstplugins_bad/ext/lv2/
Dgstlv2filter.c353 gst_lv2_filter_deinterleave_data (guint n_channels, gfloat * outdata, in gst_lv2_filter_deinterleave_data() argument
358 for (i = 0; i < n_channels; i++) in gst_lv2_filter_deinterleave_data()
360 outdata[i * samples + j] = indata[j * n_channels + i]; in gst_lv2_filter_deinterleave_data()
364 gst_lv2_filter_interleave_data (guint n_channels, gfloat * outdata, in gst_lv2_filter_interleave_data() argument
369 for (i = 0; i < n_channels; i++) in gst_lv2_filter_interleave_data()
371 outdata[j * n_channels + i] = indata[i * samples + j]; in gst_lv2_filter_interleave_data()
Dgstlv2source.c350 gst_lv2_source_interleave_data (guint n_channels, gfloat * outdata, in gst_lv2_source_interleave_data() argument
355 for (i = 0; i < n_channels; i++) in gst_lv2_source_interleave_data()
357 outdata[j * n_channels + i] = indata[i * samples + j]; in gst_lv2_source_interleave_data()
/third_party/gstreamer/gstplugins_bad/ext/opus/
Dgstopusparse.c376 guint8 n_channels, n_streams, n_stereo_streams, channel_mapping_family; in gst_opus_parse_parse_frame() local
392 &n_channels, &channel_mapping_family, &n_streams, in gst_opus_parse_parse_frame()
396 n_channels = 2; in gst_opus_parse_parse_frame()
407 gst_codec_utils_opus_create_header (sample_rate, n_channels, in gst_opus_parse_parse_frame()
/third_party/pulseaudio/src/modules/dbus/
Diface-core.c459 int n_channels; in handle_set_default_channels() local
470 dbus_message_iter_get_fixed_array(&array_iter, &default_channels, &n_channels); in handle_set_default_channels()
472 if (n_channels <= 0) { in handle_set_default_channels()
477 if (n_channels > (int) PA_CHANNELS_MAX) { in handle_set_default_channels()
479 … "Too many channels: %i. The maximum number of channels is %u.", n_channels, PA_CHANNELS_MAX); in handle_set_default_channels()
483 new_channel_map.channels = n_channels; in handle_set_default_channels()
495 c->core->default_sample_spec.channels = n_channels; in handle_set_default_channels()
1284 int n_channels; in handle_upload_sample() local
1316 dbus_message_iter_get_fixed_array(&array_iter, &channels, &n_channels); in handle_upload_sample()
1339 if (n_channels <= 0) { in handle_upload_sample()
[all …]
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/
Dgstgdkpixbufdec.c294 gint n_channels; in gst_gdk_pixbuf_dec_flush() local
311 n_channels = gdk_pixbuf_get_n_channels (pixbuf); in gst_gdk_pixbuf_dec_flush()
312 switch (n_channels) { in gst_gdk_pixbuf_dec_flush()
384 ("%d channels not supported", n_channels)); in gst_gdk_pixbuf_dec_flush()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-mixer.c948 if (e->masks[c][e->n_channels-1] & PA_CHANNEL_POSITION_MASK(cm->map[k])) in element_get_volume()
952 mask |= e->masks[c][e->n_channels-1]; in element_get_volume()
1189 if (e->masks[c][e->n_channels-1] & PA_CHANNEL_POSITION_MASK(cm->map[k])) { in element_set_volume()
1301 if (e->masks[c][e->n_channels-1] & PA_CHANNEL_POSITION_MASK(cm->map[k])) in element_set_volume()
1305 mask |= e->masks[c][e->n_channels-1]; in element_set_volume()
1783 e->n_channels = 1; in element_probe_volume()
1785 …if ((e->override_map & (1 << (e->n_channels-1))) && e->masks[SND_MIXER_SCHN_MONO][e->n_channels-1]… in element_probe_volume()
1787 e->override_map &= ~(1 << (e->n_channels-1)); in element_probe_volume()
1789 if (!(e->override_map & (1 << (e->n_channels-1)))) { in element_probe_volume()
1793 e->masks[alsa_channel_ids[p]][e->n_channels-1] = 0; in element_probe_volume()
[all …]
Dalsa-mixer.h168 unsigned n_channels; member
/third_party/ffmpeg/libavformat/
Dlibmodplug.c152 unsigned n_channels = ModPlug_NumChannels(f); in modplug_load_metadata() local
159 n_channels, n_channels > 1 ? "s" : ""); in modplug_load_metadata()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl3cTextureSwizzleTests.cpp1314 size_t n_channels = 0; in calculate_values_from_source() local
1325 n_channels = 1; in calculate_values_from_source()
1334 n_channels = 2; in calculate_values_from_source()
1343 n_channels = 3; in calculate_values_from_source()
1352 n_channels = 4; in calculate_values_from_source()
1488 for (size_t i = 0; i < n_channels; ++i) in calculate_values_from_source()
1502 for (size_t i = 0; i < n_channels; ++i) in calculate_values_from_source()
1516 for (size_t i = 0; i < n_channels; ++i) in calculate_values_from_source()
1530 for (size_t i = 0; i < n_channels; ++i) in calculate_values_from_source()
1544 for (size_t i = 0; i < n_channels; ++i) in calculate_values_from_source()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/
Dgstamcaudiodec.c527 gint i, n_samples, c, n_channels; in gst_amc_audio_dec_loop() local
534 n_channels = self->info.channels; in gst_amc_audio_dec_loop()
537 for (c = 0; c < n_channels; c++) { in gst_amc_audio_dec_loop()
538 dest[i * n_channels + reorder_map[c]] = source[i * n_channels + c]; in gst_amc_audio_dec_loop()
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dqtdemux.c1997 &CUR_STREAM (stream)->n_channels); in gst_qtdemux_setcaps()
8861 if (CUR_STREAM (stream)->n_channels > 0) in gst_qtdemux_configure_stream()
8863 "channels", G_TYPE_INT, CUR_STREAM (stream)->n_channels, NULL); in gst_qtdemux_configure_stream()
8864 if (CUR_STREAM (stream)->n_channels > 2) { in gst_qtdemux_configure_stream()
9865 (stream->samples_per_chunk * CUR_STREAM (stream)->n_channels) / in qtdemux_parse_samples()
12293 entry->n_channels = QT_UINT16 (stsd_entry_data + offset + 8); in qtdemux_parse_trak()
12301 GST_LOG_OBJECT (qtdemux, "n_channels: %d", entry->n_channels); in qtdemux_parse_trak()
12313 entry->samples_per_frame = entry->n_channels; in qtdemux_parse_trak()
12314 entry->bytes_per_frame = entry->n_channels * entry->bytes_per_sample; in qtdemux_parse_trak()
12354 entry->n_channels = QT_UINT32 (stsd_entry_data + offset + 12); in qtdemux_parse_trak()
[all …]
Dqtdemux_dump.c1006 guint16 data_ref_id, n_channels, sample_size; in qtdemux_dump_fLaC() local
1012 !gst_byte_reader_get_uint16_be (data, &n_channels) || in qtdemux_dump_fLaC()
1019 GST_LOG ("%*s channel count: %d", depth, "", n_channels); in qtdemux_dump_fLaC()
Dqtdemux.h295 gint n_channels; member

12