Home
last modified time | relevance | path

Searched refs:destHeight (Results 1 – 6 of 6) sorted by relevance

/hardware/qcom/display/msm8994/libqdutils/
Dqd_utils.cpp96 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
100 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
103 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
104 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
105 srcHeight = destHeight; in getAspectRatioPosition()
108 srcHeight = destHeight; in getAspectRatioPosition()
111 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
113 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
Dqd_utils.h59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
/hardware/qcom/display/msm8226/libqdutils/
Dqd_utils.cpp97 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
101 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
104 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
105 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
106 srcHeight = destHeight; in getAspectRatioPosition()
109 srcHeight = destHeight; in getAspectRatioPosition()
112 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
114 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
Dqd_utils.h51 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp436 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
440 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
443 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
444 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
445 srcHeight = destHeight; in getAspectRatioPosition()
448 srcHeight = destHeight; in getAspectRatioPosition()
451 if (srcHeight > destHeight) srcHeight = destHeight; in getAspectRatioPosition()
453 y = (destHeight - srcHeight) / 2; in getAspectRatioPosition()
Dhwc_utils.h281 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,