• Home
  • Raw
  • Download

Lines Matching refs:common

34 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
50 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
59 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
60 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, in stereoBitAllocation()
65 bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, in stereoBitAllocation()
73 excess = allocAdjustedBits(&common->bits.uint8[sbL], in stereoBitAllocation()
76 excess = allocAdjustedBits(&common->bits.uint8[sbR], in stereoBitAllocation()
83 excess = allocExcessBits(&common->bits.uint8[sbL], excess); in stereoBitAllocation()
88 excess = allocExcessBits(&common->bits.uint8[sbR], excess); in stereoBitAllocation()
100 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()
109 balloc[common->frameInfo.mode](common); in OI_SBC_ComputeBitAllocation()
119 uint8_t OI_CODEC_SBC_GetMaxBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common) { in OI_CODEC_SBC_GetMaxBitneed() argument
120 uint8_t max = common->maxBitneed; in OI_CODEC_SBC_GetMaxBitneed()
122 common->maxBitneed = 0; in OI_CODEC_SBC_GetMaxBitneed()
152 uint16_t OI_CODEC_SBC_CalculatePcmBytes(OI_CODEC_SBC_COMMON_CONTEXT* common) { in OI_CODEC_SBC_CalculatePcmBytes() argument
153 return sizeof(int16_t) * common->pcmStride * common->frameInfo.nrof_subbands * in OI_CODEC_SBC_CalculatePcmBytes()
154 common->frameInfo.nrof_blocks; in OI_CODEC_SBC_CalculatePcmBytes()