Home
last modified time | relevance | path

Searched refs:maxNumOfPixels (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Gallery/src/com/android/camera/
DUtil.java103 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
105 maxNumOfPixels); in computeSampleSize()
121 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
125 int lowerBound = (maxNumOfPixels == IImage.UNCONSTRAINED) ? 1 : in computeInitialSampleSize()
126 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); in computeInitialSampleSize()
136 if ((maxNumOfPixels == IImage.UNCONSTRAINED) && in computeInitialSampleSize()
275 public static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, in makeBitmap() argument
284 return makeBitmap(minSideLength, maxNumOfPixels, uri, cr, input, in makeBitmap()
293 public static Bitmap makeBitmap(int minSideLength, int maxNumOfPixels, in makeBitmap() argument
299 return makeBitmap(minSideLength, maxNumOfPixels, null, null, pfd, in makeBitmap()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java59 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
61 width, height, minSideLength, maxNumOfPixels); in computeSampleSize()
69 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
70 if (maxNumOfPixels == UNCONSTRAINED in computeInitialSampleSize()
73 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : in computeInitialSampleSize()
74 (int) Math.ceil(Math.sqrt((double) (w * h) / maxNumOfPixels)); in computeInitialSampleSize()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java176 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
178 maxNumOfPixels); in computeSampleSize()
194 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
198 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize()
199 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); in computeInitialSampleSize()
209 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
218 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { in makeBitmap() argument
229 options, -1, maxNumOfPixels); in makeBitmap()
/packages/apps/Camera/src/com/android/camera/
DUtil.java216 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
218 maxNumOfPixels); in computeSampleSize()
234 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
238 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize()
239 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); in computeInitialSampleSize()
249 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
258 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { in makeBitmap() argument
269 options, -1, maxNumOfPixels); in makeBitmap()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java202 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
204 maxNumOfPixels); in computeSampleSize()
220 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
224 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize()
225 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); in computeInitialSampleSize()
235 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
244 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { in makeBitmap() argument
255 options, -1, maxNumOfPixels); in makeBitmap()