• Home
  • Raw
  • Download

Lines Matching refs:ch

281   int ch;  in subbandTPInit()  local
283 for (ch = 0; ch < MAX_OUTPUT_CHANNELS; ch++) { in subbandTPInit()
284 self->prev_tp_scale[ch] = FL2FXCONST_DBL(1.0f / (1 << SF_SCALE)); in subbandTPInit()
285 self->oldWetEnerLD64[ch] = FL2FXCONST_DBL(0.0); in subbandTPInit()
287 for (ch = 0; ch < MAX_INPUT_CHANNELS; ch++) { in subbandTPInit()
288 self->oldDryEnerLD64[ch] = FL2FXCONST_DBL(0.0); in subbandTPInit()
327 int n, ch, cplxBands, cplxHybBands; in subbandTPApply() local
352 for (ch = 0; ch < self->numOutputChannels; ch++) { in subbandTPApply()
353 qmfOutputRealDry[ch] = &self->hybOutputRealDry__FDK[ch][7]; in subbandTPApply()
354 qmfOutputRealWet[ch] = &self->hybOutputRealWet__FDK[ch][7]; in subbandTPApply()
355 qmfOutputImagDry[ch] = &self->hybOutputImagDry__FDK[ch][7]; in subbandTPApply()
356 qmfOutputImagWet[ch] = &self->hybOutputImagWet__FDK[ch][7]; in subbandTPApply()
368 for (ch = 0; ch < self->numInputChannels; ch++) { in subbandTPApply()
369 hStpDec->oldDryEnerLD64[ch] = in subbandTPApply()
370 CalcLdData(fAddSaturate(hStpDec->runDryEner[ch], ABS_THR__FDK)); in subbandTPApply()
372 for (ch = 0; ch < self->numOutputChannels; ch++) { in subbandTPApply()
374 hStpDec->oldWetEnerLD64[ch] = in subbandTPApply()
375 CalcLdData(fAddSaturate(hStpDec->runWetEner[ch], ABS_THR__FDK)); in subbandTPApply()
377 hStpDec->oldWetEnerLD64[ch] = in subbandTPApply()
378 CalcLdData(fAddSaturate(hStpDec->runWetEner[ch], ABS_THR2__FDK)); in subbandTPApply()
431 for (ch = 0; ch < self->numInputChannels; ch++) { in subbandTPApply()
432 if (self->treeConfig != TREE_212) DryEner[ch] = DryEner[ch] << nrgScale; in subbandTPApply()
433 hStpDec->runDryEner[ch] = in subbandTPApply()
434 fMult(STP_LPF_COEFF1__FDK, hStpDec->runDryEner[ch]) + in subbandTPApply()
435 fMult(ONE_MINUS_STP_LPF_COEFF1__FDK, DryEner[ch]); in subbandTPApply()
436 if (DryEner[ch] != FL2FXCONST_DBL(0.0f)) { in subbandTPApply()
437 DryEnerLD64[ch] = in subbandTPApply()
438 fixMax((CalcLdData(DryEner[ch]) - hStpDec->oldDryEnerLD64[ch]), in subbandTPApply()
441 DryEnerLD64[ch] = FL2FXCONST_DBL(-0.484375f); in subbandTPApply()
444 for (; ch < MAX_INPUT_CHANNELS; ch++) { in subbandTPApply()
445 DryEnerLD64[ch] = FL2FXCONST_DBL(-0.484375f); in subbandTPApply()
450 for (ch = 0; ch < self->numOutputChannels; ch++) { in subbandTPApply()
451 if (skipChannels[ch]) { in subbandTPApply()
460 sMin = fMin(getScalefactor(&qmfOutputRealWet[ch][BP_GF_START], in subbandTPApply()
462 getScalefactor(&qmfOutputImagWet[ch][BP_GF_START], in subbandTPApply()
467 (fMultDiv2(fPow2Div2(scaleValue(qmfOutputRealWet[ch][n], sMin)), in subbandTPApply()
469 fMultDiv2(fPow2Div2(scaleValue(qmfOutputImagWet[ch][n], sMin)), in subbandTPApply()
480 hStpDec->runWetEner[ch] = in subbandTPApply()
481 fMult(STP_LPF_COEFF1__FDK, hStpDec->runWetEner[ch]) + in subbandTPApply()
485 WetEnerLD64[ch] = FL2FXCONST_DBL(-0.484375f); in subbandTPApply()
487 WetEnerLD64[ch] = in subbandTPApply()
488 fixMax((CalcLdData(WetEnerX) - hStpDec->oldWetEnerLD64[ch]), in subbandTPApply()
505 for (ch = 0; ch < self->numOutputChannels; ch++) { in subbandTPApply()
507 scale[ch] = damp + fMult(FL2FXCONST_DBL(0.9f), scale[ch]); in subbandTPApply()
510 if (scale[ch] > STP_SCALE_LIMIT__FDK) { in subbandTPApply()
511 scale[ch] = STP_SCALE_LIMIT__FDK; in subbandTPApply()
513 if (scale[ch] < ONE_DIV_STP_SCALE_LIMIT__FDK) { in subbandTPApply()
514 scale[ch] = ONE_DIV_STP_SCALE_LIMIT__FDK; in subbandTPApply()
518 scale[ch] = in subbandTPApply()
519 fMult(STP_LPF_COEFF2__FDK, scale[ch]) + in subbandTPApply()
520 fMult(ONE_MINUS_STP_LPF_COEFF2__FDK, hStpDec->prev_tp_scale[ch]); in subbandTPApply()
521 hStpDec->prev_tp_scale[ch] = scale[ch]; in subbandTPApply()
528 for (ch = 0; ch < self->numOutputChannels; ch++) { in subbandTPApply()
531 no_scaling = !frame->tempShapeEnableChannelSTP[channlIndex[ch]]; in subbandTPApply()
534 &self->hybOutputRealDry__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
535 &self->hybOutputImagDry__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
536 &self->hybOutputRealWet__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
537 &self->hybOutputImagWet__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
542 scaleX = scale[ch]; in subbandTPApply()
547 &self->hybOutputRealDry__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
548 &self->hybOutputImagDry__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
549 &self->hybOutputRealWet__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
550 &self->hybOutputImagWet__FDK[ch][self->tp_hybBandBorder], in subbandTPApply()
556 &self->hybOutputRealDry__FDK[ch][HP_SIZE - 3 + 10 - 1], in subbandTPApply()
557 &self->hybOutputImagDry__FDK[ch][HP_SIZE - 3 + 10 - 1], in subbandTPApply()
558 &self->hybOutputRealWet__FDK[ch][HP_SIZE - 3 + 10 - 1], in subbandTPApply()
559 &self->hybOutputImagWet__FDK[ch][HP_SIZE - 3 + 10 - 1], scaleX, in subbandTPApply()