Home
last modified time | relevance | path

Searched refs:sampleSize (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java311 public static Bitmap loadDownsampledBitmap(Context context, Uri uri, int sampleSize) { in loadDownsampledBitmap() argument
314 options.inSampleSize = sampleSize; in loadDownsampledBitmap()
376 int sampleSize = 1; in loadConstrainedBitmap() local
379 sampleSize <<= 1; in loadConstrainedBitmap()
383 if (sampleSize <= 0 || in loadConstrainedBitmap()
384 0 >= (int) (Math.min(w, h) / sampleSize)) { in loadConstrainedBitmap()
387 return loadDownsampledBitmap(context, uri, sampleSize); in loadConstrainedBitmap()
424 int sampleSize = 1; in getScaleOneImageForPreset() local
427 sampleSize *= 2; in getScaleOneImageForPreset()
428 w /= sampleSize; in getScaleOneImageForPreset()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java107 int sampleSize = 1; in loadImageThumbnailFromStream() local
111 sampleSize <<= 1; in loadImageThumbnailFromStream()
112 targetWidth = imageWidth / sampleSize; in loadImageThumbnailFromStream()
113 targetHeight = imageWidth / sampleSize; in loadImageThumbnailFromStream()
123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) { in loadImageThumbnailFromStream()
124 sampleSize >>= 2; in loadImageThumbnailFromStream()
128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java70 int sampleSize = 1; in findOptimalSampleSize() local
72 sampleSize <<= 1; in findOptimalSampleSize()
76 return sampleSize; in findOptimalSampleSize()
80 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
82 if (sampleSize <= 1) { in decodeBitmapFromBytes()
86 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
DContactPhotoManagerImpl.java228 final int sampleSize = in inflateBitmap() local
235 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
247 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
276 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); in inflateBitmap()
279 holder.decodedSampleSize = sampleSize; in inflateBitmap()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java174 int sampleSize = calculateSampleSizeLocked(mImageWidth, mImageHeight); in refreshSampleSizeLocked() local
175 if (sampleSize != mSampleSize || mBitmap == null) { in refreshSampleSizeLocked()
176 mSampleSize = sampleSize; in refreshSampleSizeLocked()
240 int sampleSize, width, height;
251 sampleSize = calculateSampleSizeLocked(width, height);
270 mOptions.inSampleSize = sampleSize;
271 mOptions.inBitmap = sBitmapPool.get(width / sampleSize, height / sampleSize);
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java69 int sampleSize = 1; in findOptimalSampleSize() local
71 sampleSize <<= 1; in findOptimalSampleSize()
75 return sampleSize; in findOptimalSampleSize()
81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
83 if (sampleSize <= 1) { in decodeBitmapFromBytes()
87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java624 int sampleSize = 1; in canBeCompressed() local
631 sampleSize = sampleSize * 2; in canBeCompressed()
633 if (sampleSize >= (Integer.MAX_VALUE / 4)) { in canBeCompressed()
643 "computeInitialSampleSize: Increasing sampleSize to " + sampleSize in canBeCompressed()
648 imageHeight = mHeight / sampleSize; in canBeCompressed()
649 imageWidth = mWidth / sampleSize; in canBeCompressed()
657 "computeInitialSampleSize: Initial sampleSize " + sampleSize in canBeCompressed()
663 mSampleSize = sampleSize; in canBeCompressed()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java106 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion() local
108 wantRegion.width() / sampleSize, in decodeRegion()
109 wantRegion.height() / sampleSize, in decodeRegion()
113 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize); in decodeRegion()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackMonitor.java79 public void addPts(long pts, int sampleSize, int header) { in addPts() argument
82 mSampleSize.add(sampleSize); in addPts()
84 mCurSampleSize.add(sampleSize); in addPts()
DMpegTsDefaultAudioTrackRenderer.java405 private void onSampleSizeChanged(int sampleSize) { in onSampleSizeChanged() argument
407 Log.d(TAG, "Sample size was changed to : " + sampleSize); in onSampleSizeChanged()
410 int audioBufferSize = sampleSize * BUFFERED_SAMPLES_IN_AUDIOTRACK; in onSampleSizeChanged()
411 mSampleSize = sampleSize; in onSampleSizeChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java88 int sampleSize = 1; in getFullsize() local
91 sampleSize++; in getFullsize()
93 o.inSampleSize = sampleSize; in getFullsize()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java127 boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs); in isWriteSpeedSlow() argument
722 public void setMinimumSampleSizeForSpeedCheck(int sampleSize) { in setMinimumSampleSizeForSpeedCheck() argument
723 mMinSampleSizeForSpeedCheck = sampleSize; in setMinimumSampleSizeForSpeedCheck()
DRecordingSampleBuffer.java182 public boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs) { in isWriteSpeedSlow() argument
186 mBufferManager.addWriteStat(sampleSize, writeDurationNs); in isWriteSpeedSlow()
DSimpleSampleBuffer.java141 public boolean isWriteSpeedSlow(int sampleSize, long durationNs) { in isWriteSpeedSlow() argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java1015 final int sampleSize = in inflateBitmap() local
1022 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
1034 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
1063 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); in inflateBitmap()
1066 holder.decodedSampleSize = sampleSize; in inflateBitmap()
DDynamicShortcuts.java384 final int sampleSize = Math.min( in decodeStreamForShortcut() local
388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java343 int sampleSize = 1; in processAndSaveImage() local
397 sampleSize); in processAndSaveImage()
451 sampleSize *= 2; in processAndSaveImage()