Lines Matching refs:FIXP_DBL
133 FIXP_DBL x1;
134 FIXP_DBL x2;
135 FIXP_DBL y1;
136 FIXP_DBL y2;
143 FIXP_DBL maxBoostThr[2]; /*!< Max boost threshold. */
144 FIXP_DBL boostThr[2]; /*!< Boost threshold. */
145 FIXP_DBL earlyCutThr[2]; /*!< Early cut threshold. */
146 FIXP_DBL cutThr[2]; /*!< Cut threshold. */
147 FIXP_DBL maxCutThr[2]; /*!< Max cut threshold. */
149 FIXP_DBL boostFac[2]; /*!< Precalculated factor for boost compression. */
150 FIXP_DBL
152 FIXP_DBL cutFac[2]; /*!< Precalculated factor for cut compression. */
154 FIXP_DBL maxBoost[2]; /*!< Maximum boost. */
155 FIXP_DBL maxCut[2]; /*!< Maximum cut. */
156 FIXP_DBL maxEarlyCut[2]; /*!< Maximum early cut. */
158 FIXP_DBL fastAttack[2]; /*!< Fast attack coefficient. */
159 FIXP_DBL fastDecay[2]; /*!< Fast release coefficient. */
160 FIXP_DBL slowAttack[2]; /*!< Slow attack coefficient. */
161 FIXP_DBL slowDecay[2]; /*!< Slow release coefficient. */
164 FIXP_DBL attackThr[2]; /*!< Slow/fast attack threshold. */
165 FIXP_DBL decayThr[2]; /*!< Slow/fast release threshold. */
179 FIXP_DBL smoothLevel[2]; /*!< level smoothing states */
180 FIXP_DBL smoothGain[2]; /*!< gain smoothing states */
183 FIXP_DBL limGain[2]; /*!< limiter gain */
184 FIXP_DBL limDecay; /*!< limiter decay (linear) */
185 FIXP_DBL prevPeak[2]; /*!< max peak of previous block (stereo/mono)*/
196 static const FIXP_DBL tabMaxBoostThr[] = {
197 (FIXP_DBL)(-(43 << METADATA_FRACT_BITS)),
198 (FIXP_DBL)(-(53 << METADATA_FRACT_BITS)),
199 (FIXP_DBL)(-(55 << METADATA_FRACT_BITS)),
200 (FIXP_DBL)(-(65 << METADATA_FRACT_BITS)),
201 (FIXP_DBL)(-(50 << METADATA_FRACT_BITS)),
202 (FIXP_DBL)(-(40 << METADATA_FRACT_BITS))};
203 static const FIXP_DBL tabBoostThr[] = {
204 (FIXP_DBL)(-(31 << METADATA_FRACT_BITS)),
205 (FIXP_DBL)(-(41 << METADATA_FRACT_BITS)),
206 (FIXP_DBL)(-(31 << METADATA_FRACT_BITS)),
207 (FIXP_DBL)(-(41 << METADATA_FRACT_BITS)),
208 (FIXP_DBL)(-(31 << METADATA_FRACT_BITS)),
209 (FIXP_DBL)(-(31 << METADATA_FRACT_BITS))};
210 static const FIXP_DBL tabEarlyCutThr[] = {
211 (FIXP_DBL)(-(26 << METADATA_FRACT_BITS)),
212 (FIXP_DBL)(-(21 << METADATA_FRACT_BITS)),
213 (FIXP_DBL)(-(26 << METADATA_FRACT_BITS)),
214 (FIXP_DBL)(-(21 << METADATA_FRACT_BITS)),
215 (FIXP_DBL)(-(26 << METADATA_FRACT_BITS)),
216 (FIXP_DBL)(-(20 << METADATA_FRACT_BITS))};
217 static const FIXP_DBL tabCutThr[] = {(FIXP_DBL)(-(16 << METADATA_FRACT_BITS)),
218 (FIXP_DBL)(-(11 << METADATA_FRACT_BITS)),
219 (FIXP_DBL)(-(16 << METADATA_FRACT_BITS)),
220 (FIXP_DBL)(-(21 << METADATA_FRACT_BITS)),
221 (FIXP_DBL)(-(16 << METADATA_FRACT_BITS)),
222 (FIXP_DBL)(-(10 << METADATA_FRACT_BITS))};
223 static const FIXP_DBL tabMaxCutThr[] = {
224 (FIXP_DBL)(4 << METADATA_FRACT_BITS), (FIXP_DBL)(9 << METADATA_FRACT_BITS),
225 (FIXP_DBL)(4 << METADATA_FRACT_BITS), (FIXP_DBL)(9 << METADATA_FRACT_BITS),
226 (FIXP_DBL)(4 << METADATA_FRACT_BITS), (FIXP_DBL)(4 << METADATA_FRACT_BITS)};
227 static const FIXP_DBL tabBoostRatio[] = {
231 static const FIXP_DBL tabEarlyCutRatio[] = {
235 static const FIXP_DBL tabCutRatio[] = {
239 static const FIXP_DBL tabMaxBoost[] = {(FIXP_DBL)(6 << METADATA_FRACT_BITS),
240 (FIXP_DBL)(6 << METADATA_FRACT_BITS),
241 (FIXP_DBL)(12 << METADATA_FRACT_BITS),
242 (FIXP_DBL)(12 << METADATA_FRACT_BITS),
243 (FIXP_DBL)(15 << METADATA_FRACT_BITS),
244 (FIXP_DBL)(15 << METADATA_FRACT_BITS)};
245 static const FIXP_DBL tabMaxCut[] = {(FIXP_DBL)(24 << METADATA_FRACT_BITS),
246 (FIXP_DBL)(24 << METADATA_FRACT_BITS),
247 (FIXP_DBL)(24 << METADATA_FRACT_BITS),
248 (FIXP_DBL)(15 << METADATA_FRACT_BITS),
249 (FIXP_DBL)(24 << METADATA_FRACT_BITS),
250 (FIXP_DBL)(24 << METADATA_FRACT_BITS)};
251 static const FIXP_DBL tabFastAttack[] = {
258 static const FIXP_DBL tabFastDecay[] = {
265 static const FIXP_DBL tabSlowAttack[] = {
272 static const FIXP_DBL tabSlowDecay[] = {
282 static const FIXP_DBL tabAttackThr[] = {(FIXP_DBL)(15 << METADATA_FRACT_BITS),
283 (FIXP_DBL)(15 << METADATA_FRACT_BITS),
284 (FIXP_DBL)(15 << METADATA_FRACT_BITS),
285 (FIXP_DBL)(15 << METADATA_FRACT_BITS),
286 (FIXP_DBL)(10 << METADATA_FRACT_BITS),
287 (FIXP_DBL)(0 << METADATA_FRACT_BITS)};
288 static const FIXP_DBL tabDecayThr[] = {(FIXP_DBL)(20 << METADATA_FRACT_BITS),
289 (FIXP_DBL)(20 << METADATA_FRACT_BITS),
290 (FIXP_DBL)(20 << METADATA_FRACT_BITS),
291 (FIXP_DBL)(20 << METADATA_FRACT_BITS),
292 (FIXP_DBL)(10 << METADATA_FRACT_BITS),
293 (FIXP_DBL)(0 << METADATA_FRACT_BITS)};
298 static const FIXP_DBL b0 = FL2FXCONST_DBL(0.53050662f); /* b1 = 0, b2 = -b0 */
299 static const FIXP_DBL a1 = FL2FXCONST_DBL(-0.95237983f),
331 static void fixpAdd(const FIXP_DBL value1, const int q1, in fixpAdd()
332 FIXP_DBL* const pValue2, int* const pQ2) { in fixpAdd()
343 *pQ2 = (*pValue2 != (FIXP_DBL)0) ? resultScale : DFRACT_BITS - 1; in fixpAdd()
355 static FIXP_DBL tc2Coeff(const FIXP_DBL t, const INT sampleRate, in tc2Coeff()
357 FIXP_DBL sampleRateFract; in tc2Coeff()
358 FIXP_DBL blockLengthFract; in tc2Coeff()
359 FIXP_DBL f, product; in tc2Coeff()
360 FIXP_DBL exponent, result; in tc2Coeff()
365 (FIXP_DBL)(sampleRate << (DFRACT_BITS - 1 - METADATA_LINT_BITS)); in tc2Coeff()
367 (FIXP_DBL)(blockLength << (DFRACT_BITS - 1 - METADATA_LINT_BITS)); in tc2Coeff()
388 result = (FIXP_DBL)MAXVAL_DBL - scaleValue(result, e_res); in tc2Coeff()
394 const FIXP_DBL clev, const FIXP_DBL slev, in findPeakLevels()
395 const FIXP_DBL ext_leva, const FIXP_DBL ext_levb, in findPeakLevels()
396 const FIXP_DBL lfe_lev, const FIXP_DBL dmxGain5, in findPeakLevels()
397 const FIXP_DBL dmxGain2, FIXP_DBL peak[2]) { in findPeakLevels()
399 FIXP_DBL tmp = FL2FXCONST_DBL(0.f); in findPeakLevels()
1163 (FIXP_DBL)(-(135 << METADATA_FRACT_BITS)); in FDK_DRC_Generator_Initialize()
1250 const INT comp_TargetRefLevel, const FIXP_DBL clev, in FDK_DRC_Generator_Calc()
1251 const FIXP_DBL slev, const FIXP_DBL ext_leva, in FDK_DRC_Generator_Calc()
1252 const FIXP_DBL ext_levb, const FIXP_DBL lfe_lev, in FDK_DRC_Generator_Calc()
1256 FIXP_DBL peak[2]; in FDK_DRC_Generator_Calc()
1263 FIXP_DBL level_b = FL2FXCONST_DBL(0.f); in FDK_DRC_Generator_Calc()
1271 FIXP_DBL x1, x2, y, y1, y2; in FDK_DRC_Generator_Calc()
1295 FIXP_DBL accu = FL2FXCONST_DBL(0.f); in FDK_DRC_Generator_Calc()
1300 FIXP_DBL x = in FDK_DRC_Generator_Calc()
1340 FIXP_DBL accu = FL2FXCONST_DBL(0.f); in FDK_DRC_Generator_Calc()
1361 FIXP_DBL ldLevel = in FDK_DRC_Generator_Calc()
1363 (FIXP_DBL)((level_e - 12) << (DFRACT_BITS - 1 - LD_DATA_SHIFT)) - in FDK_DRC_Generator_Calc()
1364 CalcLdData((FIXP_DBL)(drcComp->blockLength << (DFRACT_BITS - 1 - 12))); in FDK_DRC_Generator_Calc()
1384 FIXP_DBL level = fMult( in FDK_DRC_Generator_Calc()
1385 (FIXP_DBL)(10 << (METADATA_FRACT_BITS + LD_DATA_SHIFT)), in FDK_DRC_Generator_Calc()
1387 (FIXP_DBL)(FL2FXCONST_DBL(0.3f) >> LD_DATA_SHIFT)); in FDK_DRC_Generator_Calc()
1392 level -= ((FIXP_DBL)(dialnorm << (METADATA_FRACT_BITS - 16)) + in FDK_DRC_Generator_Calc()
1393 (FIXP_DBL)(31 << METADATA_FRACT_BITS)); in FDK_DRC_Generator_Calc()
1400 FIXP_DBL gain, alpha, lvl2smthlvl; in FDK_DRC_Generator_Calc()
1452 FIXP_DBL accu; in FDK_DRC_Generator_Calc()
1456 accu = fMult(((FIXP_DBL)MAXVAL_DBL - alpha), drcComp->smoothLevel[i]); in FDK_DRC_Generator_Calc()
1462 accu = fMult(((FIXP_DBL)MAXVAL_DBL - alpha), drcComp->smoothGain[i]); in FDK_DRC_Generator_Calc()
1487 (FIXP_DBL)((LONG)(dmxGain5) << (METADATA_FRACT_BITS - 16)), in FDK_DRC_Generator_Calc()
1488 (FIXP_DBL)((LONG)(dmxGain2) << (METADATA_FRACT_BITS - 16)), in FDK_DRC_Generator_Calc()
1492 FIXP_DBL tmp = drcComp->prevPeak[i]; in FDK_DRC_Generator_Calc()
1500 FIXP_DBL ld_peak = in FDK_DRC_Generator_Calc()
1502 (FIXP_DBL)((LONG)DOWNMIX_SHIFT << (DFRACT_BITS - 1 - LD_DATA_SHIFT)); in FDK_DRC_Generator_Calc()
1524 (FIXP_DBL)(10 << (METADATA_FRACT_BITS + LD_DATA_SHIFT)), in FDK_DRC_Generator_Calc()
1532 peak[0] -= (FIXP_DBL)((dialnorm - drc_TargetRefLevel) in FDK_DRC_Generator_Calc()
1540 (FIXP_DBL)((dialnorm - comp_TargetRefLevel) in FDK_DRC_Generator_Calc()
1555 FIXP_DBL tmp; in FDK_DRC_Generator_Calc()