HomeSort by relevance Sort by last modified time
    Searched refs:inSampleSize (Results 1 - 25 of 70) sorted by null

1 2 3

  /external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
BitmapHelper.java 44 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
57 int inSampleSize = 1;
65 // Choose the smallest ratio as inSampleSize value, this will guarantee
68 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;
71 return inSampleSize;
  /development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
ImageResizer.java 123 // Calculate inSampleSize
124 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
131 // Decode bitmap with inSampleSize set
154 // Calculate inSampleSize
155 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
162 // Decode bitmap with inSampleSize set
185 // Calculate inSampleSize
186 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
188 // Decode bitmap with inSampleSize set
216 * Calculate an inSampleSize for use in a {@link BitmapFactory.Options} object when decodin
    [all...]
ImageCache.java 510 // On earlier versions, the dimensions must match exactly and the inSampleSize must be 1
513 && targetOptions.inSampleSize == 1;
518 int width = targetOptions.outWidth / targetOptions.inSampleSize;
519 int height = targetOptions.outHeight / targetOptions.inSampleSize;
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 366 // Calculate inSampleSize
367 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
369 // Decode bitmap with inSampleSize set
375 * Calculate an inSampleSize for use in a {@link BitmapFactory.Options} object when decoding
377 * the closest inSampleSize that will result in the final decoded bitmap having a width and
379 * ensure a power of 2 is returned for inSampleSize which can be faster when decoding but
386 * @return The value to be used for inSampleSize
393 int inSampleSize = 1;
401 // Choose the smallest ratio as inSampleSize value, this will guarantee a final image
403 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DecodeUtils.java 131 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale);
136 if ((w / options.inSampleSize) * (h / options.inSampleSize) > MAX_PIXEL_COUNT) {
137 options.inSampleSize = BitmapUtils.computeSampleSize(
143 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale);
152 // We need to resize down if the decoder does not support inSampleSize
180 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(
253 if (options.inSampleSize < 1) options.inSampleSize = 1;
255 options.inBitmap = (options.inSampleSize == 1
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java 79 options.inSampleSize = sampleSize;
  /packages/apps/UnifiedEmail/src/com/android/bitmap/
DecodeTask.java 194 mOpts.inSampleSize = calculateSampleSize(srcW, srcH, mDestW, mDestH);
235 Trace.beginSection("decodeCropped" + mOpts.inSampleSize);
251 Trace.beginSection("decode" + mOpts.inSampleSize);
261 + mOpts.inSampleSize);
263 if (mOpts.inSampleSize > 1) {
265 mOpts.inSampleSize = 1;
285 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize);
287 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize);
360 BitmapUtils.calculateCroppedSrcRect(srcW, srcH, mDestW, mDestH, mDestH, mOpts.inSampleSize,
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterRS.java 184 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) {
187 options.inSampleSize = inSampleSize;
196 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) {
199 options.inSampleSize = inSampleSize;
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 112 options.inSampleSize = 1;
119 options.inSampleSize = computeSampleSize(
318 options.inSampleSize = 1;
325 options.inSampleSize = computeSampleSize(
500 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels);
501 exifThumbWidth = exifOptions.outWidth / exifOptions.inSampleSize;
507 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels);
508 fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 53 o.inSampleSize = 1;
87 o.inSampleSize = sampleSize;
  /development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
BitmapScaling.java 57 // inSampleSize tells the loader how much to scale the final image, which it does at
65 bitmapOptions.inSampleSize = sampleSize;
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java 309 options.inSampleSize = 0; // treated as 1
317 options.inSampleSize = -42; // treated as 1
333 options.inSampleSize = 4;
344 options.inSampleSize = 4;
348 options.inSampleSize = 1;
365 options.inSampleSize = 4;
377 options.inSampleSize = 1;
381 // Verify that inSampleSize and density scaling both work with reuse concurrently
384 options.inSampleSize = 2;
405 options.inSampleSize = 2
    [all...]
BitmapRegionDecoderTest.java 169 opts.inSampleSize = SAMPLESIZES[j];
194 opts.inSampleSize = SAMPLESIZES[j];
224 opts.inSampleSize = SAMPLESIZES[j];
251 opts.inSampleSize = SAMPLESIZES[j];
323 int left = rect1.left / opts.inSampleSize;
324 int top = rect1.top / opts.inSampleSize;
328 int currentWidth = rect1.width() / opts.inSampleSize;
329 int currentHeight = rect1.height() / opts.inSampleSize;
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBitmapFactory.java 108 if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
TileImageViewAdapter.java 119 options.inSampleSize = (1 << level);
158 options.inSampleSize = (1 << level);
  /development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
BitmapAllocation.java 67 mBitmapOptions.inSampleSize = 1;
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoDecodeRunnable.java 192 * inSampleSize accomplishes this.
195 bitmapOptions.inSampleSize = sampleSize;
  /packages/apps/Gallery2/src/com/android/photos/
BitmapRegionTileSource.java 138 mOptions.inSampleSize = (1 << level);
163 mOptions.inSampleSize = (1 << level);
192 mOptions.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale);
200 // We need to resize down if the decoder does not support inSampleSize
201 // or didn't support the specified inSampleSize (some decoders only do powers of 2)
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
ImageLoader.java 260 if (options.inSampleSize != 0) {
314 options.inSampleSize = sampleSize;
430 options.inSampleSize = sampleSize;
487 if (options.inSampleSize < 1) {
488 options.inSampleSize = 1;
505 options.inSampleSize *= 2;
  /packages/apps/LegacyCamera/src/com/android/camera/
Thumbnail.java 247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize,
251 options.inSampleSize = inSampleSize;
  /packages/apps/Camera2/src/com/android/camera/crop/
ImageLoader.java 238 options.inSampleSize = sampleSize;
389 if (options.inSampleSize < 1) {
390 options.inSampleSize = 1;
407 options.inSampleSize *= 2;
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
BitmapUtil.java 52 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h);
  /packages/apps/Camera2/src/com/android/camera/ui/
ZoomView.java 108 options.inSampleSize = getSampleFactor(region.width(), region.height());
114 options.inSampleSize = getSampleFactor(region.height(), region.width());
  /packages/apps/Gallery2/src/com/android/photos/drawables/
AutoThumbnailDrawable.java 258 mOptions.inSampleSize = preferredSampleSize;
270 mOptions.inSampleSize = sampleSize;
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ThumbnailLoadTask.java 132 opts.inSampleSize = Math.min(wDivider, hDivider);
135 opts.outWidth, opts.outHeight, mWidth, mHeight, opts.inSampleSize);

Completed in 1287 milliseconds

1 2 3