Searched defs:imageWidth (Results 1 - 7 of 7) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripItemUtils.java81 * @param imageWidth Image width.
90 public static Bitmap loadImageThumbnailFromStream(InputStream stream, int imageWidth, argument
99 imageHeight = imageWidth;
100 imageWidth = dummy;
105 int targetWidth = imageWidth;
112 targetWidth = imageWidth / sampleSize;
113 targetHeight = imageWidth / sampleSize;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageStraighten.java206 private void updateCurrentCrop(Matrix m, GeometryHolder h, RectF tmp, int imageWidth, argument
208 tmp.set(0, 0, imageHeight, imageWidth);
217 tmp.set(0, 0, imageHeight, imageWidth);
219 ih = imageWidth;
221 tmp.set(0, 0, imageWidth, imageHeight);
222 iw = imageWidth;
231 Matrix m1 = GeometryMathUtils.getFullGeometryToScreenMatrix(h, imageWidth,
237 FilterCropRepresentation.findNormalizedCrop(mCrop, imageWidth, imageHeight);
251 int imageWidth = image.getWidth();
257 Matrix m = GeometryMathUtils.getFullGeometryToScreenMatrix(mDrawHolder, imageWidth,
[all...]
H A DImageShow.java492 private Rect computeImageBounds(int imageWidth, int imageHeight) { argument
493 float scale = GeometryMathUtils.scale(imageWidth, imageHeight,
496 float w = imageWidth * scale;
/packages/apps/Messaging/jni/
H A DGifTranscoder.cpp401 int imageWidth,
408 ASSERT(left + width <= imageWidth, "Rectangle is outside image bounds");
413 ColorARGB* renderPixel = getPixel(renderBuffer, imageWidth, x + left, y + top);
400 fillRect(ColorARGB* renderBuffer, int imageWidth, int imageHeight, int left, int top, int width, int height, ColorARGB color) argument
/packages/apps/Gallery/src/com/android/camera/
H A DGalleryPicker.java621 int imageWidth, int widthPadding, int imageHeight,
627 int xPos = (col * (imageWidth + widthPadding)) - offsetX;
643 int imageWidth = width;
648 imageWidth = (imageWidth - padding) / 2; // 2 here because we show two
704 temp = Util.transform(m, temp, imageWidth,
708 Bitmap thumb = Bitmap.createBitmap(imageWidth, imageHeight,
714 mCellOutline.setBounds(0, 0, imageWidth, imageHeight);
717 placeImage(thumb, c, pdpaint, imageWidth, padding, imageHeight,
620 placeImage(Bitmap image, Canvas c, Paint paint, int imageWidth, int widthPadding, int imageHeight, int heightPadding, int offsetX, int offsetY, int pos) argument
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java974 * @param imageWidth The original width.
983 public static Point resizeToFill(int imageWidth, int imageHeight, int imageRotation, argument
987 int savedWidth = imageWidth;
988 imageWidth = imageHeight;
998 if (imageWidth != 0 && imageHeight != 0) {
999 if (imageWidth * boundHeight > boundWidth * imageHeight) {
1000 p.y = imageHeight * p.x / imageWidth;
1002 p.x = imageWidth * p.y / imageHeight;
1006 + imageWidth + "|" + imageHeight + "|" + boundWidth + "|"
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPhotoView.java1615 private static int gapToSide(int imageWidth, int viewWidth) { argument
1616 return Math.max(0, (viewWidth - imageWidth) / 2);

Completed in 1544 milliseconds