Lines Matching refs:srcWidth
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()
104 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
107 srcWidth = destWidth; in getAspectRatioPosition()
110 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
112 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
115 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
119 rect.right = srcWidth + rect.left; in getAspectRatioPosition()