Home
last modified time | relevance | path

Searched refs:destWidth (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()
101 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
102 srcWidth = destWidth; in getAspectRatioPosition()
103 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
107 srcWidth = destWidth; in getAspectRatioPosition()
110 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
112 x = (destWidth - srcWidth) / 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()
102 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
103 srcWidth = destWidth; in getAspectRatioPosition()
104 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
108 srcWidth = destWidth; in getAspectRatioPosition()
111 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
113 x = (destWidth - srcWidth) / 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()
441 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
442 srcWidth = destWidth; in getAspectRatioPosition()
443 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
447 srcWidth = destWidth; in getAspectRatioPosition()
450 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
452 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
Dhwc_utils.h281 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,