Lines Matching refs:common

33 static void dualBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common)  in dualBitAllocation()  argument
42 bitcountL = computeBitneed(common, bitneedsL.uint8, 0, &bitpoolPreferenceL); in dualBitAllocation()
43 bitcountR = computeBitneed(common, bitneedsR.uint8, 1, &bitpoolPreferenceR); in dualBitAllocation()
45 oneChannelBitAllocation(common, &bitneedsL, 0, bitcountL); in dualBitAllocation()
46 oneChannelBitAllocation(common, &bitneedsR, 1, bitcountR); in dualBitAllocation()
49 static void stereoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in stereoBitAllocation() argument
51 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
60 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
61 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, &bitpoolPreference); in stereoBitAllocation()
65 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation()
72 … excess = allocAdjustedBits(&common->bits.uint8[sbL], bitneeds.uint8[sbL] + bitadjust, excess); in stereoBitAllocation()
74 … excess = allocAdjustedBits(&common->bits.uint8[sbR], bitneeds.uint8[sbR] + bitadjust, excess); in stereoBitAllocation()
80 excess = allocExcessBits(&common->bits.uint8[sbL], excess); in stereoBitAllocation()
85 excess = allocExcessBits(&common->bits.uint8[sbR], excess); in stereoBitAllocation()
99 PRIVATE void OI_SBC_ComputeBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in OI_SBC_ComputeBitAllocation() argument
101 OI_ASSERT(common->frameInfo.bitpool <= OI_SBC_MaxBitpool(&common->frameInfo)); in OI_SBC_ComputeBitAllocation()
102 OI_ASSERT(common->frameInfo.mode < OI_ARRAYSIZE(balloc)); in OI_SBC_ComputeBitAllocation()
108 balloc[common->frameInfo.mode](common); in OI_SBC_ComputeBitAllocation()
119 OI_UINT8 OI_CODEC_SBC_GetMaxBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common) in OI_CODEC_SBC_GetMaxBitneed() argument
121 OI_UINT8 max = common->maxBitneed; in OI_CODEC_SBC_GetMaxBitneed()
123 common->maxBitneed = 0; in OI_CODEC_SBC_GetMaxBitneed()
154 OI_UINT16 OI_CODEC_SBC_CalculatePcmBytes(OI_CODEC_SBC_COMMON_CONTEXT *common) in OI_CODEC_SBC_CalculatePcmBytes() argument
156 …return sizeof(OI_INT16) * common->pcmStride * common->frameInfo.nrof_subbands * common->frameInfo.… in OI_CODEC_SBC_CalculatePcmBytes()