Home
last modified time | relevance | path

Searched refs:bitpool (Results 1 – 15 of 15) sorted by relevance

/third_party/gstreamer/gstplugins_good/gst/audioparsers/
Dgstsbcparse.c78 guint blocks, guint bitpool);
81 GstSbcAllocationMethod * alloc_method, guint * n_subbands, guint * bitpool);
121 sbcparse->bitpool = -1; in gst_sbc_parse_reset()
193 guint rate = 0, n_blocks = 0, n_subbands = 0, bitpool = 0; in gst_sbc_parse_handle_frame() local
202 &alloc_method, &n_subbands, &bitpool); in gst_sbc_parse_handle_frame()
213 || sbcparse->n_subbands != n_subbands || sbcparse->bitpool != bitpool) { in gst_sbc_parse_handle_frame()
224 "bitpool", G_TYPE_INT, bitpool, "parsed", G_TYPE_BOOLEAN, TRUE, NULL); in gst_sbc_parse_handle_frame()
241 sbcparse->bitpool = bitpool; in gst_sbc_parse_handle_frame()
259 &n_blocks, &ch_mode, &alloc_method, &n_subbands, &bitpool); in gst_sbc_parse_handle_frame()
264 sbcparse->bitpool != bitpool) { in gst_sbc_parse_handle_frame()
[all …]
Dgstsbcparse.h63 gint bitpool; member
/third_party/pulseaudio/src/modules/bluetooth/
Da2dp-codec-sbc.c319 sbc_info->sbc.bitpool = sbc_info->initial_bitpool; in set_params()
443 … sbc_info->sbc.bitpool, (unsigned)sbc_info->codesize, (unsigned)sbc_info->frame_length); in init()
455 static void set_bitpool(struct sbc_info *sbc_info, uint8_t bitpool) { in set_bitpool() argument
456 if (bitpool > sbc_info->max_bitpool) in set_bitpool()
457 bitpool = sbc_info->max_bitpool; in set_bitpool()
458 else if (bitpool < sbc_info->min_bitpool) in set_bitpool()
459 bitpool = sbc_info->min_bitpool; in set_bitpool()
461 sbc_info->sbc.bitpool = bitpool; in set_bitpool()
466 pa_log_debug("Bitpool has changed to %u", sbc_info->sbc.bitpool); in set_bitpool()
500 uint8_t bitpool; in reduce_encoder_bitrate() local
[all …]
/third_party/ffmpeg/libavcodec/
Dsbc.c128 } while (bitcount + slicecount < frame->bitpool); in ff_sbc_calculate_bits()
130 if (bitcount + slicecount == frame->bitpool) { in ff_sbc_calculate_bits()
145 for (sb = 0; bitcount < frame->bitpool && in ff_sbc_calculate_bits()
150 } else if ((bitneed[ch][sb] == bitslice + 1) && (frame->bitpool > bitcount + 1)) { in ff_sbc_calculate_bits()
156 for (sb = 0; bitcount < frame->bitpool && in ff_sbc_calculate_bits()
215 } while (bitcount + slicecount < frame->bitpool); in ff_sbc_calculate_bits()
217 if (bitcount + slicecount == frame->bitpool) { in ff_sbc_calculate_bits()
236 while (bitcount < frame->bitpool) { in ff_sbc_calculate_bits()
240 } else if ((bitneed[ch][sb] == bitslice + 1) && (frame->bitpool > bitcount + 1)) { in ff_sbc_calculate_bits()
255 while (bitcount < frame->bitpool) { in ff_sbc_calculate_bits()
Dsbc_parser.c37 int sr, blocks, mode, subbands, bitpool, channels, joint; in sbc_parse_header() local
58 bitpool = data[2]; in sbc_parse_header()
64 + ((((mode == SBC_MODE_DUAL_CHANNEL) + 1) * blocks * bitpool in sbc_parse_header()
Dsbcenc.c125 avpkt->data[2] = frame->bitpool; in sbc_pack_frame()
127 if (frame->bitpool > frame->subbands << (4 + (frame->mode == STEREO in sbc_pack_frame()
217 frame->bitpool = 26; in sbc_encode_init()
251 frame->bitpool = (((avctx->bit_rate * frame->subbands * frame->blocks) / avctx->sample_rate) in sbc_encode_init()
255 frame->bitpool = avctx->global_quality / FF_QP2LAMBDA; in sbc_encode_init()
286 + ((frame->blocks * frame->bitpool * (1 + dual) in sbc_encode_frame()
Dsbcdec.c93 frame->bitpool = 26; in sbc_unpack_frame()
101 frame->bitpool = data[2]; in sbc_unpack_frame()
104 frame->bitpool > 16 * frame->subbands) in sbc_unpack_frame()
108 frame->bitpool > 32 * frame->subbands) in sbc_unpack_frame()
Dsbc.h98 uint8_t bitpool; member
/third_party/gstreamer/gstplugins_bad/ext/sbc/
Dgstsbcdec.c149 gint channels, rate, subbands, blocks, bitpool; in gst_sbc_dec_set_format() local
160 !gst_structure_get_int (s, "bitpool", &bitpool)) 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()
Dgstsbcenc.c138 gst_structure_get_int (s, "bitpool", &enc->bitpool); in gst_sbc_enc_set_format()
193 enc->sbc.bitpool = enc->bitpool; in gst_sbc_enc_set_format()
335 enc->bitpool = 0; in gst_sbc_enc_stop()
371 self->bitpool = 0; in gst_sbc_enc_init()
Dgstsbcenc.h50 gint bitpool; member
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpsbcpay.c81 gint blocks, gint bitpool, const gchar * channel_mode) in gst_rtp_sbc_pay_get_frame_len() argument
89 len += ((blocks * channels * bitpool) + 7) / 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
116 if (!gst_structure_get_int (structure, "bitpool", &bitpool)) in gst_rtp_sbc_pay_set_caps()
126 bitpool, channel_mode); in gst_rtp_sbc_pay_set_caps()
Dgstrtpsbcdepay.c177 int blocks, channel_mode, channels, subbands, bitpool; in gst_rtp_sbc_depay_get_params() local
197 bitpool = data[2]; in gst_rtp_sbc_depay_get_params()
203 length += ((blocks * channels * bitpool) in gst_rtp_sbc_depay_get_params()
209 length += ((joint * subbands) + (blocks * bitpool) in gst_rtp_sbc_depay_get_params()
/third_party/gstreamer/gstplugins_base/gst/typefind/
Dgsttypefindfunctions.c5445 guint n_blocks, ch_mode, n_subbands, bitpool; in sbc_check_header() local
5453 bitpool = data[2]; in sbc_check_header()
5454 if (bitpool < 2) in sbc_check_header()
5461 return 4 + (n_subbands * 1) / 2 + (n_blocks * 1 * bitpool) / 8; in sbc_check_header()
5463 return 4 + (n_subbands * 2) / 2 + (n_blocks * 2 * bitpool) / 8; in sbc_check_header()
5465 return 4 + (n_subbands * 2) / 2 + (n_blocks * bitpool) / 8; in sbc_check_header()
5467 return 4 + (n_subbands * 2) / 2 + (n_subbands + n_blocks * bitpool) / 8; in sbc_check_header()
/third_party/gstreamer/gstplugins_bad/
DChangeLog137280 sbc: Add bitpool property and others fixes for gstreamer plugin.
137370 sbc: Add bitpool capability.
139821 bluez: Add bitpool property and others fixes for gstreamer plugin.
139900 bluez: Add bitpool capability.