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