Home
last modified time | relevance | path

Searched refs:icoeff (Results 1 – 2 of 2) sorted by relevance

/hardware/intel/img/hwcomposer/ips/common/
DOverlayPlaneBase.cpp845 int maxVal, icoeff, res; in setCoeffRegs() local
858 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
860 pCoeff[pos].mantissa = icoeff << res; in setCoeffRegs()
861 *coeff = (double)icoeff / (double)(4 * maxVal); in setCoeffRegs()
862 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
864 pCoeff[pos].mantissa = icoeff << res; in setCoeffRegs()
865 *coeff = (double)icoeff / (double)(2 * maxVal); in setCoeffRegs()
866 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
868 pCoeff[pos].mantissa = icoeff << res; in setCoeffRegs()
869 *coeff = (double)icoeff / (double)(maxVal); in setCoeffRegs()
[all …]
/hardware/intel/img/psb_video/src/
Dpsb_overlay.c289 int maxVal, icoeff, res; in SetCoeffRegs() local
302 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
304 pCoeff[pos].mantissa = icoeff << res; in SetCoeffRegs()
305 *coeff = (double)icoeff / (double)(4 * maxVal); in SetCoeffRegs()
306 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
308 pCoeff[pos].mantissa = icoeff << res; in SetCoeffRegs()
309 *coeff = (double)icoeff / (double)(2 * maxVal); in SetCoeffRegs()
310 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
312 pCoeff[pos].mantissa = icoeff << res; in SetCoeffRegs()
313 *coeff = (double)icoeff / (double)(maxVal); in SetCoeffRegs()
[all …]