Home | History | Annotate | Download | only in media

Lines Matching full:bitmap

50 import android.graphics.Bitmap;
109 public static final Bitmap createFromUri(Context context, String uri, int maxResolutionX, int maxResolutionY, long cacheId,
113 options.inPreferredConfig = Bitmap.Config.RGB_565;
116 Bitmap bitmap = null;
123 bitmap = createFromCache(crc64, maxResolutionX);
124 if (bitmap != null) {
125 return bitmap;
148 // Get the input stream again for decoding it to a bitmap.
160 // Decode bufferedInput to a bitmap.
175 bitmap = BitmapFactory.decodeStream(bufferedInput, null, options);
178 if ((options.inSampleSize > 1 || !local) && bitmap != null) {
179 writeToCache(crc64, bitmap, maxResolutionX / options.inSampleSize);
181 return bitmap;
225 protected Bitmap load(RenderView view) {
226 Bitmap bitmap = null;
228 return bitmap;
235 bitmap = createFromUri(view.getContext(), mUri, MAX_RESOLUTION_A, MAX_RESOLUTION_B, mCacheId, mConnectionManager);
240 return bitmap;
261 public static Bitmap createFromCache(long crc64, int maxResolution) {
264 Bitmap bitmap = null;
267 options.inPreferredConfig = Bitmap.Config.RGB_565;
271 bitmap = BitmapFactory.decodeFile(file, options);
273 return bitmap;
282 Bitmap bitmap;
284 bitmap = UriTexture.createFromUri(context, uri, 1024, 1024, crc64, null);
292 bitmap.recycle();
310 public static void writeToCache(long crc64, Bitmap bitmap, int maxResolution) {
312 if (bitmap != null && file != null && crc64 != 0) {
318 bitmap.compress(Bitmap.CompressFormat.JPEG, 80, bos);