Lines Matching refs:srcHeight
98 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
101 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
102 srcHeight = destWidth * srcHeight / srcWidth; 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()
116 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
121 rect.bottom = srcHeight + rect.top; in getAspectRatioPosition()