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

/external/bluetooth/bluez/sbc/
H A Dsbc.c72 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; s
163 sbc_calculate_bits_internal( const struct sbc_frame *frame, int (*bits)[8], int subbands) argument
1125 uint8_t subbands, channels, blocks, joint, bitpool; local
1150 uint8_t subbands, blocks; local
1188 uint16_t subbands, channels, blocks; local
[all...]
H A Dsbcenc.c47 static void encode(char *filename, int subbands, int bitpool, int joint, argument
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
[all...]
H A Dsbc_primitives.h42 /* 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);
H A Dsbcinfo.c41 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, method; local
199 subbands = (hdr.subbands + 1) * 4;
280 printf("Subbands\t\t%d\n", subbands);
H A Dsbc_primitives_mmx.c282 int blocks, int channels, int subbands)
291 for (sb = 0; sb < subbands; sb += 2) {
279 sbc_calc_scalefactors_mmx( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands) argument
H A Dsbc.h59 /* subbands */
72 uint8_t subbands; member in struct:sbc_struct
H A Dsbc_primitives_neon.c243 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 */
240 sbc_calc_scalefactors_neon( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands) argument
292 sbc_calc_scalefactors_j_neon( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int subbands) argument
H A Dsbc_primitives.c428 int blocks, int channels, int subbands)
432 for (sb = 0; sb < subbands; sb++) {
448 int blocks, int subbands)
455 int sb = subbands - 1;
469 /* the rest of subbands can use joint stereo */
505 joint |= 1 << (subbands - 1 - sb);
515 /* bitmask with the information about subbands using joint stereo */
425 sbc_calc_scalefactors( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands) argument
445 sbc_calc_scalefactors_j( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int subbands) argument
H A Dsbcdec.c127 fprintf(stderr,"decoding %s with rate %d, %d subbands, "
129 filename, frequency, sbc.subbands * 4 + 4, sbc.bitpool,
/external/bluetooth/bluez/audio/
H A Dgstsbcutil.c61 * Selects one number of subbands from a list
175 gint gst_sbc_parse_subbands_from_sbc(gint subbands) argument
177 switch (subbands) {
187 gint gst_sbc_parse_subbands_to_sbc(gint subbands) argument
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...]
H A Da2dp-codecs.h76 uint8_t subbands:2; member in struct:__anon346
98 uint8_t subbands:2; member in struct:__anon348
H A Dgstsbcutil.h50 gint gst_sbc_parse_subbands_from_sbc(gint subbands);
51 gint gst_sbc_parse_subbands_to_sbc(gint subbands);
H A Dgstsbcenc.h57 gint subbands; member in struct:_GstSbcEnc
H A Dgstrtpsbcpay.c86 "subbands = (int) { 4, 8 }, "
106 static gint gst_rtp_sbc_pay_get_frame_len(gint subbands, gint channels, argument
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,
H A Dgstsbcenc.c117 { 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
[all...]
H A Da2dp.h77 uint8_t subbands:2; member in struct:sbc_codec_cap
101 uint8_t subbands:2; member in struct:sbc_codec_cap
H A Dliba2dp.c410 if (cap->subbands & BT_A2DP_SUBBANDS_8)
411 cap->subbands = BT_A2DP_SUBBANDS_8;
412 else if (cap->subbands & BT_A2DP_SUBBANDS_4)
413 cap->subbands = BT_A2DP_SUBBANDS_4;
415 ERR("No supported subbands");
469 switch (active_capabilities.subbands) {
471 data->sbc.subbands = SBC_SB_4;
474 data->sbc.subbands = SBC_SB_8;
587 switch (data->sbc_capabilities.subbands) {
596 data->sbc_capabilities.subbands);
[all...]
H A Dpcm_bluetooth.c120 uint8_t subbands; /* A2DP only */ member in struct:bluetooth_alsa_config
590 cap->subbands = cfg->subbands;
591 if (cap->subbands & BT_A2DP_SUBBANDS_8)
592 cap->subbands = BT_A2DP_SUBBANDS_8;
593 else if (cap->subbands & BT_A2DP_SUBBANDS_4)
594 cap->subbands = BT_A2DP_SUBBANDS_4;
596 DBG("No supported subbands");
660 switch (active_capabilities.subbands) {
662 a2dp->sbc.subbands
[all...]
H A Dgstavdtpsink.c324 gint rate, subbands, blocks; local
377 value = gst_structure_get_value(structure, "subbands");
378 subbands = g_value_get_int(value);
379 if (subbands == 8)
380 cfg->subbands = BT_A2DP_SUBBANDS_8;
381 else if (subbands == 4)
382 cfg->subbands = BT_A2DP_SUBBANDS_4;
384 GST_ERROR_OBJECT(sink, "Invalid subbands %d", subbands);
535 /* subbands */
[all...]
H A Dipc.h199 uint8_t subbands; member in struct:__anon368
H A Dunix.c512 sbc->subbands & SBC_SUBBANDS_4 ? "4 " : "",
513 sbc->subbands & SBC_SUBBANDS_8 ? "8 " : "",
557 sbc->subbands = sbc_cap->subbands;
1537 sbc_cap.subbands = sbc->subbands;
H A Da2dp.c526 sbc_cap.subbands = ( SBC_SUBBANDS_8 | SBC_SUBBANDS_4 );
1824 if (supported->subbands & SBC_SUBBANDS_8)
1825 cap->subbands = SBC_SUBBANDS_8;
1826 else if (supported->subbands & SBC_SUBBANDS_4)
1827 cap->subbands = SBC_SUBBANDS_4;
1829 error("No supported subbands");
/external/bluetooth/bluez/test/
H A Dipctest.c457 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/
H A Davinfo.c177 uint8_t subbands:2; member in struct:sbc_codec_cap
231 uint8_t subbands:2; member in struct:sbc_codec_cap
/external/aac/libSBRdec/src/
H A Denv_calc.cpp97 one or more QMF-subbands are grouped to one SBR-band. An envelope contains
114 Depending on the frequency range set in the bitstream, only QMF-subbands between
158 int subbands);
460 and relatively compared to the total gain over all subbands.
618 cases where the number of limiter bands exceeds the number of subbands. The latter can be caused by undetected bit
1183 int subbands) /*!< Number of QMF subbands */
1188 for (band=0; band<subbands; band++){
1741 int noSubbands, /*!< Number of QMF subbands */
1941 int noSubbands, /*!< Number of QMF subbands */
1179 equalizeFiltBufferExp(FIXP_DBL *filtBuffer, SCHAR *filtBuffer_e, FIXP_DBL *nrgGain, SCHAR *nrgGain_e, int subbands) argument
[all...]

Completed in 261 milliseconds