Lines Matching refs:srcHeight
437 int srcHeight, hwc_rect_t& rect) { in getAspectRatioPosition() argument
440 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
441 srcHeight = destWidth * srcHeight / srcWidth; 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()
455 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
460 rect.bottom = srcHeight + rect.top; in getAspectRatioPosition()
609 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calcExtDisplayPosition() local
611 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
614 srcHeight, displayFrame); in calcExtDisplayPosition()
836 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calculateDisplayViewFrame() local
842 swap(srcWidth, srcHeight); in calculateDisplayViewFrame()
846 srcHeight, outRect); in calculateDisplayViewFrame()