Lines Matching refs:scaleCur
343 INT scaleCur, scalePrev, commonScale; in extractBBEnv() local
421 scaleCur = in extractBBEnv()
427 if ((scaleCur < 0) && (scalePrev < 0)) { in extractBBEnv()
428 scaleCur = -scaleCur; in extractBBEnv()
431 partNrg[pb] = ((fMultDiv2(alpha1, slotNrg[pb]) << scaleCur) + in extractBBEnv()
437 } else if ((scaleCur >= 0) && (scalePrev >= 0)) { in extractBBEnv()
439 partNrg[pb] = ((fMultDiv2(alpha1, slotNrg[pb]) >> scaleCur) + in extractBBEnv()
445 } else if ((scaleCur < 0) && (scalePrev >= 0)) { in extractBBEnv()
446 scaleCur = -scaleCur; in extractBBEnv()
448 partNrg[pb] = ((fMultDiv2(alpha1, slotNrg[pb]) << scaleCur) + in extractBBEnv()
457 partNrg[pb] = ((fMultDiv2(alpha1, slotNrg[pb]) >> scaleCur) + in extractBBEnv()
476 scaleCur = fixMin(commonScale - frameNrgSF + SF_ALPHA1, DFRACT_BITS - 1); in extractBBEnv()
479 frameNrg = ((fMultDiv2(alpha1, frameNrg) >> scaleCur) + in extractBBEnv()
531 scaleCur = fixMin(commonScale - envSF + SF_BETA1, DFRACT_BITS - 1); in extractBBEnv()
533 normNrg = ((fMultDiv2(beta1, env) >> scaleCur) + in extractBBEnv()