Home
last modified time | relevance | path

Searched refs:maxNumOfPixels (Results 1 – 4 of 4) 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.java60 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
62 width, height, minSideLength, maxNumOfPixels); in computeSampleSize()
70 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
71 if (maxNumOfPixels == UNCONSTRAINED in computeInitialSampleSize()
74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : in computeInitialSampleSize()
75 (int) FloatMath.ceil(FloatMath.sqrt((float) (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.java161 int minSideLength, int maxNumOfPixels) { in computeSampleSize() argument
163 maxNumOfPixels); in computeSampleSize()
179 int minSideLength, int maxNumOfPixels) { in computeInitialSampleSize() argument
183 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize()
184 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); in computeInitialSampleSize()
194 if (maxNumOfPixels < 0 && minSideLength < 0) { in computeInitialSampleSize()
203 public static Bitmap makeBitmap(byte[] jpegData, int maxNumOfPixels) { in makeBitmap() argument
214 options, -1, maxNumOfPixels); in makeBitmap()