Home | History | Annotate | Download | only in libFLAC

Lines Matching defs:bits

68  * (and fast) estimation (of how many bits a residual value will be
272 unsigned *bits
322 unsigned subframe_bps[FLAC__MAX_CHANNELS]; /* the effective bits per sample of the input signal (stream bps - wasted bits) */
323 unsigned subframe_bps_mid_side[2]; /* the effective bits per sample of the mid-side input signal (stream bps - wasted bits + 0/1) */
336 unsigned best_subframe_bits[FLAC__MAX_CHANNELS]; /* size in bits of the best subframe for each channel */
859 /* sample rate can be up to 655350 Hz, and thus use 20 bits, so we do the multiply&divide by hand */
3170 * Check for wasted bits; set effective bps for each subframe
3252 unsigned bits[4]; /* WATCHOUT - indexed by FLAC__ChannelAssignment */
3263 bits[FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT] = encoder->private_->best_subframe_bits [0] + encoder->private_->best_subframe_bits [1];
3264 bits[FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE ] = encoder->private_->best_subframe_bits [0] + encoder->private_->best_subframe_bits_mid_side[1];
3265 bits[FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE ] = encoder->private_->best_subframe_bits [1] + encoder->private_->best_subframe_bits_mid_side[1];
3266 bits[FLAC__CHANNEL_ASSIGNMENT_MID_SIDE ] = encoder->private_->best_subframe_bits_mid_side[0] + encoder->private_->best_subframe_bits_mid_side[1];
3269 min_bits = bits[channel_assignment];
3271 if(bits[ca] < min_bits) {
3272 min_bits = bits[ca];
3988 else { /* have to pessimistically use 64 bits for accumulator */
4108 * The actual number of bits used is closer to the sum(for all i in the partition) of abs(residual[i])>>(rice_parameter-1)
4109 * By using the abs_residual_partition sum, we also add in bits in the LSBs that would normally be shifted out.
4110 * So the subtraction term tries to guess how many extra bits were contributed.
4111 * If the LSBs are randomly distributed, this should average to 0.5 extra bits per sample.
4131 unsigned *bits
4213 /* we are basically calculating the size in bits of the
4305 *bits = bits_;