Lines Matching refs:bits
143 OI_INT bits = scale_factor[sb]; in computeBitneed() local
144 if (bits > maxBits) { in computeBitneed()
145 maxBits = bits; in computeBitneed()
147 bitneeds[sb] = bits; in computeBitneed()
149 bitcount += bits; in computeBitneed()
151 prefBits += 2 + bits; in computeBitneed()
161 OI_INT bits = scale_factor[sb]; in computeBitneed() local
162 if (bits > maxBits) { in computeBitneed()
163 maxBits = bits; in computeBitneed()
165 prefBits += 2 + bits; in computeBitneed()
166 if (bits) { in computeBitneed()
167 bits -= offset[sb]; in computeBitneed()
168 if (bits > 0) { in computeBitneed()
169 bits /= 2; in computeBitneed()
171 bits += 5; in computeBitneed()
173 bitneeds[sb] = bits; in computeBitneed()
175 bitcount += bits; in computeBitneed()
300 INLINE OI_INT allocAdjustedBits(uint8_t* dest, OI_INT bits, OI_INT excess) { in allocAdjustedBits() argument
301 if (bits < 16) { in allocAdjustedBits()
302 if (bits > 1) { in allocAdjustedBits()
304 ++bits; in allocAdjustedBits()
307 } else if ((bits == 1) && (excess > 1)) { in allocAdjustedBits()
308 bits = 2; in allocAdjustedBits()
311 bits = 0; in allocAdjustedBits()
314 bits = 16; in allocAdjustedBits()
316 *dest = (uint8_t)bits; in allocAdjustedBits()
352 allocBits = &common->bits.uint8[ch ? nrof_subbands : 0]; in oneChannelBitAllocation()