Lines Matching refs:bitmap
59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { in Thumbnail() argument
61 mBitmap = rotateImage(bitmap, orientation); in Thumbnail()
81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { in rotateImage() argument
85 m.setRotate(orientation, bitmap.getWidth() * 0.5f, in rotateImage()
86 bitmap.getHeight() * 0.5f); in rotateImage()
89 Bitmap rotated = Bitmap.createBitmap(bitmap, 0, 0, in rotateImage()
90 bitmap.getWidth(), bitmap.getHeight(), m, true); in rotateImage()
93 if (rotated != bitmap) bitmap.recycle(); in rotateImage()
99 return bitmap; in rotateImage()
129 Bitmap bitmap = null; in loadFrom() local
139 bitmap = BitmapFactory.decodeStream(d); in loadFrom()
150 Thumbnail thumbnail = createThumbnail(uri, bitmap, 0); in loadFrom()
160 Bitmap bitmap = null; in getLastThumbnail()
165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail()
169 bitmap = Video.Thumbnails.getThumbnail(resolver, video.id, in getLastThumbnail()
176 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation); in getLastThumbnail()
252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options); in createThumbnail() local
253 return createThumbnail(uri, bitmap, orientation); in createThumbnail()
265 Bitmap bitmap = null; in createVideoThumbnail() local
273 bitmap = retriever.getFrameAtTime(-1); in createVideoThumbnail()
285 if (bitmap == null) return null; in createVideoThumbnail()
288 int width = bitmap.getWidth(); in createVideoThumbnail()
289 int height = bitmap.getHeight(); in createVideoThumbnail()
294 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); in createVideoThumbnail()
296 return bitmap; in createVideoThumbnail()
299 private static Thumbnail createThumbnail(Uri uri, Bitmap bitmap, int orientation) { in createThumbnail() argument
300 if (bitmap == null) { in createThumbnail()
305 return new Thumbnail(uri, bitmap, orientation); in createThumbnail()