Lines Matching defs:bps

76     int need32 = s->flac_stream_info.bps > 16;
85 s->sample_shift = 32 - s->flac_stream_info.bps;
91 s->sample_shift = 16 - s->flac_stream_info.bps;
120 s->flac_stream_info.channels, s->flac_stream_info.bps);
132 av_log(avctx, AV_LOG_DEBUG, " Bits: %d\n", s->bps);
188 s->flac_stream_info.channels, s->flac_stream_info.bps);
283 int pred_order, int bps)
292 decoded[i] = get_sbits_long(&s->gb, bps);
335 int order, int qlevel, int len, int bps)
338 int ebps = 1 << (bps-1);
362 int bps)
370 decoded[i] = get_sbits_long(&s->gb, bps);
392 if ( ( s->buggy_lpc && s->flac_stream_info.bps <= 16)
393 || ( !s->buggy_lpc && bps <= 16
394 && bps + coeff_prec + av_log2(pred_order) <= 32)) {
398 if (s->flac_stream_info.bps <= 16)
399 lpc_analyze_remodulate(decoded, coeffs, pred_order, qlevel, s->blocksize, bps);
409 int bps = s->flac_stream_info.bps;
414 bps++;
417 bps++;
429 (left < bps && !show_bits_long(&s->gb, left)) ||
430 !show_bits_long(&s->gb, bps)) {
433 bps, left);
437 bps -= wasted;
439 if (bps > 32) {
446 tmp = get_sbits_long(&s->gb, bps);
451 decoded[i] = get_sbits_long(&s->gb, bps);
453 if ((ret = decode_subframe_fixed(s, decoded, type & ~0x8, bps)) < 0)
456 if ((ret = decode_subframe_lpc(s, decoded, (type & ~0x20)+1, bps)) < 0)
496 if (!s->flac_stream_info.bps && !fi.bps) {
497 av_log(s->avctx, AV_LOG_ERROR, "bps not found in STREAMINFO or frame header\n");
500 if (!fi.bps) {
501 fi.bps = s->flac_stream_info.bps;
502 } else if (s->flac_stream_info.bps && fi.bps != s->flac_stream_info.bps) {
503 av_log(s->avctx, AV_LOG_ERROR, "switching bps mid-stream is not "
508 if (!s->flac_stream_info.bps) {
509 s->flac_stream_info.bps = s->avctx->bits_per_raw_sample = fi.bps;
539 s->flac_stream_info.channels, s->flac_stream_info.bps);