Searched refs:srcH (Results 1 – 2 of 2) sorted by relevance
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 57 public static void calculateCroppedSrcRect(final int srcW, final int srcH, final int dstW, in calculateCroppedSrcRect() argument 66 final float hScale = (float) srcH / dstH; in calculateCroppedSrcRect() 78 final int srcHalfSliceH = Math.min(srcCroppedSliceH, srcH) / 2; in calculateCroppedSrcRect() 86 final int maxCenterV = srcH - srcHalfSliceH; in calculateCroppedSrcRect() 87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); in calculateCroppedSrcRect() 90 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH); 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 116 (float) srcH / dstH); in calculateCroppedSrcRect() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | DecodeTask.java | 224 final int srcW, srcH; // Orientation corrected. in decode() local 227 srcH = mOpts.outHeight; in decode() 230 srcH = mOpts.outWidth; 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()
|