Lines Matching full:envelope
86 \brief Envelope calculation
88 The envelope adjustor compares the energies present in the transposed
95 in time will be called an <em>envelope</em> here.
97 one or more QMF-subbands are grouped to one SBR-band. An envelope contains
109 Therefore the envelope adjustor has access to the spectral data of the
217 and to a specific envelope where the sine shall start.
219 QMF subband. The value of an entry specifies the envelope where a sine
271 If there was a sine in the last frame, let it continue from the first envelope on
414 \brief Apply spectral envelope to subband samples
422 in #hFrameData containts envelope data which is represented by this format but
439 Then, for each envelope, the following steps are performed:
464 to all timeslots of the current envelope. A short FIR-filter (length 4
465 QMF-timeslots) can be used to smooth the sudden change at the envelope borders.
571 /* Fetch frequency resolution for current envelope: */
582 a specific sfb of an envelope (Nrg could be too high by a factor of
584 - Smoothing can smear high gains of the previous envelope into the current
589 /* This envelope affects timeslots that belong to the output frame */
593 /* This envelope affects timeslots after the output frame */
599 Calculate adjustment factors and apply them for every envelope.
612 UCHAR start_pos = hHeaderData->timeStep * borders[i]; /* Start-position in time (subband sample) for current envelope. */
613 UCHAR stop_pos = hHeaderData->timeStep * borders[i+1]; /* Stop-position in time (subband sample) for current envelope. */
614 UCHAR freq_res = hFrameData->frameInfo.freqRes[i]; /* Frequency resolution for current envelope. */
622 /* If the start-pos of the current envelope equals the stop pos of the current
623 noise envelope, increase the pointer (i.e. choose the next noise-floor).*/
837 Drawback: If the envelope exceeds the frame border, the noise levels
1024 The gains and the noise values of the current envelope are copied into the buffer.
1025 This has to be done at the end of each envelope as the values are required for
1026 a smooth transition to the next envelope. */
1090 will occur in the first envelope (if tranEnv == nEnvelopes). */
1100 \brief Create envelope instance
1107 createSbrEnvelopeCalc (HANDLE_SBR_CALCULATE_ENVELOPE hs, /*!< pointer to envelope instance */
1139 \brief Create envelope instance
1153 \brief Reset envelope instance
1161 resetSbrEnvelopeCalc (HANDLE_SBR_CALCULATE_ENVELOPE hCalEnv) /*!< pointer to envelope instance */
1177 This function is called once for each envelope before adjusting.
1181 FIXP_DBL *nrgGain, /*!< gains for current envelope */
1182 SCHAR *nrgGain_e, /*!< exponents of gains for current envelope */
1225 which has already been envelope adjusted with the last frame.
1330 duration of the current envelope
1338 int start_pos, /*!< First QMF-slot of current envelope */
1339 int next_pos, /*!< Last QMF-slot of current envelope + 1 */
1350 /* Divide by width of envelope later: */
1431 /* Divide by width of envelope and apply frame scale: */
1451 duration of the current envelope.
1459 int start_pos, /*!< First QMF-slot of current envelope */
1460 int next_pos, /*!< Last QMF-slot of current envelope + 1 */
1475 /* Divide by width of envelope later: */
1552 /* Divide by width of envelope: */
1588 /*static*/ void calcSubbandGain(FIXP_DBL nrgRef, /*!< Reference Energy according to envelope data */
1589 SCHAR nrgRef_e, /*!< Reference Energy according to envelope data (exponent) */
1700 FIXP_DBL *nrgRef = nrgs->nrgRef; /*!< Reference Energy according to envelope data */
1701 SCHAR *nrgRef_e = nrgs->nrgRef_e; /*!< Reference Energy according to envelope data (exponent) */
1747 FIXP_DBL *pGain = nrgs->nrgGain; /*!< Gains of current envelope */
1748 FIXP_DBL *pNoiseLevel = nrgs->noiseLevel; /*!< Noise levels of current envelope */
1769 The next multiplication constitutes the actual envelope adjustment
1862 /* The next multiplication constitutes the actual envelope adjustment of the signal. */
1875 /* The next multiplication constitutes the actual envelope adjustment of the signal. */
1900 /* The next multiplication constitutes the actual envelope adjustment of the signal. */
1943 FIXP_SGL smooth_ratio, /*!< Impact of last envelope */
1948 FIXP_DBL *RESTRICT gain = nrgs->nrgGain; /*!< Gains of current envelope */
1949 FIXP_DBL *RESTRICT noiseLevel = nrgs->noiseLevel; /*!< Noise levels of current envelope */
1952 FIXP_DBL *RESTRICT filtBuffer = h_sbr_cal_env->filtBuffer; /*!< Gains of last envelope */
1953 FIXP_DBL *RESTRICT filtBufferNoise = h_sbr_cal_env->filtBufferNoise; /*!< Noise levels of last envelope */
1990 Smoothing: The old envelope has been bufferd and a certain ratio
2007 The next 2 multiplications constitute the actual envelope adjustment