Home
last modified time | relevance | path

Searched refs:srcHeight (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DRendererUtils.java125 private static float[] getFitVertices(int srcWidth, int srcHeight, int dstWidth, in getFitVertices() argument
127 float srcAspectRatio = ((float) srcWidth) / srcHeight; in getFitVertices()
148 public static void setRenderToFit(RenderContext context, int srcWidth, int srcHeight, in setRenderToFit() argument
151 getFitVertices(srcWidth, srcHeight, dstWidth, dstHeight)); in setRenderToFit()
154 public static void setRenderToRotate(RenderContext context, int srcWidth, int srcHeight, in setRenderToRotate() argument
161 float cosHeight = cosTheta * srcHeight; in setRenderToRotate()
162 float sinHeight = sinTheta * srcHeight; in setRenderToRotate()
185 public static void setRenderToFlip(RenderContext context, int srcWidth, int srcHeight, in setRenderToFlip() argument
188 float[] base = getFitVertices(srcWidth, srcHeight, dstWidth, dstHeight); in setRenderToFlip()
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java372 int srcHeight = bitmap.getHeight();
374 (float) maxLength / srcWidth, (float) maxLength / srcHeight);
492 int srcHeight = bitmap.getHeight();
494 (float) targetSize / srcWidth, (float) targetSize / srcHeight);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java142 int srcHeight = bitmap.getHeight(); in resizeDownBySideLength() local
144 (float) maxLength / srcWidth, (float) maxLength / srcHeight); in resizeDownBySideLength()