/third_party/pulseaudio/src/modules/bluetooth/ |
D | a2dp-codec-sbc.c | 65 …if (!(capabilities->channel_mode & (SBC_CHANNEL_MODE_MONO | SBC_CHANNEL_MODE_DUAL_CHANNEL | SBC_CH… in can_accept_capabilities() 99 …capabilities->channel_mode = SBC_CHANNEL_MODE_MONO | SBC_CHANNEL_MODE_DUAL_CHANNEL | SBC_CHANNEL_M… in fill_capabilities() 126 …if (config->channel_mode != SBC_CHANNEL_MODE_MONO && config->channel_mode != SBC_CHANNEL_MODE_DUAL… in is_configuration_valid() 127 …config->channel_mode != SBC_CHANNEL_MODE_STEREO && config->channel_mode != SBC_CHANNEL_MODE_JOINT_… in is_configuration_valid() 244 if (capabilities->channel_mode & SBC_CHANNEL_MODE_MONO) in fill_preferred_configuration() 245 config->channel_mode = SBC_CHANNEL_MODE_MONO; in fill_preferred_configuration() 246 else if (capabilities->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO) in fill_preferred_configuration() 247 config->channel_mode = SBC_CHANNEL_MODE_JOINT_STEREO; in fill_preferred_configuration() 248 else if (capabilities->channel_mode & SBC_CHANNEL_MODE_STEREO) in fill_preferred_configuration() 249 config->channel_mode = SBC_CHANNEL_MODE_STEREO; in fill_preferred_configuration() [all …]
|
D | a2dp-codecs.h | 306 uint8_t channel_mode; member 313 uint8_t channel_mode:4; member 323 uint8_t channel_mode:4; member 348 uint8_t channel_mode:4; member 372 uint8_t channel_mode:4; member 383 uint8_t channel_mode:4; member 407 uint8_t channel_mode:4; member
|
/third_party/gstreamer/gstplugins_bad/ext/sbc/ |
D | gstsbcenc.c | 80 const gchar *allocation_method, *channel_mode; in gst_sbc_enc_set_format() local 140 channel_mode = gst_structure_get_string (s, "channel-mode"); in gst_sbc_enc_set_format() 144 if (g_strcmp0 (channel_mode, "mono") != 0) { in gst_sbc_enc_set_format() 146 channel_mode); in gst_sbc_enc_set_format() 150 if (g_strcmp0 (channel_mode, "joint") != 0 && in gst_sbc_enc_set_format() 151 g_strcmp0 (channel_mode, "stereo") != 0 && in gst_sbc_enc_set_format() 152 g_strcmp0 (channel_mode, "dual") != 0) { in gst_sbc_enc_set_format() 154 channel_mode); in gst_sbc_enc_set_format() 195 if (channel_mode == NULL || allocation_method == NULL) in gst_sbc_enc_set_format() 198 if (strcmp (channel_mode, "joint") == 0) in gst_sbc_enc_set_format() [all …]
|
D | gstsbcdec.c | 146 const gchar *channel_mode; in gst_sbc_dec_set_format() local 156 channel_mode = gst_structure_get_string (s, "channel-mode"); in gst_sbc_dec_set_format() 157 if (channel_mode == NULL || in gst_sbc_dec_set_format() 163 if (strcmp (channel_mode, "mono") == 0) { in gst_sbc_dec_set_format() 165 } else if (strcmp (channel_mode, "dual") == 0) { in gst_sbc_dec_set_format() 167 } else if (strcmp (channel_mode, "stereo") == 0) { in gst_sbc_dec_set_format() 169 } else if (strcmp (channel_mode, "joint") == 0) { in gst_sbc_dec_set_format()
|
/third_party/gstreamer/gstplugins_bad/sys/bluez/ |
D | gstavdtpsink.c | 209 gchar *channel_mode = NULL; in gst_avdtp_sink_tag() local 223 if (!gst_tag_list_get_string (taglist, tag, &channel_mode)) { in gst_avdtp_sink_tag() 228 self->channel_mode = gst_avdtp_sink_get_channel_mode (channel_mode); in gst_avdtp_sink_tag() 229 if (self->channel_mode == -1) in gst_avdtp_sink_tag() 231 "mode: %s", channel_mode); in gst_avdtp_sink_tag() 232 g_free (channel_mode); in gst_avdtp_sink_tag() 263 self->channel_mode = -1; in gst_avdtp_sink_start() 485 if (self->channel_mode != -1 && new_mode != self->channel_mode) { in gst_avdtp_sink_set_channel_mode() 490 self->channel_mode = new_mode; in gst_avdtp_sink_set_channel_mode() 491 if (self->channel_mode == -1) in gst_avdtp_sink_set_channel_mode()
|
D | gstavdtputil.c | 262 if (sbc->channel_mode & SBC_CHANNEL_MODE_MONO) { in gst_avdtp_util_parse_sbc_raw() 266 if (sbc->channel_mode & SBC_CHANNEL_MODE_STEREO) { in gst_avdtp_util_parse_sbc_raw() 270 if (sbc->channel_mode & SBC_CHANNEL_MODE_DUAL_CHANNEL) { in gst_avdtp_util_parse_sbc_raw() 274 if (sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO) { in gst_avdtp_util_parse_sbc_raw() 385 if (sbc->channel_mode & SBC_CHANNEL_MODE_MONO) in gst_avdtp_util_parse_sbc_raw() 387 if ((sbc->channel_mode & SBC_CHANNEL_MODE_STEREO) || in gst_avdtp_util_parse_sbc_raw() 388 (sbc->channel_mode & in gst_avdtp_util_parse_sbc_raw() 390 (sbc->channel_mode & SBC_CHANNEL_MODE_JOINT_STEREO)) in gst_avdtp_util_parse_sbc_raw() 511 if (mpeg->channel_mode & MPEG_CHANNEL_MODE_MONO) in gst_avdtp_util_parse_mpeg_raw() 513 if ((mpeg->channel_mode & MPEG_CHANNEL_MODE_STEREO) || in gst_avdtp_util_parse_mpeg_raw() [all …]
|
D | a2dp-codecs.h | 137 uint8_t channel_mode:4; member 147 uint8_t channel_mode:4; member 169 uint8_t channel_mode:4; member 180 uint8_t channel_mode:4; member 208 uint8_t channel_mode; member
|
D | gstavdtpsink.h | 57 gint channel_mode; member
|
/third_party/ffmpeg/libavcodec/ |
D | ac3_parser.c | 92 hdr->channel_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 94 if(hdr->channel_mode == AC3_CHMODE_STEREO) { in ff_ac3_parse_header() 97 if((hdr->channel_mode & 1) && hdr->channel_mode != AC3_CHMODE_MONO) in ff_ac3_parse_header() 99 if(hdr->channel_mode & 4) in ff_ac3_parse_header() 107 hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on; in ff_ac3_parse_header() 137 hdr->channel_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 142 hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on; in ff_ac3_parse_header() 144 hdr->channel_layout = avpriv_ac3_channel_layout_tab[hdr->channel_mode]; in ff_ac3_parse_header()
|
D | ac3dec.c | 246 i = !s->channel_mode; in ac3_parse_header() 248 s->dialog_normalization[(!s->channel_mode)-i] = -get_bits(gbc, 5); in ac3_parse_header() 249 if (s->dialog_normalization[(!s->channel_mode)-i] == 0) { in ac3_parse_header() 250 s->dialog_normalization[(!s->channel_mode)-i] = -31; in ac3_parse_header() 253 s->level_gain[(!s->channel_mode)-i] = powf(2.0f, in ac3_parse_header() 255 s->dialog_normalization[(!s->channel_mode)-i])/6.0f); in ac3_parse_header() 257 if (s->compression_exists[(!s->channel_mode)-i] = get_bits1(gbc)) { in ac3_parse_header() 258 s->heavy_dynamic_range[(!s->channel_mode)-i] = in ac3_parse_header() 317 s->channel_mode = hdr.channel_mode; in parse_frame_header() 389 downmix_coeffs[0][i] = gain_levels[ac3_default_coeffs[s->channel_mode][i][0]]; in set_downmix_coeffs() [all …]
|
D | eac3dec.c | 328 for (i = 0; i < (s->channel_mode ? 1 : 2); i++) { in ff_eac3_parse_header() 364 if (s->channel_mode > AC3_CHMODE_STEREO) { in ff_eac3_parse_header() 366 if (s->channel_mode & 1) { in ff_eac3_parse_header() 371 if (s->channel_mode & 4) { in ff_eac3_parse_header() 385 for (i = 0; i < (s->channel_mode ? 1 : 2); i++) { in ff_eac3_parse_header() 405 if (s->channel_mode < AC3_CHMODE_STEREO) { in ff_eac3_parse_header() 406 for (i = 0; i < (s->channel_mode ? 1 : 2); i++) { in ff_eac3_parse_header() 431 if (s->channel_mode == AC3_CHMODE_STEREO) { in ff_eac3_parse_header() 435 if (s->channel_mode >= AC3_CHMODE_2F2R) { in ff_eac3_parse_header() 438 for (i = 0; i < (s->channel_mode ? 1 : 2); i++) { in ff_eac3_parse_header() [all …]
|
D | ac3enc.c | 767 frame_bits += frame_bits_inc[s->channel_mode]; in count_frame_bits_fixed() 871 if (s->channel_mode > AC3_CHMODE_STEREO) in count_frame_bits() 879 if (s->channel_mode < AC3_CHMODE_STEREO) in count_frame_bits() 885 if (s->channel_mode == AC3_CHMODE_STEREO) in count_frame_bits() 887 if (s->channel_mode >= AC3_CHMODE_2F2R) in count_frame_bits() 895 if (s->channel_mode > AC3_CHMODE_MONO) { in count_frame_bits() 937 if (!s->eac3 || s->channel_mode != AC3_CHMODE_STEREO) in count_frame_bits() 939 if (s->channel_mode == AC3_CHMODE_STEREO) in count_frame_bits() 964 if (s->channel_mode == AC3_CHMODE_STEREO) { in count_frame_bits() 1406 put_bits(&s->pb, 3, s->channel_mode); in ac3_output_frame_header() [all …]
|
D | eac3enc.c | 143 put_bits(&s->pb, 3, s->channel_mode); /* audio coding mode */ in ff_eac3_output_frame_header() 151 if (s->channel_mode > AC3_CHMODE_STEREO) in ff_eac3_output_frame_header() 166 if (s->channel_mode < AC3_CHMODE_STEREO) in ff_eac3_output_frame_header() 176 if (s->channel_mode == AC3_CHMODE_STEREO) { in ff_eac3_output_frame_header() 180 if (s->channel_mode >= AC3_CHMODE_2F2R) in ff_eac3_output_frame_header() 209 if (s->channel_mode > AC3_CHMODE_MONO) { in ff_eac3_output_frame_header()
|
D | ac3.h | 185 uint8_t channel_mode; member
|
D | ac3dec.h | 88 int channel_mode; ///< channel mode (acmod) member
|
D | ac3enc.h | 195 int channel_mode; ///< channel mode (acmod) member
|
D | ac3enc_template.c | 324 if (s->channel_mode != AC3_CHMODE_STEREO) in compute_rematrixing_strategy()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpsbcpay.c | 81 gint blocks, gint bitpool, const gchar * channel_mode) in gst_rtp_sbc_pay_get_frame_len() argument 88 if (strcmp (channel_mode, "mono") == 0 || strcmp (channel_mode, "dual") == 0) in gst_rtp_sbc_pay_get_frame_len() 91 join = strcmp (channel_mode, "joint") == 0 ? 1 : 0; in gst_rtp_sbc_pay_get_frame_len() 104 const gchar *channel_mode; in gst_rtp_sbc_pay_set_caps() local 121 channel_mode = gst_structure_get_string (structure, "channel-mode"); in gst_rtp_sbc_pay_set_caps() 122 if (!channel_mode) in gst_rtp_sbc_pay_set_caps() 126 bitpool, channel_mode); in gst_rtp_sbc_pay_set_caps()
|
D | gstrtpsbcdepay.c | 177 int blocks, channel_mode, channels, subbands, bitpool; in gst_rtp_sbc_depay_get_params() local 193 channel_mode = (data[1] >> 2) & 0x3; in gst_rtp_sbc_depay_get_params() 194 channels = channel_mode ? 2 : 1; in gst_rtp_sbc_depay_get_params() 201 if (channel_mode == 0 || channel_mode == 1) { in gst_rtp_sbc_depay_get_params() 207 gboolean joint = (channel_mode == 3); in gst_rtp_sbc_depay_get_params()
|
/third_party/gstreamer/gstplugins_bad/ext/fdkaac/ |
D | gstfdkaacenc.c | 204 CHANNEL_MODE channel_mode; in gst_fdkaacenc_set_format() local 262 channel_mode = MODE_1; in gst_fdkaacenc_set_format() 288 channel_mode = layout->mode; in gst_fdkaacenc_set_format() 302 channel_mode)) != AACENC_OK) { in gst_fdkaacenc_set_format() 303 GST_ERROR_OBJECT (self, "Unable to set channel mode %d: %d", channel_mode, in gst_fdkaacenc_set_format() 311 GST_ERROR_OBJECT (self, "Unable to set channel order %d: %d", channel_mode, in gst_fdkaacenc_set_format()
|
/third_party/gstreamer/gstplugins_bad/ext/ldac/ |
D | gstldacenc.c | 154 self->channel_mode = 0; in gst_ldac_enc_init() 240 enc->channel_mode = LDACBT_CHANNEL_MODE_MONO; in gst_ldac_enc_do_negotiate() 242 enc->channel_mode = LDACBT_CHANNEL_MODE_STEREO; in gst_ldac_enc_do_negotiate() 340 enc->channel_mode, enc->ldac_fmt, enc->rate); in gst_ldac_enc_set_format() 526 enc->channel_mode = 0; in gst_ldac_enc_stop()
|
D | gstldacenc.h | 53 guint channel_mode; member
|
/third_party/ffmpeg/libavformat/ |
D | mpegtsenc.c | 1900 switch (hdr->channel_mode) { in mpegts_write_packet_internal()
|
D | movenc.c | 464 info->substream[hdr->substreamid].acmod = hdr->channel_mode; in handle_eac3() 490 for (i = 0; i < (hdr->channel_mode ? 1 : 2); i++) { in handle_eac3() 500 info->substream[parent].chan_loc |= hdr->channel_mode; in handle_eac3()
|