Searched refs:scale_factor (Results 1 – 6 of 6) sorted by relevance
/system/bt/embdrv/sbc/decoder/srce/ |
D | dequant.c | 125 INLINE float dequant_float(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in dequant_float() argument 127 float result = (1 << (scale_factor+1)) * ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float() 144 INLINE OI_INT32 OI_SBC_Dequant(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant() argument 149 OI_ASSERT(scale_factor <= 15); in OI_SBC_Dequant() 165 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant() 173 return result >> (15 - scale_factor); in OI_SBC_Dequant() 183 INLINE OI_INT32 OI_SBC_Dequant_Unscaled(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant_Unscaled() argument 188 OI_ASSERT(scale_factor <= 15); in OI_SBC_Dequant_Unscaled() 197 return SCALE(result, 24 - scale_factor); in OI_SBC_Dequant_Unscaled() 205 return SCALE(result, 24 - scale_factor); in OI_SBC_Dequant_Unscaled()
|
D | decoder-private.c | 139 OI_INT8 *scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors() local 150 *scale_factor++ = HIGH(f = *b++); in OI_SBC_ReadScalefactors() 151 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors() 163 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors() 164 *scale_factor++ = HIGH(f = *b++); in OI_SBC_ReadScalefactors() 166 *scale_factor++ = LOW(f); in OI_SBC_ReadScalefactors() 173 *scale_factor++ = OI_BITSTREAM_ReadUINT4Aligned(bs); in OI_SBC_ReadScalefactors() 191 OI_UINT32 sf_by4 = ((OI_UINT32*)common->scale_factor)[i]; in OI_SBC_ReadSamples()
|
D | bitalloc.c | 139 OI_INT8 *scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed() local 146 OI_INT bits = scale_factor[sb]; in computeBitneed() 163 OI_INT bits = scale_factor[sb]; in computeBitneed()
|
D | readsamplesjoint.inc | 68 OI_INT8 *sf_array = &common->scale_factor[0];
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc.h | 157 OI_INT8 scale_factor[SBC_MAX_CHANNELS*SBC_MAX_BANDS]; member
|
D | oi_codec_sbc_private.h | 214 INLINE OI_INT32 OI_SBC_Dequant(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits);
|