Home
last modified time | relevance | path

Searched refs:subbands (Results 1 – 25 of 27) sorted by relevance

12

/external/bluetooth/bluez/sbc/
Dsbc.c72 uint8_t subbands; member
94 int subbands; member
164 const struct sbc_frame *frame, int (*bits)[8], int subbands) in sbc_calculate_bits_internal() argument
175 for (sb = 0; sb < subbands; sb++) { in sbc_calculate_bits_internal()
181 for (sb = 0; sb < subbands; sb++) { in sbc_calculate_bits_internal()
185 if (subbands == 4) in sbc_calculate_bits_internal()
206 for (sb = 0; sb < subbands; sb++) { in sbc_calculate_bits_internal()
219 for (sb = 0; sb < subbands; sb++) { in sbc_calculate_bits_internal()
230 sb < subbands; sb++) { in sbc_calculate_bits_internal()
241 sb < subbands; sb++) { in sbc_calculate_bits_internal()
[all …]
Dsbcenc.c47 static void encode(char *filename, int subbands, int bitpool, int joint, in encode() argument
109 sbc.subbands = subbands == 4 ? SBC_SB_4 : SBC_SB_8; in encode()
145 filename, srate, blocks, subbands, bitpool, in encode()
241 int i, opt, subbands = 8, bitpool = 32, joint = 0, dualchannel = 0; in main() local
256 subbands = atoi(optarg); in main()
257 if (subbands != 8 && subbands != 4) { in main()
304 encode(argv[i], subbands, bitpool, joint, dualchannel, in main()
Dsbcinfo.c41 uint8_t subbands:1; /* Subbands */ member
56 uint8_t subbands:1; /* Subbands */ member
68 nrof_subbands = (hdr->subbands + 1) * 4; in calc_frame_len()
97 nrof_subbands = (hdr->subbands + 1) * 4; in calc_bit_rate()
177 int subbands, blocks, freq, method; in analyze_file() local
199 subbands = (hdr.subbands + 1) * 4; in analyze_file()
280 printf("Subbands\t\t%d\n", subbands); in analyze_file()
Dsbc_primitives.h65 int blocks, int channels, int subbands);
69 int blocks, int subbands);
Dsbc_primitives_neon.c243 int blocks, int channels, int subbands) in sbc_calc_scalefactors_neon() argument
247 for (sb = 0; sb < subbands; sb += 4) { in sbc_calc_scalefactors_neon()
295 int blocks, int subbands) in sbc_calc_scalefactors_j_neon() argument
307 i = subbands; in sbc_calc_scalefactors_j_neon()
Dsbc_primitives_mmx.c282 int blocks, int channels, int subbands) in sbc_calc_scalefactors_mmx() argument
291 for (sb = 0; sb < subbands; sb += 2) { in sbc_calc_scalefactors_mmx()
Dsbc_primitives.c428 int blocks, int channels, int subbands) in sbc_calc_scalefactors() argument
432 for (sb = 0; sb < subbands; sb++) { in sbc_calc_scalefactors()
448 int blocks, int subbands) in sbc_calc_scalefactors_j() argument
455 int sb = subbands - 1; in sbc_calc_scalefactors_j()
505 joint |= 1 << (subbands - 1 - sb); in sbc_calc_scalefactors_j()
Dsbc.h72 uint8_t subbands; member
Dsbcdec.c129 filename, frequency, sbc.subbands * 4 + 4, sbc.bitpool, in decode()
/external/bluetooth/bluez/audio/
Dgstsbcutil.c175 gint gst_sbc_parse_subbands_from_sbc(gint subbands) in gst_sbc_parse_subbands_from_sbc() argument
177 switch (subbands) { in gst_sbc_parse_subbands_from_sbc()
187 gint gst_sbc_parse_subbands_to_sbc(gint subbands) in gst_sbc_parse_subbands_to_sbc() argument
189 switch (subbands) { in gst_sbc_parse_subbands_to_sbc()
303 gst_sbc_parse_subbands_from_sbc(sbc->subbands), in gst_sbc_parse_caps_from_sbc()
327 gint temp, rate, channels, blocks, subbands, bitpool; in gst_sbc_util_caps_fixate() local
384 subbands = temp; in gst_sbc_util_caps_fixate()
444 "subbands", G_TYPE_INT, subbands, in gst_sbc_util_caps_fixate()
485 gint rate, channels, subbands, blocks, bitpool; in gst_sbc_util_fill_sbc_params() local
497 if (!gst_structure_get_int(structure, "subbands", &subbands)) in gst_sbc_util_fill_sbc_params()
[all …]
Dgstrtpsbcpay.c106 static gint gst_rtp_sbc_pay_get_frame_len(gint subbands, gint channels, in gst_rtp_sbc_pay_get_frame_len() argument
112 len = 4 + (4 * subbands * channels)/8; in gst_rtp_sbc_pay_get_frame_len()
119 len += ((join * subbands + blocks * bitpool) + 7) / 8; in gst_rtp_sbc_pay_get_frame_len()
129 gint rate, subbands, channels, blocks, bitpool; in gst_rtp_sbc_pay_set_caps() local
145 if (!gst_structure_get_int(structure, "subbands", &subbands)) in gst_rtp_sbc_pay_set_caps()
152 frame_len = gst_rtp_sbc_pay_get_frame_len(subbands, channels, blocks, in gst_rtp_sbc_pay_set_caps()
Dgstsbcenc.c191 if (enc->subbands != 0) in sbc_enc_generate_srcpad_caps()
193 enc->subbands, value); in sbc_enc_generate_srcpad_caps()
336 if (enc->subbands != 0 && gst_sbc_parse_subbands_from_sbc( in gst_sbc_enc_fill_sbc_params()
337 enc->sbc.subbands) != enc->subbands) in gst_sbc_enc_fill_sbc_params()
483 enc->subbands = g_value_get_enum(value); in gst_sbc_enc_set_property()
510 g_value_set_enum(value, enc->subbands); in gst_sbc_enc_get_property()
583 self->subbands = SBC_ENC_DEFAULT_SUB_BANDS; in gst_sbc_enc_init()
Da2dp-codecs.h76 uint8_t subbands:2; member
98 uint8_t subbands:2; member
Dgstsbcutil.h50 gint gst_sbc_parse_subbands_from_sbc(gint subbands);
51 gint gst_sbc_parse_subbands_to_sbc(gint subbands);
Dliba2dp.c410 if (cap->subbands & BT_A2DP_SUBBANDS_8) in bluetooth_a2dp_init()
411 cap->subbands = BT_A2DP_SUBBANDS_8; in bluetooth_a2dp_init()
412 else if (cap->subbands & BT_A2DP_SUBBANDS_4) in bluetooth_a2dp_init()
413 cap->subbands = BT_A2DP_SUBBANDS_4; in bluetooth_a2dp_init()
469 switch (active_capabilities.subbands) { in bluetooth_a2dp_setup()
471 data->sbc.subbands = SBC_SB_4; in bluetooth_a2dp_setup()
474 data->sbc.subbands = SBC_SB_8; in bluetooth_a2dp_setup()
587 switch (data->sbc_capabilities.subbands) { in bluetooth_a2dp_hw_params()
596 data->sbc_capabilities.subbands); in bluetooth_a2dp_hw_params()
633 data->sbc.allocation, data->sbc.subbands, data->sbc.blocks, in bluetooth_a2dp_hw_params()
Da2dp.h77 uint8_t subbands:2; member
101 uint8_t subbands:2; member
Dpcm_bluetooth.c120 uint8_t subbands; /* A2DP only */ member
590 cap->subbands = cfg->subbands; in bluetooth_a2dp_init()
591 if (cap->subbands & BT_A2DP_SUBBANDS_8) in bluetooth_a2dp_init()
592 cap->subbands = BT_A2DP_SUBBANDS_8; in bluetooth_a2dp_init()
593 else if (cap->subbands & BT_A2DP_SUBBANDS_4) in bluetooth_a2dp_init()
594 cap->subbands = BT_A2DP_SUBBANDS_4; in bluetooth_a2dp_init()
660 switch (active_capabilities.subbands) { in bluetooth_a2dp_setup()
662 a2dp->sbc.subbands = SBC_SB_4; in bluetooth_a2dp_setup()
665 a2dp->sbc.subbands = SBC_SB_8; in bluetooth_a2dp_setup()
757 a2dp->sbc.allocation, a2dp->sbc.subbands, a2dp->sbc.blocks, in bluetooth_a2dp_hw_params()
[all …]
Dgstsbcenc.h57 gint subbands; member
Dgstavdtpsink.c324 gint rate, subbands, blocks; in gst_avdtp_sink_init_sbc_pkt_conf() local
378 subbands = g_value_get_int(value); in gst_avdtp_sink_init_sbc_pkt_conf()
379 if (subbands == 8) in gst_avdtp_sink_init_sbc_pkt_conf()
380 cfg->subbands = BT_A2DP_SUBBANDS_8; in gst_avdtp_sink_init_sbc_pkt_conf()
381 else if (subbands == 4) in gst_avdtp_sink_init_sbc_pkt_conf()
382 cfg->subbands = BT_A2DP_SUBBANDS_4; in gst_avdtp_sink_init_sbc_pkt_conf()
384 GST_ERROR_OBJECT(sink, "Invalid subbands %d", subbands); in gst_avdtp_sink_init_sbc_pkt_conf()
538 if (sbc->subbands & BT_A2DP_SUBBANDS_4) { in gst_avdtp_sink_parse_sbc_caps()
542 if (sbc->subbands & BT_A2DP_SUBBANDS_8) { in gst_avdtp_sink_parse_sbc_caps()
828 if (sbc->subbands & BT_A2DP_SUBBANDS_4) { in gst_avdtp_sink_parse_sbc_raw()
[all …]
Dipc.h199 uint8_t subbands; member
Dunix.c512 sbc->subbands & SBC_SUBBANDS_4 ? "4 " : "", in print_sbc()
513 sbc->subbands & SBC_SUBBANDS_8 ? "8 " : "", in print_sbc()
557 sbc->subbands = sbc_cap->subbands; in a2dp_append_codec()
1537 sbc_cap.subbands = sbc->subbands; in handle_a2dp_transport()
Da2dp.c526 sbc_cap.subbands = ( SBC_SUBBANDS_8 | SBC_SUBBANDS_4 ); in sbc_getcap_ind()
1824 if (supported->subbands & SBC_SUBBANDS_8) in select_sbc_params()
1825 cap->subbands = SBC_SUBBANDS_8; in select_sbc_params()
1826 else if (supported->subbands & SBC_SUBBANDS_4) in select_sbc_params()
1827 cap->subbands = SBC_SUBBANDS_4; in select_sbc_params()
/external/bluetooth/bluez/test/
Dipctest.c457 if (cap->subbands & BT_A2DP_SUBBANDS_8) in setup_a2dp()
458 cap->subbands = BT_A2DP_SUBBANDS_8; in setup_a2dp()
459 else if (cap->subbands & BT_A2DP_SUBBANDS_4) in setup_a2dp()
460 cap->subbands = BT_A2DP_SUBBANDS_4; in setup_a2dp()
538 switch (active_capabilities->subbands) { in setup_sbc()
540 a2dp->sbc.subbands = SBC_SB_4; in setup_sbc()
543 a2dp->sbc.subbands = SBC_SB_8; in setup_sbc()
647 u->a2dp.sbc.allocation, u->a2dp.sbc.subbands, in set_conf()
/external/bluetooth/bluez/tools/
Davinfo.c177 uint8_t subbands:2; member
231 uint8_t subbands:2; member
/external/webrtc/src/modules/audio_processing/aecm/main/matlab/matlab/
DAECMobile.m28 % Update subbands (We currently use all frequency bins, hence .useSubBand is turned off)

12