Searched defs:targetWidth (Results 1 - 5 of 5) 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/ContactsCommon/src/com/android/contacts/common/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/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 213 milliseconds