Lines Matching refs:FIXP_SGL
176 static void mapLowResEnergyVal(FIXP_SGL currVal, /*!< current energy value */ in mapLowResEnergyVal()
177 FIXP_SGL* prevData,/*!< pointer to previous data vector */ in mapLowResEnergyVal()
234 FIXP_SGL tempSfbNrgPrev[MAX_FREQ_COEFFS]; in decodeSbrData()
238 FDKmemcpy (tempSfbNrgPrev, h_prev_data_left->sfb_nrg_prev, MAX_FREQ_COEFFS * sizeof(FIXP_SGL)); in decodeSbrData()
259 … FDKmemcpy (h_prev_data_left->sfb_nrg_prev, tempSfbNrgPrev, MAX_FREQ_COEFFS * sizeof(FIXP_SGL)); in decodeSbrData()
282 FIXP_SGL tempL_m, tempR_m, tempRplus1_m, newL_m, newR_m; in sbr_envelope_unmapping()
289 tempR_m = (FIXP_SGL)((LONG)h_data_right->iEnvelope[i] & MASK_M); in sbr_envelope_unmapping()
293 tempL_m = (FIXP_SGL)((LONG)h_data_left->iEnvelope[i] & MASK_M); in sbr_envelope_unmapping()
307 if (newR_m >= ((FIXP_SGL)MAXVAL_SGL - ROUNDING)) { in sbr_envelope_unmapping()
315 h_data_right->iEnvelope[i] = ((FIXP_SGL)((SHORT)(FIXP_SGL)(newR_m + ROUNDING) & MASK_M)) + in sbr_envelope_unmapping()
316 (FIXP_SGL)((SHORT)(FIXP_SGL)(newR_e + NRG_EXP_OFFSET) & MASK_E); in sbr_envelope_unmapping()
317 h_data_left->iEnvelope[i] = ((FIXP_SGL)((SHORT)(FIXP_SGL)(newL_m + ROUNDING) & MASK_M)) + in sbr_envelope_unmapping()
318 (FIXP_SGL)((SHORT)(FIXP_SGL)(newL_e + NRG_EXP_OFFSET) & MASK_E); in sbr_envelope_unmapping()
346 …h_data_right->sbrNoiseFloorLevel[i] = ((FIXP_SGL)((SHORT)(FIXP_SGL)(newR_m + ROUNDING) & MASK_M)) + in sbr_envelope_unmapping()
347 … (FIXP_SGL)((SHORT)(FIXP_SGL)(newR_e + NOISE_EXP_OFFSET) & MASK_E); in sbr_envelope_unmapping()
348 …h_data_left->sbrNoiseFloorLevel[i] = ((FIXP_SGL)((SHORT)(FIXP_SGL)(newL_m + ROUNDING) & MASK_M)) + in sbr_envelope_unmapping()
349 … (FIXP_SGL)((SHORT)(FIXP_SGL)(newL_e + NOISE_EXP_OFFSET) & MASK_E); in sbr_envelope_unmapping()
368 FIXP_SGL target; /* targeted level for sfb_nrg_prev during fade-down */ in leanSbrConcealment()
369 FIXP_SGL step; /* speed of fade */ in leanSbrConcealment()
400 target = (FIXP_SGL)SBR_ENERGY_PAN_OFFSET; in leanSbrConcealment()
401 step = (FIXP_SGL)DECAY_COUPLING; in leanSbrConcealment()
405 step = (FIXP_SGL)DECAY; in leanSbrConcealment()
442 FIXP_SGL tempSfbNrgPrev[MAX_FREQ_COEFFS]; in decodeEnvelope()
497 h_prev_data->sfb_nrg_prev[i] = (FIXP_SGL)SBR_ENERGY_PAN_OFFSET; in decodeEnvelope()
502 MAX_FREQ_COEFFS * sizeof (FIXP_SGL)); in decodeEnvelope()
512 MAX_FREQ_COEFFS * sizeof (FIXP_SGL)); in decodeEnvelope()
534 FIXP_SGL *iEnvelope = h_sbr_data->iEnvelope; in checkEnvelopeData()
535 FIXP_SGL *sfb_nrg_prev = h_prev_data->sfb_nrg_prev; in checkEnvelopeData()
537 FIXP_SGL sbr_max_energy = in checkEnvelopeData()
584 …#define lowerLimit ((FIXP_SGL)0) /* lowerLimit actually refers to the _highest_ noise energy… in limitNoiseLevels()
585 …#define upperLimit ((FIXP_SGL)35) /* upperLimit actually refers to the _lowest_ noise energy … in limitNoiseLevels()
610 FIXP_SGL deltaExp; in timeCompensateFirstEnvelope()
667 FIXP_SGL mantissa; in requantizeEnvelopeData()
675 static const FIXP_SGL pow2[ENV_EXP_FRACT] = in requantizeEnvelopeData()
707 mantissa = (FIXP_SGL)( (mantissa * pow2[bit]) << 1); in requantizeEnvelopeData()
731 h_sbr_data->iEnvelope[i] = (FIXP_SGL)(((LONG)mantissa & MASK_M) | (exponent & MASK_E)); in requantizeEnvelopeData()
747 FIXP_SGL *sfb_nrg_prev = h_prev_data->sfb_nrg_prev; in deltaToLinearPcmEnvelopeDecoding()
748 FIXP_SGL *ptr_nrg = h_sbr_data->iEnvelope; in deltaToLinearPcmEnvelopeDecoding()
801 FIXP_SGL noiseLevel = h_sbr_data->sbrNoiseFloorLevel[0]; in decodeNoiseFloorlevels()
818 FIXP_SGL noiseLevel = h_sbr_data->sbrNoiseFloorLevel[nNfb]; in decodeNoiseFloorlevels()
847 (FIXP_SGL)( ((LONG)FL2FXCONST_SGL(0.5f)) + /* mantissa */ in decodeNoiseFloorlevels()