Lines Matching refs:srcWidth
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()
444 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
447 srcWidth = destWidth; in getAspectRatioPosition()
450 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
452 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
455 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
459 rect.right = srcWidth + rect.left; in getAspectRatioPosition()
608 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition() local
611 swap(srcWidth, srcHeight); in calcExtDisplayPosition()
613 getAspectRatioPosition(dstWidth, dstHeight, srcWidth, in calcExtDisplayPosition()
835 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calculateDisplayViewFrame() local
842 swap(srcWidth, srcHeight); in calculateDisplayViewFrame()
845 getAspectRatioPosition(dstWidth, dstHeight, srcWidth, in calculateDisplayViewFrame()