Home | History | Annotate | Download | only in libFLAC

Lines Matching defs:bits

58 /* rbps stands for residual bits per sample
67 unsigned bits; /* the number of bits required to represent a number */
68 int fracbits; /* the number of bits of rbps that comprise the fractional part */
78 * The above two things tell us 1) n fits in 16 bits; 2) err/n > 1.
87 /* err now holds err/n with fracbits fractional bits */
90 * Whittle err down to 16 bits max. 16 significant bits is enough for
94 bits = FLAC__bitmath_ilog2(err)+1;
95 if(bits > 16) {
96 err >>= (bits-16);
97 fracbits -= (bits-16);
101 /* Multiply by fixed-point version of ln(2), with 16 fractional bits */
121 * The return value must have 16 fractional bits. Since the whole part
122 * of the base-2 log of a 32 bit number must fit in 5 bits, and fracbits
124 * left if necessary to get 16 fracbits without losing any bits of the
128 * will require 6 bits, so we use 6 in the assertion. Really though as
129 * long as it fits in 13 bits (32 - (16 - (-3))) we are fine.
146 unsigned bits; /* the number of bits required to represent a number */
147 int fracbits; /* the number of bits of rbps that comprise the fractional part */
157 * The above two things tell us 1) n fits in 16 bits; 2) err/n > 1.
166 /* err now holds err/n with fracbits fractional bits */
169 * Whittle err down to 16 bits max. 16 significant bits is enough for
173 bits = FLAC__bitmath_ilog2_wide(err)+1;
174 if(bits > 16) {
175 err >>= (bits-16);
176 fracbits -= (bits-16);
180 /* Multiply by fixed-point version of ln(2), with 16 fractional bits */
200 * The return value must have 16 fractional bits. Since the whole part
201 * of the base-2 log of a 32 bit number must fit in 5 bits, and fracbits
203 * left if necessary to get 16 fracbits without losing any bits of the
207 * will require 6 bits, so we use 6 in the assertion. Really though as
208 * long as it fits in 13 bits (32 - (16 - (-3))) we are fine.
256 /* Estimate the expected number of bits per residual signal sample. */
292 /* total_error_* are 64-bits to avoid overflow when encoding
293 * erratic signals when the bits-per-sample and blocksize are
318 /* Estimate the expected number of bits per residual signal sample. */