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