Lines Matching refs:ksg
512 int i, band, ksg, ksg_start = 0; in pvcDecodeTimeSlot() local
525 for (ksg = 0; sg_borders[ksg] < 0; ksg++) { in pvcDecodeTimeSlot()
526 pEsg[ksg] = FL2FXCONST_DBL(-10.0 / (1 << PVC_ESG_EXP)); /* 10*log10(0.1) */ in pvcDecodeTimeSlot()
534 for (ksg = ksg_start; ksg < PVC_NBLOW; ksg++) { in pvcDecodeTimeSlot()
535 for (band = sg_borders[ksg]; band < sg_borders[ksg + 1]; band++) { in pvcDecodeTimeSlot()
537 E[ksg] += (fPow2Div2(qmfR[band]) + fPow2Div2(qmfI[band])) >> 2; in pvcDecodeTimeSlot()
541 for (ksg = ksg_start; ksg < PVC_NBLOW; ksg++) { in pvcDecodeTimeSlot()
542 if (E[ksg] > (FIXP_DBL)0) { in pvcDecodeTimeSlot()
545 FIXP_DBL nrg = CalcLog2(E[ksg], 2 * qmfExponent, &exp_log); in pvcDecodeTimeSlot()
548 pEsg[ksg] = fMax(nrg, FL2FXCONST_DBL(-10.0 / (1 << PVC_ESG_EXP))); in pvcDecodeTimeSlot()
550 pEsg[ksg] = in pvcDecodeTimeSlot()
599 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in pvcDecodeTimeSlot()
603 E_high_exp[ksg] = 0; in pvcDecodeTimeSlot()
612 (SHORT)(SCHAR)pTab1[kb * pPvcDynamicData->nbHigh + ksg] << 8); in pvcDecodeTimeSlot()
622 predictedEsgSlot[ksg] = accu; in pvcDecodeTimeSlot()
623 E_high_exp[ksg] = predCoeff_exp; in pvcDecodeTimeSlot()
630 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in pvcDecodeTimeSlot()
631 int scale = E_high_exp[ksg] - E_high_exp_max; in pvcDecodeTimeSlot()
632 predictedEsgSlot[ksg] = scaleValue(predictedEsgSlot[ksg], scale); in pvcDecodeTimeSlot()
667 int k = 0, ksg; in expandPredEsg() local
670 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in expandPredEsg()
671 for (; k < pPvcDynamicData->sg_offset_high_kx[ksg + 1]; k++) { in expandPredEsg()
672 pOutput[k] = predEsg[ksg]; in expandPredEsg()
676 ksg--; in expandPredEsg()
678 pOutput[k] = predEsg[ksg]; in expandPredEsg()