Home | History | Annotate | Download | only in srce

Lines Matching refs:bits

27 The functions in this file relate to the allocation of available bits to
103 * lossless representation of the audio data. The preferred bitpool may be larger than the bits
104 * actually required but the only input we have are the scale factors. For example, it takes 2 bits
107 * This is not ideal because 0 requires 0 bits but we currently have no way of knowing this.
113 * @param preferredBitpool Returns the number of reserved bits
146 OI_INT bits = scale_factor[sb];
147 if (bits > maxBits) {
148 maxBits = bits;
150 if ((bitneeds[sb] = bits) > 1) {
151 bitcount += bits;
153 prefBits += 2 + bits;
163 OI_INT bits = scale_factor[sb];
164 if (bits > maxBits) {
165 maxBits = bits;
167 prefBits += 2 + bits;
168 if (bits) {
169 bits -= offset[sb];
170 if (bits > 0) {
171 bits /= 2;
173 bits += 5;
175 if ((bitneeds[sb] = bits) > 1) {
176 bitcount += bits;
194 * OI_INT bits = bitadjust + bitneeds[s];
195 * bits = bits < 2 ? 0 : bits;
196 * bits = bits > 16 ? 16 : bits;
197 * count += bits;
212 * to create a mask that zeroes bits 0 .. 3 if bit 4 is set.
221 * These operations can be performed in 8 bits without overflowing so we can
230 * adjustment and excess bits.
242 * @param excess Returns the excess bits after the adjustment
302 * where a bitneed of 1 was passed over during the adsjustment phase 2 bits are now allocated.
305 OI_INT bits,
308 if (bits < 16) {
309 if (bits > 1) {
311 ++bits;
314 } else if ((bits == 1) && (excess > 1)) {
315 bits = 2;
318 bits = 0;
321 bits = 16;
323 *dest = (OI_UINT8)bits;
329 * Excess bits not allocated by allocaAdjustedBits are allocated round-robin.
362 * Allocate adjusted bits
364 allocBits = &common->bits.uint8[ch ? nrof_subbands : 0];