Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:bps

120 static FLAC__bool read_subframe_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode);
121 static FLAC__bool read_subframe_constant_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode);
122 static FLAC__bool read_subframe_fixed_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, const unsigned order, FLAC__bool do_full_decode);
123 static FLAC__bool read_subframe_lpc_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, const unsigned order, FLAC__bool do_full_decode);
124 static FLAC__bool read_subframe_verbatim_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode);
2027 unsigned bps = decoder->private_->frame.header.bits_per_sample;
2035 bps++;
2040 bps++;
2045 bps++;
2053 if(!read_subframe_(decoder, channel, bps, do_full_decode))
2455 FLAC__bool read_subframe_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode)
2472 bps -= decoder->private_->frame.subframes[channel].wasted_bits;
2486 if(!read_subframe_constant_(decoder, channel, bps, do_full_decode))
2490 if(!read_subframe_verbatim_(decoder, channel, bps, do_full_decode))
2499 if(!read_subframe_fixed_(decoder, channel, bps, (x>>1)&7, do_full_decode))
2510 if(!read_subframe_lpc_(decoder, channel, bps, ((x>>1)&31)+1, do_full_decode))
2525 FLAC__bool read_subframe_constant_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode)
2534 if(!FLAC__bitreader_read_raw_int32(decoder->private_->input, &x, bps))
2548 bps, const unsigned order, FLAC__bool do_full_decode)
2562 if(!FLAC__bitreader_read_raw_int32(decoder->private_->input, &i32, bps))
2605 FLAC__bool read_subframe_lpc_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, const unsigned order, FLAC__bool do_full_decode)
2619 if(!FLAC__bitreader_read_raw_int32(decoder->private_->input, &i32, bps))
2679 if( (FLAC__uint64)order * ((((FLAC__uint64)1)<<bps)-1) * ((1<<subframe->qlp_coeff_precision)-1) < (((FLAC__uint64)-1) << 32) )
2681 if(bps + subframe->qlp_coeff_precision + FLAC__bitmath_ilog2(order) <= 32)
2682 if(bps <= 16 && subframe->qlp_coeff_precision <= 16) {
2697 FLAC__bool read_subframe_verbatim_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, FLAC__bool do_full_decode)
2708 if(!FLAC__bitreader_read_raw_int32(decoder->private_->input, &x, bps))
2994 unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder);
3000 if(bps == 0)
3001 bps = decoder->private_->stream_info.data.stream_info.bits_per_sample;
3013 /* note there are no () around 'bps/8' to keep precision up since it's an integer calulation */
3014 approx_bytes_per_frame = min_blocksize * channels * bps/8 + 64;
3017 approx_bytes_per_frame = 4096 * channels * bps/8 + 64;