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

1 2 3 4

  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageResizer.java 124 // Calculate inSampleSize
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
133 // Decode bitmap with inSampleSize set
156 // Calculate inSampleSize
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
164 // Decode bitmap with inSampleSize set
187 // Calculate inSampleSize
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
190 // Decode bitmap with inSampleSize set
220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageResizer.java 124 // Calculate inSampleSize
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
133 // Decode bitmap with inSampleSize set
156 // Calculate inSampleSize
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
164 // Decode bitmap with inSampleSize set
187 // Calculate inSampleSize
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
190 // Decode bitmap with inSampleSize set
220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin
    [all...]
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageResizer.java 124 // Calculate inSampleSize
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
133 // Decode bitmap with inSampleSize set
156 // Calculate inSampleSize
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
164 // Decode bitmap with inSampleSize set
187 // Calculate inSampleSize
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
190 // Decode bitmap with inSampleSize set
220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
FileImageRequest.java 67 // Calculate inSampleSize
68 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options,
91 final int sampledWidth = options.outWidth / options.inSampleSize;
92 final int sampledHeight = options.outHeight / options.inSampleSize;
ImageRequest.java 178 // Calculate inSampleSize
179 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options,
181 Assert.isTrue(options.inSampleSize > 0);
203 final int sampledWidth = (options.outWidth + options.inSampleSize - 1) /
204 options.inSampleSize;
205 final int sampledHeight = (options.outHeight + options.inSampleSize - 1) /
206 options.inSampleSize;
  /packages/apps/TV/src/com/android/tv/util/
BitmapUtils.java 113 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
118 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize);
139 // Calculates the largest inSampleSize that, is a power of two and, keeps either width or
196 * @see android.graphics.BitmapFactory.Options#inSampleSize
198 public final int inSampleSize;
204 * @param inSampleSize The sampling size.
205 * See {@link android.graphics.BitmapFactory.Options#inSampleSize}
207 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) {
210 this.inSampleSize = inSampleSize;
    [all...]
  /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 130 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale);
135 if ((w / options.inSampleSize) * (h / options.inSampleSize) > MAX_PIXEL_COUNT) {
136 options.inSampleSize = BitmapUtils.computeSampleSize(
142 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale);
151 // We need to resize down if the decoder does not support inSampleSize
179 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(
252 if (options.inSampleSize < 1) options.inSampleSize = 1;
254 options.inBitmap = (options.inSampleSize == 1
    [all...]
  /packages/apps/Camera2/src/com/android/camera/captureintent/
PictureDecoder.java 37 opts.inSampleSize = downSampleFactor;
  /frameworks/opt/bitmap/src/com/android/bitmap/
DecodeTask.java 251 mOpts.inSampleSize = Math.max(1, sampleSize);
306 Trace.beginSection("decodeCropped" + mOpts.inSampleSize);
326 mDecodeOpts.destH, mDecodeOpts.destH, mOpts.inSampleSize,
374 Trace.beginSection("decode" + mOpts.inSampleSize);
384 + mOpts.inSampleSize);
386 if (mOpts.inSampleSize > 1) {
388 mOpts.inSampleSize = 1;
408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize);
410 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterRS.java 183 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) {
186 options.inSampleSize = inSampleSize;
195 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) {
198 options.inSampleSize = inSampleSize;
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 107 options.inSampleSize = 1;
114 options.inSampleSize = computeSampleSize(
313 options.inSampleSize = 1;
320 options.inSampleSize = computeSampleSize(
495 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels);
496 exifThumbWidth = exifOptions.outWidth / exifOptions.inSampleSize;
502 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels);
503 fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 58 o.inSampleSize = 1;
93 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;
  /packages/apps/DevCamera/src/com/android/devcamera/
BitmapUtility.java 35 opts.inSampleSize = 16; // 3264 / 16 = 204.
  /packages/apps/TV/tests/unit/src/com/android/tv/util/
ScaledBitmapInfoTest.java 49 assertEquals(actual.id + " inSampleSize", expectedInSampleSize, actual.inSampleSize);
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapRegionDecoderTest.java 169 opts.inSampleSize = SAMPLESIZES[j];
194 opts.inSampleSize = SAMPLESIZES[j];
224 opts.inSampleSize = SAMPLESIZES[j];
251 opts.inSampleSize = SAMPLESIZES[j];
325 defaultOpts.inSampleSize = sampleSize;
326 reuseOpts.inSampleSize = sampleSize;
400 int left = rect1.left / opts.inSampleSize;
401 int top = rect1.top / opts.inSampleSize;
405 int currentWidth = rect1.width() / opts.inSampleSize;
406 int currentHeight = rect1.height() / opts.inSampleSize;
    [all...]
  /external/robolectric/v1/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);
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
ImageRequestTest.java 66 assertEquals(1, options.getValue().inSampleSize);
96 assertNotSame(1, options.getValue().inSampleSize);
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 46 bmOptions.inSampleSize = scaleFactor;
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 46 bmOptions.inSampleSize = scaleFactor;
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
BitmapHelper.java 46 bmOptions.inSampleSize = scaleFactor;
  /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;

Completed in 1305 milliseconds

1 2 3 4