Home
last modified time | relevance | path

Searched refs:srcW (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java57 public static void calculateCroppedSrcRect(final int srcW, final int srcH, final int dstW, in calculateCroppedSrcRect() argument
65 final float wScale = (float) srcW / dstW; in calculateCroppedSrcRect()
80 outRect.left = (int) (horizSliceFrac * (srcW - srcCroppedW)); in calculateCroppedSrcRect()
104 public static void calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, in calculateCroppedSrcRect() argument
106 calculateCroppedSrcRect(srcW, srcH, dstW, dstH, Integer.MAX_VALUE, outRect); in calculateCroppedSrcRect()
109 public static void calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, in calculateCroppedSrcRect() argument
115 (float) srcW / dstW, in calculateCroppedSrcRect()
123 outRect.left = (srcW - srcCroppedW) / 2; in calculateCroppedSrcRect()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java224 final int srcW, srcH; // Orientation corrected. in decode() local
226 srcW = mOpts.outWidth; in decode()
229 srcW = mOpts.outHeight; in decode()
236 .min((float) srcW / mDecodeOpts.destW, (float) srcH / mDecodeOpts.destH); in decode()
325 BitmapUtils.calculateCroppedSrcRect(srcW, srcH, mDecodeOpts.destW, in decode()
332 + " srcW/H=" + srcW + "/" + srcH in decode()
339 RectUtils.rotateRectForOrientation(orientation, new Rect(0, 0, srcW, srcH), in decode()