Lines Matching refs:common
124 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common, uint8_t* bitneeds, in computeBitneed() argument
134 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
136 int8_t* scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
141 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
156 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
158 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
179 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed); in computeBitneed()
332 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common, in oneChannelBitAllocation() argument
335 const uint8_t nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
343 bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, in oneChannelBitAllocation()
352 allocBits = &common->bits.uint8[ch ? nrof_subbands : 0]; in oneChannelBitAllocation()
367 void monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common) { in monoBitAllocation() argument
372 bitcount = computeBitneed(common, bitneeds.uint8, 0, &bitpoolPreference); in monoBitAllocation()
374 oneChannelBitAllocation(common, &bitneeds, 0, bitcount); in monoBitAllocation()