Home
last modified time | relevance | path

Searched refs:scale_factor (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Ddequant.c182 INLINE float dequant_float(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) { in dequant_float() argument
183 float result = (1 << (scale_factor + 1)) * in dequant_float()
200 INLINE int32_t OI_SBC_Dequant(uint32_t raw, OI_UINT scale_factor, in OI_SBC_Dequant() argument
205 OI_ASSERT(scale_factor <= 15); in OI_SBC_Dequant()
221 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant()
229 return result >> (15 - scale_factor); in OI_SBC_Dequant()
239 INLINE int32_t OI_SBC_Dequant_Unscaled(uint32_t raw, OI_UINT scale_factor, in OI_SBC_Dequant_Unscaled() argument
244 OI_ASSERT(scale_factor <= 15); in OI_SBC_Dequant_Unscaled()
252 return SCALE(result, 24 - scale_factor); in OI_SBC_Dequant_Unscaled()
259 return SCALE(result, 24 - scale_factor); in OI_SBC_Dequant_Unscaled()
Ddecoder-private.c133 int8_t* scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors() local
145 *scale_factor++ = HIGH(f = *b++); in OI_SBC_ReadScalefactors()
146 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors()
160 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors()
161 *scale_factor++ = HIGH(f = *b++); in OI_SBC_ReadScalefactors()
163 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors()
172 *scale_factor++ = OI_BITSTREAM_ReadUINT4Aligned(bs); in OI_SBC_ReadScalefactors()
192 OI_INT sf = common->scale_factor[n]; in OI_SBC_ReadSamples()
Dbitalloc.c136 int8_t* scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed() local
143 OI_INT bits = scale_factor[sb]; in computeBitneed()
161 OI_INT bits = scale_factor[sb]; in computeBitneed()
Dreadsamplesjoint.inc69 int8_t *sf_array = &common->scale_factor[0];
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/
Doi_codec_sbc.h199 int8_t scale_factor[SBC_MAX_CHANNELS * SBC_MAX_BANDS]; member
Doi_codec_sbc_private.h216 INLINE int32_t OI_SBC_Dequant(uint32_t raw, OI_UINT scale_factor, OI_UINT bits);