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] += in pvcDecodeTimeSlot()
542 for (ksg = ksg_start; ksg < PVC_NBLOW; ksg++) { in pvcDecodeTimeSlot()
543 if (E[ksg] > (FIXP_DBL)0) { in pvcDecodeTimeSlot()
546 FIXP_DBL nrg = CalcLog2(E[ksg], 2 * qmfExponent + 2, &exp_log); in pvcDecodeTimeSlot()
549 pEsg[ksg] = fMax(nrg, FL2FXCONST_DBL(-10.0 / (1 << PVC_ESG_EXP))); in pvcDecodeTimeSlot()
551 pEsg[ksg] = in pvcDecodeTimeSlot()
600 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in pvcDecodeTimeSlot()
604 E_high_exp[ksg] = 0; in pvcDecodeTimeSlot()
613 (SHORT)(SCHAR)pTab1[kb * pPvcDynamicData->nbHigh + ksg] << 8); in pvcDecodeTimeSlot()
623 predictedEsgSlot[ksg] = accu; in pvcDecodeTimeSlot()
624 E_high_exp[ksg] = predCoeff_exp; in pvcDecodeTimeSlot()
631 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in pvcDecodeTimeSlot()
632 int scale = fMin(E_high_exp_max - E_high_exp[ksg], DFRACT_BITS - 1); in pvcDecodeTimeSlot()
633 predictedEsgSlot[ksg] = predictedEsgSlot[ksg] >> scale; in pvcDecodeTimeSlot()
668 int k = 0, ksg; in expandPredEsg() local
671 for (ksg = 0; ksg < pPvcDynamicData->nbHigh; ksg++) { in expandPredEsg()
672 for (; k < pPvcDynamicData->sg_offset_high_kx[ksg + 1]; k++) { in expandPredEsg()
673 pOutput[k] = predEsg[ksg]; in expandPredEsg()
677 ksg--; in expandPredEsg()
679 pOutput[k] = predEsg[ksg]; in expandPredEsg()