/external/bluetooth/bluez/sbc/ |
sbc.c | 72 uint8_t subbands; member in struct:sbc_frame 94 int subbands; member in struct:sbc_decoder_state 164 const struct sbc_frame *frame, int (*bits)[8], int subbands) 175 for (sb = 0; sb < subbands; sb++) { 181 for (sb = 0; sb < subbands; sb++) { 185 if (subbands == 4) 206 for (sb = 0; sb < subbands; sb++) { 219 for (sb = 0; sb < subbands; sb++) { 230 sb < subbands; sb++) { 241 sb < subbands; sb++) 1119 uint8_t subbands, channels, blocks, joint, bitpool; local 1144 uint8_t subbands, blocks; local 1182 uint16_t subbands, channels, blocks; local [all...] |
sbcenc.c | 47 static void encode(char *filename, int subbands, int bitpool, int joint, 109 sbc.subbands = subbands == 4 ? SBC_SB_4 : SBC_SB_8; 143 "%d subbands, %d bits, allocation method %s, " 145 filename, srate, blocks, subbands, bitpool, 218 "\t-s, --subbands Number of subbands to use (4 or 8)\n" 230 { "subbands", 1, 0, 's' }, 241 int i, opt, subbands = 8, bitpool = 32, joint = 0, dualchannel = 0; local 256 subbands = atoi(optarg) [all...] |
sbc_primitives.h | 42 /* Polyphase analysis filter for 4 subbands configuration, 45 /* Polyphase analysis filter for 8 subbands configuration, 49 * depending on the number of subbands and input data byte order */ 65 int blocks, int channels, int subbands); 69 int blocks, int subbands);
|
sbcinfo.c | 41 uint8_t subbands:1; /* Subbands */ member in struct:sbc_frame_hdr 56 uint8_t subbands:1; /* Subbands */ member in struct:sbc_frame_hdr 68 nrof_subbands = (hdr->subbands + 1) * 4; 97 nrof_subbands = (hdr->subbands + 1) * 4; 177 int subbands, blocks, freq, mode, method; local 199 subbands = (hdr.subbands + 1) * 4; 281 printf("Subbands\t\t%d\n", subbands) [all...] |
sbc_primitives_mmx.c | 282 int blocks, int channels, int subbands) 291 for (sb = 0; sb < subbands; sb += 2) {
|
sbc.h | 59 /* subbands */ 72 uint8_t subbands; member in struct:sbc_struct
|
sbc_primitives_neon.c | 243 int blocks, int channels, int subbands) 247 for (sb = 0; sb < subbands; sb += 4) { 295 int blocks, int subbands) 307 i = subbands; 418 "4:\n" /* 4 subbands */ 428 /* check whether to use joint stereo for subbands 0, 1, 2 */ 449 "8:\n" /* 8 subbands */ 459 /* check whether to use joint stereo for subbands 4, 5, 6 */ 487 /* check whether to use joint stereo for subbands 0, 1, 2, 3 */
|
sbc_primitives.c | 427 int blocks, int channels, int subbands) 431 for (sb = 0; sb < subbands; sb++) { 447 int blocks, int subbands) 454 int sb = subbands - 1; 468 /* the rest of subbands can use joint stereo */ 504 joint |= 1 << (subbands - 1 - sb); 514 /* bitmask with the information about subbands using joint stereo */
|
sbcdec.c | 127 fprintf(stderr,"decoding %s with rate %d, %d subbands, " 129 filename, frequency, sbc.subbands * 4 + 4, sbc.bitpool,
|
/external/bluetooth/bluez/audio/ |
gstsbcutil.c | 61 * Selects one number of subbands from a list 175 gint gst_sbc_parse_subbands_from_sbc(gint subbands) 177 switch (subbands) { 187 gint gst_sbc_parse_subbands_to_sbc(gint subbands) 189 switch (subbands) { 302 "subbands", G_TYPE_INT, 303 gst_sbc_parse_subbands_from_sbc(sbc->subbands), 327 gint temp, rate, channels, blocks, subbands, bitpool; local 374 if (!gst_structure_has_field(structure, "subbands")) { 376 *error_message = g_strdup("no subbands"); 485 gint rate, channels, subbands, blocks, bitpool; local [all...] |
gstsbcutil.h | 50 gint gst_sbc_parse_subbands_from_sbc(gint subbands); 51 gint gst_sbc_parse_subbands_to_sbc(gint subbands);
|
gstsbcenc.h | 57 gint subbands; member in struct:_GstSbcEnc
|
gstrtpsbcpay.c | 86 "subbands = (int) { 4, 8 }, " 106 static gint gst_rtp_sbc_pay_get_frame_len(gint subbands, gint channels, 112 len = 4 + (4 * subbands * channels)/8; 119 len += ((join * subbands + blocks * bitpool) + 7) / 8; 129 gint rate, subbands, channels, blocks, bitpool; local 145 if (!gst_structure_get_int(structure, "subbands", &subbands)) 152 frame_len = gst_rtp_sbc_pay_get_frame_len(subbands, channels, blocks,
|
a2dp.h | 77 uint8_t subbands:2; member in struct:sbc_codec_cap 101 uint8_t subbands:2; member in struct:sbc_codec_cap
|
gstsbcenc.c | 117 { 4, "4 subbands", "4" }, 118 { 8, "8 subbands", "8" }, 163 "subbands = (int) { 4, 8 }, " 191 if (enc->subbands != 0) 192 gst_sbc_util_set_structure_int_param(structure, "subbands", 193 enc->subbands, value); 336 if (enc->subbands != 0 && gst_sbc_parse_subbands_from_sbc( 337 enc->sbc.subbands) != enc->subbands) 483 enc->subbands = g_value_get_enum(value) [all...] |
liba2dp.c | 407 if (cap->subbands & BT_A2DP_SUBBANDS_8) 408 cap->subbands = BT_A2DP_SUBBANDS_8; 409 else if (cap->subbands & BT_A2DP_SUBBANDS_4) 410 cap->subbands = BT_A2DP_SUBBANDS_4; 412 ERR("No supported subbands"); 466 switch (active_capabilities.subbands) { 468 data->sbc.subbands = SBC_SB_4; 471 data->sbc.subbands = SBC_SB_8; 584 switch (data->sbc_capabilities.subbands) { 593 data->sbc_capabilities.subbands); [all...] |
gstavdtpsink.c | 275 gint rate, subbands, blocks; local 328 value = gst_structure_get_value(structure, "subbands"); 329 subbands = g_value_get_int(value); 330 if (subbands == 8) 331 cfg->subbands = BT_A2DP_SUBBANDS_8; 332 else if (subbands == 4) 333 cfg->subbands = BT_A2DP_SUBBANDS_4; 335 GST_ERROR_OBJECT(sink, "Invalid subbands %d", subbands); 479 /* subbands */ [all...] |
pcm_bluetooth.c | 120 uint8_t subbands; /* A2DP only */ member in struct:bluetooth_alsa_config 588 cap->subbands = cfg->subbands; 589 if (cap->subbands & BT_A2DP_SUBBANDS_8) 590 cap->subbands = BT_A2DP_SUBBANDS_8; 591 else if (cap->subbands & BT_A2DP_SUBBANDS_4) 592 cap->subbands = BT_A2DP_SUBBANDS_4; 594 DBG("No supported subbands"); 658 switch (active_capabilities.subbands) { 660 a2dp->sbc.subbands = SBC_SB_4 [all...] |
source.c | 398 if (supported->subbands & SBC_SUBBANDS_8) 399 cap->subbands = SBC_SUBBANDS_8; 400 else if (supported->subbands & SBC_SUBBANDS_4) 401 cap->subbands = SBC_SUBBANDS_4; 403 error("No supported subbands");
|
ipc.h | 199 uint8_t subbands; member in struct:__anon1488
|
sink.c | 431 if (supported->subbands & SBC_SUBBANDS_8) 432 cap->subbands = SBC_SUBBANDS_8; 433 else if (supported->subbands & SBC_SUBBANDS_4) 434 cap->subbands = SBC_SUBBANDS_4; 436 error("No supported subbands");
|
unix.c | 479 " Subbands: %s%s" 491 sbc->subbands & SBC_SUBBANDS_4 ? "4 " : "", 492 sbc->subbands & SBC_SUBBANDS_8 ? "8 " : "", 536 sbc->subbands = sbc_cap->subbands; [all...] |
a2dp.c | 391 sbc_cap.subbands = ( SBC_SUBBANDS_8 | SBC_SUBBANDS_4 ); [all...] |
/external/bluetooth/bluez/test/ |
ipctest.c | 457 if (cap->subbands & BT_A2DP_SUBBANDS_8) 458 cap->subbands = BT_A2DP_SUBBANDS_8; 459 else if (cap->subbands & BT_A2DP_SUBBANDS_4) 460 cap->subbands = BT_A2DP_SUBBANDS_4; 462 DBG("No supported subbands"); 538 switch (active_capabilities->subbands) { 540 a2dp->sbc.subbands = SBC_SB_4; 543 a2dp->sbc.subbands = SBC_SB_8; 647 u->a2dp.sbc.allocation, u->a2dp.sbc.subbands,
|
/external/bluetooth/bluez/tools/ |
avinfo.c | 177 uint8_t subbands:2; member in struct:sbc_codec_cap 231 uint8_t subbands:2; member in struct:sbc_codec_cap
|