Searched defs:targetWidth (Results 1 - 7 of 7) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Thumbnail.java | 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { argument 26 return createVideoThumbnailBitmap(null, fd, targetWidth); 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { argument 30 return createVideoThumbnailBitmap(filePath, null, targetWidth); 34 int targetWidth) { 60 if (width > targetWidth) { 61 float scale = (float) targetWidth / width; 33 createVideoThumbnailBitmap(String filePath, FileDescriptor fd, int targetWidth) argument
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
H A D | BitmapUtil.java | 95 * @param targetWidth desired output width 101 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { argument 108 targetWidth, targetHeight, inputConfig != null ? inputConfig : Bitmap.Config.ARGB_8888); 113 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); 126 Math.min((float) inputWidth / targetWidth, (float) inputHeight / targetHeight); 128 final int xCropAmountHalved = (int) (scaleBy * targetWidth / 2);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | BitmapUtil.java | 120 * @param targetWidth desired output width 126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { argument 131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, 137 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); 149 final float scaleBy = Math.min((float) inputWidth / targetWidth, 152 final int xCropAmountHalved = (int) (scaleBy * targetWidth / 2);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Thumbnail.java | 256 public static Bitmap createVideoThumbnail(FileDescriptor fd, int targetWidth) { argument 257 return createVideoThumbnail(null, fd, targetWidth); 260 public static Bitmap createVideoThumbnail(String filePath, int targetWidth) { argument 261 return createVideoThumbnail(filePath, null, targetWidth); 264 private static Bitmap createVideoThumbnail(String filePath, FileDescriptor fd, int targetWidth) { argument 290 if (width > targetWidth) { 291 float scale = (float) targetWidth / width;
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 152 int targetWidth, 156 int deltaX = source.getWidth() - targetWidth; 165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 174 deltaXHalf + Math.min(targetWidth, source.getWidth()), 176 int dstX = (targetWidth - src.width()) / 2; 181 targetWidth - dstX, 193 float viewAspect = (float) targetWidth / targetHeight; 203 float scale = targetWidth / bitmapWidthF; 224 int dx1 = Math.max(0, b1.getWidth() - targetWidth); 231 targetWidth, 150 transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp, boolean recycle) argument [all...] |
/packages/services/BuiltInPrintService/jni/plugins/ |
H A D | wprint_image.c | 309 float targetHeight, targetWidth; local 319 targetWidth = image_info->printable_width * 1.0f; 324 useHeight = (rw >= targetWidth); 326 useHeight = (rw < targetWidth); 334 image_info->scaled_height = (int) floorf(targetWidth * sourceHeight / sourceWidth); 335 image_info->scaled_width = (int) floorf(targetWidth);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 588 * @param targetWidth the ideal width of the video snapshot 593 List<Size> sizes, int targetWidth, 608 if (size.height() == targetHeight && size.width() == targetWidth) { 614 final double targetRatio = (double) targetWidth / targetHeight; 592 getOptimalVideoSnapshotPictureSize( List<Size> sizes, int targetWidth, int targetHeight) argument
|
Completed in 939 milliseconds