Home
last modified time | relevance | path

Searched refs:s32NumOfSubBands (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/system/embdrv/sbc/encoder/srce/
Dsbc_enc_bit_alloc_mono.c57 int32_t s32NumOfSubBands = pstrCodecParams->s16NumOfSubBands; in sbc_enc_bit_alloc_mono() local
62 ps16GenBufPtr = ps16BitNeed + s32Ch * s32NumOfSubBands; in sbc_enc_bit_alloc_mono()
68 ps16GenBufPtr = ps16BitNeed + s32Ch * s32NumOfSubBands; in sbc_enc_bit_alloc_mono()
70 ps16GenBufPtr = ps16BitNeed + s32Ch * s32NumOfSubBands; in sbc_enc_bit_alloc_mono()
71 if (s32NumOfSubBands == 4) { in sbc_enc_bit_alloc_mono()
78 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in sbc_enc_bit_alloc_mono()
80 ->as16ScaleFactor[s32Ch * s32NumOfSubBands + s32Sb] == 0) in sbc_enc_bit_alloc_mono()
85 ->as16ScaleFactor[s32Ch * s32NumOfSubBands + s32Sb] - in sbc_enc_bit_alloc_mono()
99 ps16GenBufPtr = ps16BitNeed + s32Ch * s32NumOfSubBands; in sbc_enc_bit_alloc_mono()
100 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in sbc_enc_bit_alloc_mono()
[all …]
Dsbc_enc_bit_alloc_ste.c56 int32_t s32NumOfSubBands = pstrCodecParams->s16NumOfSubBands; in sbc_enc_bit_alloc_ste() local
69 if (s32NumOfSubBands == 4) { in sbc_enc_bit_alloc_ste()
77 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in sbc_enc_bit_alloc_ste()
107 for (s32Sb = 0; s32Sb < 2 * s32NumOfSubBands; s32Sb++) { in sbc_enc_bit_alloc_ste()
128 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in sbc_enc_bit_alloc_ste()
144 ps16GenArrPtr -= 2 * s32NumOfSubBands; in sbc_enc_bit_alloc_ste()
146 while ((s32BitCount > 0) && (s32Sb < s32NumOfSubBands)) { in sbc_enc_bit_alloc_ste()
162 ps16GenBufPtr = ps16BitNeed + s32NumOfSubBands + s32Sb; in sbc_enc_bit_alloc_ste()
163 ps16GenArrPtr = pstrCodecParams->as16Bits + s32NumOfSubBands + s32Sb; in sbc_enc_bit_alloc_ste()
171 while ((s32BitCount > 0) && (s32Sb < s32NumOfSubBands)) { in sbc_enc_bit_alloc_ste()
[all …]
Dsbc_encoder.c54 register int32_t s32NumOfSubBands = pstrEncParams->s16NumOfSubBands; in SBC_Encode() local
57 if (s32NumOfSubBands == 4) in SBC_Encode()
64 s32Ch = pstrEncParams->s16NumOfChannels * s32NumOfSubBands; in SBC_Encode()
89 for (s32Sb = 0; s32Sb < s32NumOfSubBands - 1; s32Sb++) { in SBC_Encode()
96 *pSum = (*SbBuffer + *(SbBuffer + s32NumOfSubBands)) >> 1; in SBC_Encode()
99 *pDiff = (*SbBuffer - *(SbBuffer + s32NumOfSubBands)) >> 1; in SBC_Encode()
114 if ((*ps16ScfL + *(ps16ScfL + s32NumOfSubBands)) > in SBC_Encode()
121 *(ps16ScfL + s32NumOfSubBands) = (int16_t)u32CountDiff; in SBC_Encode()
129 *(SbBuffer + s32NumOfSubBands) = *pDiff; in SBC_Encode()
131 SbBuffer += s32NumOfSubBands << 1; in SBC_Encode()
Dsbc_packing.c67 int32_t s32NumOfSubBands = pstrEncParams->s16NumOfSubBands; in EncPacking() local
103 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in EncPacking()
109 if (s32NumOfSubBands == SUB_BANDS_4) { in EncPacking()
120 s32Sb = s32NumOfChannels * s32NumOfSubBands; in EncPacking()
243 for (s32LoopCountJ = 7; s32LoopCountJ >= (8 - s32NumOfSubBands); in EncPacking()