Searched refs:destWidth (Results 1 – 6 of 6) sorted by relevance
/hardware/qcom/display/msm8994/libqdutils/ |
D | qd_utils.cpp | 96 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()
|
D | qd_utils.h | 59 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/display/msm8226/libqdutils/ |
D | qd_utils.cpp | 97 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()
|
D | qd_utils.h | 51 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
D | hwc_utils.cpp | 436 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()
|
D | hwc_utils.h | 281 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
|