Home
last modified time | relevance | path

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

/system/bt/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.c53 register int32_t s32NumOfSubBands = pstrEncParams->s16NumOfSubBands; in SBC_Encode() local
56 if (s32NumOfSubBands == 4) in SBC_Encode()
63 s32Ch = pstrEncParams->s16NumOfChannels * s32NumOfSubBands; in SBC_Encode()
88 for (s32Sb = 0; s32Sb < s32NumOfSubBands - 1; s32Sb++) { in SBC_Encode()
95 *pSum = (*SbBuffer + *(SbBuffer + s32NumOfSubBands)) >> 1; in SBC_Encode()
98 *pDiff = (*SbBuffer - *(SbBuffer + s32NumOfSubBands)) >> 1; in SBC_Encode()
113 if ((*ps16ScfL + *(ps16ScfL + s32NumOfSubBands)) > in SBC_Encode()
120 *(ps16ScfL + s32NumOfSubBands) = (int16_t)u32CountDiff; in SBC_Encode()
128 *(SbBuffer + s32NumOfSubBands) = *pDiff; in SBC_Encode()
130 SbBuffer += s32NumOfSubBands << 1; in SBC_Encode()
Dsbc_packing.c71 int32_t s32NumOfSubBands = pstrEncParams->s16NumOfSubBands; in EncPacking() local
96 for (s32Sb = 0; s32Sb < s32NumOfSubBands; s32Sb++) { in EncPacking()
102 if (s32NumOfSubBands == SUB_BANDS_4) { in EncPacking()
113 s32Sb = s32NumOfChannels * s32NumOfSubBands; in EncPacking()
236 for (s32LoopCountJ = 7; s32LoopCountJ >= (8 - s32NumOfSubBands); in EncPacking()