Lines Matching refs:common
118 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common, in computeBitneed() argument
137 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
139 OI_INT8 *scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
144 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
158 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
160 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
180 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed); in computeBitneed()
342 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common, in oneChannelBitAllocation() argument
347 const OI_UINT8 nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
356 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, nrof_subbands, bitcoun… in oneChannelBitAllocation()
364 allocBits = &common->bits.uint8[ch ? nrof_subbands : 0]; in oneChannelBitAllocation()
379 void monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in monoBitAllocation() argument
385 bitcount = computeBitneed(common, bitneeds.uint8, 0, &bitpoolPreference); in monoBitAllocation()
387 oneChannelBitAllocation(common, &bitneeds, 0, bitcount); in monoBitAllocation()