• Home
  • Raw
  • Download

Lines Matching refs:h_sbr_data

120                            HANDLE_SBR_FRAME_DATA h_sbr_data,
126 static void requantizeEnvelopeData(HANDLE_SBR_FRAME_DATA h_sbr_data,
129 HANDLE_SBR_HEADER_DATA hHeaderData, HANDLE_SBR_FRAME_DATA h_sbr_data,
132 HANDLE_SBR_FRAME_DATA h_sbr_data,
135 HANDLE_SBR_FRAME_DATA h_sbr_data,
138 HANDLE_SBR_FRAME_DATA h_sbr_data,
382 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to current data */ in leanSbrConcealment() argument
394 h_sbr_data->ampResolutionCurrentFrame = h_prev_data->ampRes; in leanSbrConcealment()
395 h_sbr_data->coupling = h_prev_data->coupling; in leanSbrConcealment()
397 h_sbr_data->sbr_invf_mode[i] = h_prev_data->sbr_invf_mode[i]; in leanSbrConcealment()
401 h_sbr_data->frameInfo.nEnvelopes = 1; in leanSbrConcealment()
402 h_sbr_data->frameInfo.borders[0] = currentStartPos; in leanSbrConcealment()
403 h_sbr_data->frameInfo.borders[1] = currentStopPos; in leanSbrConcealment()
404 h_sbr_data->frameInfo.freqRes[0] = 1; in leanSbrConcealment()
405 h_sbr_data->frameInfo.tranEnv = -1; /* no transient */ in leanSbrConcealment()
406 h_sbr_data->frameInfo.nNoiseEnvelopes = 1; in leanSbrConcealment()
407 h_sbr_data->frameInfo.bordersNoise[0] = currentStartPos; in leanSbrConcealment()
408 h_sbr_data->frameInfo.bordersNoise[1] = currentStopPos; in leanSbrConcealment()
410 h_sbr_data->nScaleFactors = hHeaderData->freqBandData.nSfb[1]; in leanSbrConcealment()
414 h_sbr_data->domain_vec[0] = 1; in leanSbrConcealment()
416 if (h_sbr_data->coupling == COUPLING_BAL) { in leanSbrConcealment()
428 for (i = 0; i < h_sbr_data->nScaleFactors; i++) { in leanSbrConcealment()
430 h_sbr_data->iEnvelope[i] = -step; in leanSbrConcealment()
432 h_sbr_data->iEnvelope[i] = step; in leanSbrConcealment()
437 h_sbr_data->domain_vec_noise[0] = 1; in leanSbrConcealment()
438 FDKmemclear(h_sbr_data->sbrNoiseFloorLevel, in leanSbrConcealment()
439 sizeof(h_sbr_data->sbrNoiseFloorLevel)); in leanSbrConcealment()
442 FDKmemclear(h_sbr_data->addHarmonics, in leanSbrConcealment()
451 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to current data */ in decodeEnvelope() argument
467 if (h_sbr_data->domain_vec[0] != 0) { in decodeEnvelope()
474 if (h_sbr_data->frameInfo.borders[0] != in decodeEnvelope()
478 if (h_sbr_data->domain_vec[0] == 1) { in decodeEnvelope()
493 leanSbrConcealment(hHeaderData, h_sbr_data, h_prev_data); in decodeEnvelope()
496 deltaToLinearPcmEnvelopeDecoding(hHeaderData, h_sbr_data, h_prev_data); in decodeEnvelope()
501 timeCompensateFirstEnvelope(hHeaderData, h_sbr_data, h_prev_data); in decodeEnvelope()
502 if (h_sbr_data->coupling != h_prev_data->coupling) { in decodeEnvelope()
515 else if (h_sbr_data->coupling == COUPLING_LEVEL && in decodeEnvelope()
520 } else if (h_sbr_data->coupling == COUPLING_BAL) { in decodeEnvelope()
529 deltaToLinearPcmEnvelopeDecoding(hHeaderData, h_sbr_data, h_prev_data); in decodeEnvelope()
531 fFrameError = checkEnvelopeData(hHeaderData, h_sbr_data, h_prev_data); in decodeEnvelope()
537 decodeEnvelope(hHeaderData, h_sbr_data, h_prev_data, otherChannel); in decodeEnvelope()
542 requantizeEnvelopeData(h_sbr_data, h_sbr_data->ampResolutionCurrentFrame); in decodeEnvelope()
553 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to current data */ in checkEnvelopeData() argument
556 FIXP_SGL *iEnvelope = h_sbr_data->iEnvelope; in checkEnvelopeData()
559 FIXP_SGL sbr_max_energy = (h_sbr_data->ampResolutionCurrentFrame == 1) in checkEnvelopeData()
566 for (i = 0; i < h_sbr_data->nScaleFactors; i++) { in checkEnvelopeData()
596 HANDLE_SBR_FRAME_DATA h_sbr_data) /*!< pointer to current data */ in limitNoiseLevels() argument
614 for (i = 0; i < h_sbr_data->frameInfo.nNoiseEnvelopes * nNfb; i++) { in limitNoiseLevels()
615 h_sbr_data->sbrNoiseFloorLevel[i] = in limitNoiseLevels()
616 fixMin(h_sbr_data->sbrNoiseFloorLevel[i], upperLimit); in limitNoiseLevels()
617 h_sbr_data->sbrNoiseFloorLevel[i] = in limitNoiseLevels()
618 fixMax(h_sbr_data->sbrNoiseFloorLevel[i], lowerLimit); in limitNoiseLevels()
627 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to actual data */ in timeCompensateFirstEnvelope() argument
632 FRAME_INFO *pFrameInfo = &h_sbr_data->frameInfo; in timeCompensateFirstEnvelope()
657 h_sbr_data->ampResolutionCurrentFrame - 3); in timeCompensateFirstEnvelope()
662 if (h_sbr_data->coupling != COUPLING_BAL) { in timeCompensateFirstEnvelope()
666 h_sbr_data->iEnvelope[i] = h_sbr_data->iEnvelope[i] + deltaExp; in timeCompensateFirstEnvelope()
690 static void requantizeEnvelopeData(HANDLE_SBR_FRAME_DATA h_sbr_data, in requantizeEnvelopeData() argument
715 for (i = 0; i < h_sbr_data->nScaleFactors; i++) { in requantizeEnvelopeData()
716 exponent = (LONG)h_sbr_data->iEnvelope[i]; in requantizeEnvelopeData()
758 h_sbr_data->iEnvelope[i] = in requantizeEnvelopeData()
769 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to current data */ in deltaToLinearPcmEnvelopeDecoding() argument
775 FIXP_SGL *ptr_nrg = h_sbr_data->iEnvelope; in deltaToLinearPcmEnvelopeDecoding()
780 for (i = 0; i < h_sbr_data->frameInfo.nEnvelopes; i++) { in deltaToLinearPcmEnvelopeDecoding()
781 domain = h_sbr_data->domain_vec[i]; in deltaToLinearPcmEnvelopeDecoding()
782 freqRes = h_sbr_data->frameInfo.freqRes[i]; in deltaToLinearPcmEnvelopeDecoding()
814 HANDLE_SBR_FRAME_DATA h_sbr_data, /*!< pointer to current data */ in decodeNoiseFloorlevels() argument
819 int nNoiseFloorEnvelopes = h_sbr_data->frameInfo.nNoiseEnvelopes; in decodeNoiseFloorlevels()
823 if (h_sbr_data->domain_vec_noise[0] == 0) { in decodeNoiseFloorlevels()
824 FIXP_SGL noiseLevel = h_sbr_data->sbrNoiseFloorLevel[0]; in decodeNoiseFloorlevels()
826 noiseLevel += h_sbr_data->sbrNoiseFloorLevel[i]; in decodeNoiseFloorlevels()
827 h_sbr_data->sbrNoiseFloorLevel[i] = noiseLevel; in decodeNoiseFloorlevels()
831 h_sbr_data->sbrNoiseFloorLevel[i] += h_prev_data->prevNoiseLevel[i]; in decodeNoiseFloorlevels()
839 if (h_sbr_data->domain_vec_noise[1] == 0) { in decodeNoiseFloorlevels()
840 FIXP_SGL noiseLevel = h_sbr_data->sbrNoiseFloorLevel[nNfb]; in decodeNoiseFloorlevels()
842 noiseLevel += h_sbr_data->sbrNoiseFloorLevel[i]; in decodeNoiseFloorlevels()
843 h_sbr_data->sbrNoiseFloorLevel[i] = noiseLevel; in decodeNoiseFloorlevels()
847 h_sbr_data->sbrNoiseFloorLevel[i + nNfb] += in decodeNoiseFloorlevels()
848 h_sbr_data->sbrNoiseFloorLevel[i]; in decodeNoiseFloorlevels()
853 limitNoiseLevels(hHeaderData, h_sbr_data); in decodeNoiseFloorlevels()
858 h_sbr_data->sbrNoiseFloorLevel[i + nNfb * (nNoiseFloorEnvelopes - 1)]; in decodeNoiseFloorlevels()
861 if (!h_sbr_data->coupling) { in decodeNoiseFloorlevels()
865 nf_e = 6 - (LONG)h_sbr_data->sbrNoiseFloorLevel[i] + 1 + NOISE_EXP_OFFSET; in decodeNoiseFloorlevels()
868 h_sbr_data->sbrNoiseFloorLevel[i] = in decodeNoiseFloorlevels()