Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libavcodec/
Dsbcenc.c54 switch (frame->subbands) { in sbc_analyze_audio()
123 avpkt->data[1] |= ((frame->subbands == 8) & 0x01) << 0; in sbc_pack_frame()
127 if (frame->bitpool > frame->subbands << (4 + (frame->mode == STEREO in sbc_pack_frame()
140 put_bits(&pb, frame->subbands, joint); in sbc_pack_frame()
142 crc_pos += frame->subbands; in sbc_pack_frame()
146 for (sb = 0; sb < frame->subbands; sb++) { in sbc_pack_frame()
163 for (sb = 0; sb < frame->subbands; sb++) { in sbc_pack_frame()
175 for (sb = 0; sb < frame->subbands; sb++) { in sbc_pack_frame()
214 frame->subbands = 8; in sbc_encode_init()
231 frame->subbands = 4; in sbc_encode_init()
[all …]
Dsbc.c81 int subbands = frame->subbands; in ff_sbc_calculate_bits() local
91 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
97 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
101 if (subbands == 4) in ff_sbc_calculate_bits()
122 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
135 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
146 sb < subbands; sb++) { in ff_sbc_calculate_bits()
157 sb < subbands; sb++) { in ff_sbc_calculate_bits()
173 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
181 for (sb = 0; sb < subbands; sb++) { in ff_sbc_calculate_bits()
[all …]
Dsbcdec.c92 frame->subbands = 8; in sbc_unpack_frame()
100 frame->subbands = data[1] & 0x01 ? 8 : 4; in sbc_unpack_frame()
104 frame->bitpool > 16 * frame->subbands) in sbc_unpack_frame()
108 frame->bitpool > 32 * frame->subbands) in sbc_unpack_frame()
119 if (len * 8 < consumed + frame->subbands) in sbc_unpack_frame()
123 for (sb = 0; sb < frame->subbands - 1; sb++) in sbc_unpack_frame()
125 if (frame->subbands == 4) in sbc_unpack_frame()
130 consumed += frame->subbands; in sbc_unpack_frame()
131 crc_pos += frame->subbands; in sbc_unpack_frame()
134 if (len * 8 < consumed + (4 * frame->subbands * frame->channels)) in sbc_unpack_frame()
[all …]
Dsbcdsp.c64 unsigned subbands) in sbc_analyze_simd() argument
71 for (i = 0; i < subbands; i++) in sbc_analyze_simd()
75 for (hop = 0; hop < 10*subbands; hop += 2*subbands) in sbc_analyze_simd()
76 for (i = 0; i < 2*subbands; i++) in sbc_analyze_simd()
80 for (i = 0; i < subbands; i++) in sbc_analyze_simd()
86 for (i = 0; i < subbands/2; i++) in sbc_analyze_simd()
87 for (j = 0; j < 2*subbands; j++) in sbc_analyze_simd()
88 t1[j>>1] += t2[i * 2 + (j&1)] * consts[10*subbands + i*2*subbands + j]; in sbc_analyze_simd()
90 for (i = 0; i < subbands; i++) in sbc_analyze_simd()
272 int blocks, int channels, int subbands) in sbc_calc_scalefactors() argument
[all …]
Dsbc_parser.c37 int sr, blocks, mode, subbands, bitpool, channels, joint; in sbc_parse_header() local
57 subbands = (((data[1] >> 0) & 0x01) + 1) << 2; in sbc_parse_header()
63 length = 4 + (subbands * channels) / 2 in sbc_parse_header()
65 + (joint * subbands)) + 7) / 8; in sbc_parse_header()
69 avctx->frame_size = subbands * blocks; in sbc_parse_header()
Daptxenc.c39 int32_t subbands[NB_FILTERS]; in aptx_qmf_polyphase_analysis() local
44 subbands[i] = aptx_qmf_convolution(&signal[i], coeffs[i], shift); in aptx_qmf_polyphase_analysis()
47 *low_subband_output = av_clip_intp2(subbands[0] + subbands[1], 23); in aptx_qmf_polyphase_analysis()
48 *high_subband_output = av_clip_intp2(subbands[0] - subbands[1], 23); in aptx_qmf_polyphase_analysis()
Daptxdec.c38 int32_t subbands[NB_FILTERS]; in aptx_qmf_polyphase_synthesis() local
41 subbands[0] = low_subband_input + high_subband_input; in aptx_qmf_polyphase_synthesis()
42 subbands[1] = low_subband_input - high_subband_input; in aptx_qmf_polyphase_synthesis()
45 aptx_qmf_filter_signal_push(&signal[i], subbands[1-i]); in aptx_qmf_polyphase_synthesis()
Dsbcdsp.h71 int blocks, int channels, int subbands);
75 int blocks, int subbands);
Dcook.c82 int subbands; member
772 int end = cplband[p->subbands - 1]; in decouple_info()
858 for (i = p->js_subband_start; i < p->subbands; i++) { in joint_decode()
1061 PRINT("subbands", q->subpacket[0].subbands); in dump_cook_context()
1115 q->subpacket[s].subbands = bytestream2_get_be16(&gb); in cook_decode_init()
1130 q->subpacket[s].total_subbands = q->subpacket[s].subbands; in cook_decode_init()
1160 q->subpacket[s].total_subbands = q->subpacket[s].subbands + in cook_decode_init()
1177 q->subpacket[s].total_subbands = q->subpacket[s].subbands + in cook_decode_init()
1222 if (q->subpacket[s].subbands > 50) { in cook_decode_init()
1226 if (q->subpacket[s].subbands == 0) { in cook_decode_init()
Dsbc.h97 uint8_t subbands; member
Daptx.h39 enum subbands { enum
/third_party/gstreamer/gstplugins_bad/ext/sbc/
Dgstsbcdec.c149 gint channels, rate, subbands, blocks, bitpool; in gst_sbc_dec_set_format() local
158 !gst_structure_get_int (s, "subbands", &subbands) || in gst_sbc_dec_set_format()
164 dec->frame_len = 4 + (subbands * 1) / 2 + ((blocks * 1 * bitpool) + 7) / 8; in gst_sbc_dec_set_format()
166 dec->frame_len = 4 + (subbands * 2) / 2 + ((blocks * 2 * bitpool) + 7) / 8; in gst_sbc_dec_set_format()
168 dec->frame_len = 4 + (subbands * 2) / 2 + ((blocks * bitpool) + 7) / 8; in gst_sbc_dec_set_format()
171 4 + (subbands * 2) / 2 + ((subbands + blocks * bitpool) + 7) / 8; in gst_sbc_dec_set_format()
176 dec->samples_per_frame = channels * blocks * subbands; in gst_sbc_dec_set_format()
Dgstsbcenc.c137 gst_structure_get_int (s, "subbands", &enc->subbands); in gst_sbc_enc_set_format()
161 sampleframes_per_frame = enc->blocks * enc->subbands; in gst_sbc_enc_set_format()
192 enc->sbc.subbands = (enc->subbands == 4) ? SBC_SB_4 : SBC_SB_8; in gst_sbc_enc_set_format()
243 if (G_UNLIKELY (enc->channels == 0 || enc->blocks == 0 || enc->subbands == 0)) in gst_sbc_enc_handle_frame()
246 samples_per_frame = enc->channels * enc->blocks * enc->subbands; in gst_sbc_enc_handle_frame()
331 enc->subbands = 0; in gst_sbc_enc_stop()
367 self->subbands = 0; in gst_sbc_enc_init()
Dgstsbcenc.h49 gint subbands; member
/third_party/pulseaudio/src/modules/bluetooth/
Da2dp-codec-sbc.c48 uint8_t subbands; member
78 if (!(capabilities->subbands & (SBC_SUBBANDS_4 | SBC_SUBBANDS_8))) in can_accept_capabilities()
102 if (!(capabilities->subbands & (SBC_SUBBANDS_8))) in can_accept_capabilities_xq()
149 capabilities->subbands = SBC_SUBBANDS_4 | SBC_SUBBANDS_8; in fill_capabilities()
211 switch (config->subbands) { in set_info_and_sample_spec_from_sbc_config()
213 sbc_info->subbands = SBC_SB_4; in set_info_and_sample_spec_from_sbc_config()
217 sbc_info->subbands = SBC_SB_8; in set_info_and_sample_spec_from_sbc_config()
252 sbc_info->sbc.subbands = sbc_info->subbands; in set_params()
315 capabilities->subbands = SBC_SUBBANDS_8; in fill_capabilities_xq()
354 if (config->subbands != SBC_SUBBANDS_4 && config->subbands != SBC_SUBBANDS_8) { in is_configuration_valid()
[all …]
Da2dp-codecs.h316 uint8_t subbands:2; member
374 uint8_t subbands:2; member
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpsbcpay.c80 gst_rtp_sbc_pay_get_frame_len (gint subbands, gint channels, in gst_rtp_sbc_pay_get_frame_len() argument
86 len = 4 + (4 * subbands * channels) / 8; in gst_rtp_sbc_pay_get_frame_len()
92 len += ((join * subbands + blocks * bitpool) + 7) / 8; in gst_rtp_sbc_pay_get_frame_len()
102 gint rate, subbands, channels, blocks, bitpool; in gst_rtp_sbc_pay_set_caps() local
118 if (!gst_structure_get_int (structure, "subbands", &subbands)) in gst_rtp_sbc_pay_set_caps()
125 frame_len = gst_rtp_sbc_pay_get_frame_len (subbands, channels, blocks, in gst_rtp_sbc_pay_set_caps()
129 sbcpay->frame_duration = ((blocks * subbands) * GST_SECOND) / rate; in gst_rtp_sbc_pay_set_caps()
Dgstrtpsbcdepay.c177 int blocks, channel_mode, channels, subbands, bitpool; in gst_rtp_sbc_depay_get_params() local
195 subbands = (data[1] & 0x1); in gst_rtp_sbc_depay_get_params()
196 subbands = (subbands + 1) * 4; in gst_rtp_sbc_depay_get_params()
199 length = 4 + ((4 * subbands * channels) / 8); in gst_rtp_sbc_depay_get_params()
209 length += ((joint * subbands) + (blocks * bitpool) in gst_rtp_sbc_depay_get_params()
214 *samples = blocks * subbands; in gst_rtp_sbc_depay_get_params()
/third_party/gstreamer/gstplugins_good/gst/audioparsers/
Dgstsbcparse.c77 static gsize gst_sbc_calc_framelen (guint subbands, GstSbcChannelMode ch_mode,
423 gst_sbc_calc_framelen (guint subbands, GstSbcChannelMode ch_mode, in gst_sbc_calc_framelen() argument
428 return 4 + (subbands * 1) / 2 + ((blocks * 1 * bitpool) + 7) / 8; in gst_sbc_calc_framelen()
430 return 4 + (subbands * 2) / 2 + ((blocks * 2 * bitpool) + 7) / 8; in gst_sbc_calc_framelen()
432 return 4 + (subbands * 2) / 2 + ((blocks * bitpool) + 7) / 8; in gst_sbc_calc_framelen()
434 return 4 + (subbands * 2) / 2 + ((subbands + blocks * bitpool) + 7) / 8; in gst_sbc_calc_framelen()
/third_party/ffmpeg/libavcodec/x86/
Dsbcdsp.asm120 ; int blocks, int channels, int subbands)
123 cglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr,…
124 ; subbands = 4 * subbands * channels
Dsbcdsp_init.c40 int blocks, int channels, int subbands);
/third_party/ffmpeg/libavcodec/arm/
Dsbcdsp_init_arm.c44 int blocks, int channels, int subbands);
47 int blocks, int subbands);
Dsbcdsp_neon.S200 @ r4 = subbands
373 @ r3 = subbands
395 4: @ 4 subbands
405 @ check whether to use joint stereo for subbands 0, 1, 2
426 8: @ 8 subbands
436 @ check whether to use joint stereo for subbands 4, 5, 6
464 @ check whether to use joint stereo for subbands 0, 1, 2, 3
/third_party/gstreamer/gstplugins_bad/sys/bluez/
Da2dp-codecs.h140 uint8_t subbands:2; member
171 uint8_t subbands:2; member
/third_party/ffmpeg/doc/
Dsnow.txt279 || Y subbands | | Cb subbands| | Cr subbands||
536 4 lowest frequency subbands into a single subband until only 1 subband
553 1. interleave the samples of the low and high frequency subbands like

12