Searched defs:bitmapPool (Results 1 - 18 of 18) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DBitmapDecoder.java17 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or
24 public Bitmap decode(T resource, BitmapPool bitmapPool, int outWidth, int outHeight, DecodeFormat decodeFormat) argument
H A DBitmapDrawableResource.java10 private BitmapPool bitmapPool; field in class:BitmapDrawableResource
12 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) { argument
14 this.bitmapPool = bitmapPool;
29 bitmapPool.put(drawable.getBitmap());
H A DBitmapResource.java10 private BitmapPool bitmapPool; field in class:BitmapResource
12 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { argument
14 this.bitmapPool = bitmapPool;
29 if (!bitmapPool.put(bitmap)) {
H A DFileDescriptorBitmapDataLoadProvider.java20 public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool) { argument
21 cacheDecoder = new StreamBitmapDecoder(bitmapPool);
22 sourceDecoder = new FileDescriptorBitmapDecoder(bitmapPool);
H A DFileDescriptorBitmapDecoder.java15 private final BitmapPool bitmapPool; field in class:FileDescriptorBitmapDecoder
18 public FileDescriptorBitmapDecoder(BitmapPool bitmapPool) { argument
19 this(new VideoBitmapDecoder(), bitmapPool, DecodeFormat.ALWAYS_ARGB_8888);
22 public FileDescriptorBitmapDecoder(VideoBitmapDecoder bitmapDecoder, BitmapPool bitmapPool, argument
25 this.bitmapPool = bitmapPool;
31 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat);
35 return new BitmapResource(bitmap, bitmapPool);
H A DImageVideoDataLoadProvider.java23 public ImageVideoDataLoadProvider(BitmapPool bitmapPool) { argument
27 cacheDecoder = new StreamBitmapDecoder(bitmapPool);
29 new FileDescriptorBitmapDecoder(bitmapPool));
H A DStreamBitmapDataLoadProvider.java18 public StreamBitmapDataLoadProvider(BitmapPool bitmapPool) { argument
20 decoder = new StreamBitmapDecoder(bitmapPool);
H A DStreamBitmapDecoder.java17 private BitmapPool bitmapPool; field in class:StreamBitmapDecoder
25 public StreamBitmapDecoder(BitmapPool bitmapPool) { argument
26 this(Downsampler.AT_LEAST, bitmapPool, DecodeFormat.ALWAYS_ARGB_8888);
29 public StreamBitmapDecoder(Downsampler downsampler, BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
31 this.bitmapPool = bitmapPool;
37 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat);
41 return new BitmapResource(bitmap, bitmapPool);
H A DVideoBitmapDecoder.java29 public Bitmap decode(ParcelFileDescriptor resource, BitmapPool bitmapPool, int outWidth, int outHeight, argument
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
H A DGifDataLoadProvider.java18 public GifDataLoadProvider(Context context, BitmapPool bitmapPool) { argument
19 decoder = new GifResourceDecoder(context, bitmapPool);
H A DGifFrameResourceDecoder.java13 private BitmapPool bitmapPool; field in class:GifFrameResourceDecoder
15 public GifFrameResourceDecoder(BitmapPool bitmapPool) { argument
16 this.bitmapPool = bitmapPool;
22 return new BitmapResource(bitmap ,bitmapPool);
H A DGifResourceDecoder.java22 private BitmapPool bitmapPool; field in class:GifResourceDecoder
28 public GifResourceDecoder(Context context, BitmapPool bitmapPool) { argument
30 this.bitmapPool = bitmapPool;
38 return new GifDataResource(new GifData(context, bitmapPool, id, header, data, width, height));
H A DGifData.java25 public GifData(Context context, BitmapPool bitmapPool, String gifId, GifHeader header, byte[] data, argument
33 bitmapProvider = new GifDecoderBitmapProvider(bitmapPool);
76 private BitmapPool bitmapPool; field in class:GifData.GifDecoderBitmapProvider
78 public GifDecoderBitmapProvider(BitmapPool bitmapPool) { argument
79 this.bitmapPool = bitmapPool;
84 return bitmapPool.get(width, height, config);
H A DGifFrameManager.java56 public GifFrameManager(Context context, BitmapPool bitmapPool, GifDecoder decoder, Handler mainHandler, argument
66 frameResourceDecoder = new GifFrameResourceDecoder(bitmapPool);
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/
H A DBitmapDrawableTranscoder.java12 private BitmapPool bitmapPool; field in class:BitmapDrawableTranscoder
14 public BitmapDrawableTranscoder(Resources resources, BitmapPool bitmapPool) { argument
16 this.bitmapPool = bitmapPool;
22 return new BitmapDrawableResource(drawable, bitmapPool);
/external/glide/library/src/main/java/com/bumptech/glide/
H A DGlideBuilder.java26 private BitmapPool bitmapPool; field in class:GlideBuilder
41 public GlideBuilder setBitmapPool(BitmapPool bitmapPool) { argument
42 this.bitmapPool = bitmapPool;
85 if (bitmapPool == null) {
87 bitmapPool = new LruBitmapPool(calculator.getBitmapPoolSize());
89 bitmapPool = new BitmapPoolAdapter();
111 return new Glide(engine, requestQueue, memoryCache, bitmapPool, context);
H A DBitmapRequestBuilder.java41 private final BitmapPool bitmapPool; field in class:BitmapRequestBuilder
53 this.bitmapPool = glide.getBitmapPool();
55 imageDecoder = new StreamBitmapDecoder(bitmapPool);
56 videoDecoder = new FileDescriptorBitmapDecoder(bitmapPool);
94 imageDecoder = new StreamBitmapDecoder(downsampler, bitmapPool, decodeFormat);
168 imageDecoder = new StreamBitmapDecoder(downsampler, bitmapPool, format);
169 videoDecoder = new FileDescriptorBitmapDecoder(new VideoBitmapDecoder(), bitmapPool, format);
H A DGlide.java86 private final BitmapPool bitmapPool; field in class:Glide
173 Glide(Engine engine, RequestQueue requestQueue, MemoryCache memoryCache, BitmapPool bitmapPool, argument
177 this.bitmapPool = bitmapPool;
182 dataLoadProviderFactory.register(InputStream.class, Bitmap.class, new StreamBitmapDataLoadProvider(bitmapPool));
184 new FileDescriptorBitmapDataLoadProvider(bitmapPool));
186 ImageVideoDataLoadProvider imageVideoDataLoadProvider = new ImageVideoDataLoadProvider(bitmapPool);
189 GifDataLoadProvider gifDataLoadProvider = new GifDataLoadProvider(context, bitmapPool);
207 new BitmapDrawableTranscoder(context.getResources(), bitmapPool));
209 new GifBitmapWrapperDrawableTranscoder(new BitmapDrawableTranscoder(context.getResources(), bitmapPool),
[all...]

Completed in 609 milliseconds