Home
last modified time | relevance | path

Searched refs:maxVal (Results 1 – 3 of 3) sorted by relevance

/hardware/intel/img/hwcomposer/ips/common/
DOverlayPlaneBase.cpp845 int maxVal, icoeff, res; in setCoeffRegs() local
850 maxVal = 1 << mantSize; in setCoeffRegs()
858 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
861 *coeff = (double)icoeff / (double)(4 * maxVal); in setCoeffRegs()
862 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
865 *coeff = (double)icoeff / (double)(2 * maxVal); in setCoeffRegs()
866 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in setCoeffRegs()
869 *coeff = (double)icoeff / (double)(maxVal); in setCoeffRegs()
870 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) { in setCoeffRegs()
873 *coeff = (double)icoeff / (double)(maxVal / 2); in setCoeffRegs()
/hardware/intel/img/psb_video/src/
Dpsb_overlay.c289 int maxVal, icoeff, res; in SetCoeffRegs() local
294 maxVal = 1 << mantSize; in SetCoeffRegs()
302 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
305 *coeff = (double)icoeff / (double)(4 * maxVal); in SetCoeffRegs()
306 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
309 *coeff = (double)icoeff / (double)(2 * maxVal); in SetCoeffRegs()
310 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()
313 *coeff = (double)icoeff / (double)(maxVal); in SetCoeffRegs()
314 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) { in SetCoeffRegs()
317 *coeff = (double)icoeff / (double)(maxVal / 2); in SetCoeffRegs()
/hardware/invensense/60xx/mlsdk/mllite/
Dml.c927 unsigned char maxVal = 0; in inv_set_gyro_calibration() local
966 maxVal = 0; in inv_set_gyro_calibration()
972 maxVal = 1; in inv_set_gyro_calibration()
979 maxVal = 2; in inv_set_gyro_calibration()
983 if (maxVal == 0) { in inv_set_gyro_calibration()
987 } else if (maxVal == 1) { in inv_set_gyro_calibration()