Home | History | Annotate | Download | only in libFLAC

Lines Matching full:bits

51 /* rbps stands for residual bits per sample
60 unsigned bits; /* the number of bits required to represent a number */
61 int fracbits; /* the number of bits of rbps that comprise the fractional part */
71 * The above two things tell us 1) n fits in 16 bits; 2) err/n > 1.
80 /* err now holds err/n with fracbits fractional bits */
83 * Whittle err down to 16 bits max. 16 significant bits is enough for
87 bits = FLAC__bitmath_ilog2(err)+1;
88 if(bits > 16) {
89 err >>= (bits-16);
90 fracbits -= (bits-16);
94 /* Multiply by fixed-point version of ln(2), with 16 fractional bits */
114 * The return value must have 16 fractional bits. Since the whole part
115 * of the base-2 log of a 32 bit number must fit in 5 bits, and fracbits
117 * left if necessary to get 16 fracbits without losing any bits of the
121 * will require 6 bits, so we use 6 in the assertion. Really though as
122 * long as it fits in 13 bits (32 - (16 - (-3))) we are fine.
139 unsigned bits; /* the number of bits required to represent a number */
140 int fracbits; /* the number of bits of rbps that comprise the fractional part */
150 * The above two things tell us 1) n fits in 16 bits; 2) err/n > 1.
159 /* err now holds err/n with fracbits fractional bits */
162 * Whittle err down to 16 bits max. 16 significant bits is enough for
166 bits = FLAC__bitmath_ilog2_wide(err)+1;
167 if(bits > 16) {
168 err >>= (bits-16);
169 fracbits -= (bits-16);
173 /* Multiply by fixed-point version of ln(2), with 16 fractional bits */
193 * The return value must have 16 fractional bits. Since the whole part
194 * of the base-2 log of a 32 bit number must fit in 5 bits, and fracbits
196 * left if necessary to get 16 fracbits without losing any bits of the
200 * will require 6 bits, so we use 6 in the assertion. Really though as
201 * long as it fits in 13 bits (32 - (16 - (-3))) we are fine.
249 /* Estimate the expected number of bits per residual signal sample. */
285 /* total_error_* are 64-bits to avoid overflow when encoding
286 * erratic signals when the bits-per-sample and blocksize are
311 /* Estimate the expected number of bits per residual signal sample. */