Home
last modified time | relevance | path

Searched refs:xRatio (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp385 float xRatio = 1.0; in getActionSafePosition() local
415 xRatio = (float)x/(float)fbWidth; in getActionSafePosition()
421 x = int((xRatio * asW) + asX); in getActionSafePosition()
481 float xRatio = 1.0; in getAspectRatioPosition() local
505 xRatio = (float)(inPos.x/actualWidth); in getAspectRatioPosition()
511 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
527 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
540 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
559 xRatio = (float)outPos.x/fbWidth; in getAspectRatioPosition()
564 outPos.x = uint32_t(xRatio * (float)extW); in getAspectRatioPosition()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp400 float xRatio = 1.0; in getActionSafePosition() local
430 xRatio = (float)x/(float)fbWidth; in getActionSafePosition()
436 x = int((xRatio * asW) + asX); in getActionSafePosition()
468 float xRatio = 1.0; in getAspectRatioPosition() local
492 xRatio = (float)((float)inPos.x/actualWidth); in getAspectRatioPosition()
498 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
514 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
527 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
546 xRatio = (float)outPos.x/fbWidth; in getAspectRatioPosition()
551 outPos.x = uint32_t(xRatio * (float)extW); in getAspectRatioPosition()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp561 float xRatio = 1.0; in getActionSafePosition() local
591 xRatio = (float)x/(float)fbWidth; in getActionSafePosition()
597 x = int((xRatio * asW) + asX); in getActionSafePosition()
629 float xRatio = 1.0; in getAspectRatioPosition() local
653 xRatio = (float)((float)inPos.x/actualWidth); in getAspectRatioPosition()
659 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
675 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
688 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
712 xRatio = (float)outPos.x/fbWidth; in getAspectRatioPosition()
717 outPos.x = uint32_t(xRatio * (float)extW); in getAspectRatioPosition()
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp322 float xRatio = 1.0; in getActionSafePosition() local
346 xRatio = (float)x/fbWidth; in getActionSafePosition()
352 x = (xRatio * asW) + asX; in getActionSafePosition()