Lines Matching refs:srcWidth
97 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth, in getAspectRatioPosition() argument
101 if (srcWidth * destHeight > destWidth * srcHeight) { in getAspectRatioPosition()
102 srcHeight = destWidth * srcHeight / srcWidth; in getAspectRatioPosition()
103 srcWidth = destWidth; in getAspectRatioPosition()
104 } else if (srcWidth * destHeight < destWidth * srcHeight) { in getAspectRatioPosition()
105 srcWidth = destHeight * srcWidth / srcHeight; in getAspectRatioPosition()
108 srcWidth = destWidth; in getAspectRatioPosition()
111 if (srcWidth > destWidth) srcWidth = destWidth; in getAspectRatioPosition()
113 x = (destWidth - srcWidth) / 2; in getAspectRatioPosition()
116 __FUNCTION__, x, y, srcWidth , srcHeight); in getAspectRatioPosition()
120 rect.right = srcWidth + rect.left; in getAspectRatioPosition()