Searched refs:bitmapPool (Results 1 - 25 of 29) sorted by relevance

12

/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
H A DGifBitmapProvider.java10 private final BitmapPool bitmapPool; field in class:GifBitmapProvider
12 public GifBitmapProvider(BitmapPool bitmapPool) { argument
13 this.bitmapPool = bitmapPool;
18 return bitmapPool.getDirty(width, height, config);
23 if (!bitmapPool.put(bitmap)) {
H A DGifFrameResourceDecoder.java12 private final BitmapPool bitmapPool; field in class:GifFrameResourceDecoder
14 public GifFrameResourceDecoder(BitmapPool bitmapPool) { argument
15 this.bitmapPool = bitmapPool;
21 return BitmapResource.obtain(bitmap, bitmapPool);
H A DGifDrawableTransformation.java16 private final BitmapPool bitmapPool; field in class:GifDrawableTransformation
18 public GifDrawableTransformation(Transformation<Bitmap> wrapped, BitmapPool bitmapPool) { argument
20 this.bitmapPool = bitmapPool;
32 Resource<Bitmap> bitmapResource = new BitmapResource(firstFrame, bitmapPool);
H A DGifResourceEncoder.java29 private final BitmapPool bitmapPool; field in class:GifResourceEncoder
32 public GifResourceEncoder(BitmapPool bitmapPool) { argument
33 this(bitmapPool, FACTORY);
37 GifResourceEncoder(BitmapPool bitmapPool, Factory factory) { argument
38 this.bitmapPool = bitmapPool;
39 provider = new GifBitmapProvider(bitmapPool);
115 Resource<Bitmap> bitmapResource = factory.buildFrameResource(currentFrame, bitmapPool);
144 public Resource<Bitmap> buildFrameResource(Bitmap bitmap, BitmapPool bitmapPool) { argument
145 return new BitmapResource(bitmap, bitmapPool);
[all...]
H A DGifResourceDecoder.java33 private final BitmapPool bitmapPool; field in class:GifResourceDecoder
41 public GifResourceDecoder(Context context, BitmapPool bitmapPool) { argument
42 this(context, bitmapPool, PARSER_POOL, DECODER_POOL);
46 GifResourceDecoder(Context context, BitmapPool bitmapPool, GifHeaderParserPool parserPool, argument
49 this.bitmapPool = bitmapPool;
51 this.provider = new GifBitmapProvider(bitmapPool);
82 GifDrawable gifDrawable = new GifDrawable(context, provider, bitmapPool, unitTransformation, width, height,
H A DGifDrawable.java59 * @param bitmapPool A {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} that can be used to return
70 public GifDrawable(Context context, GifDecoder.BitmapProvider bitmapProvider, BitmapPool bitmapPool, argument
74 bitmapProvider, bitmapPool, firstFrame));
90 GifDrawable(GifDecoder decoder, GifFrameManager frameManager, Bitmap firstFrame, BitmapPool bitmapPool) { argument
94 state.bitmapPool = bitmapPool;
284 state.bitmapPool.put(state.firstFrame);
321 BitmapPool bitmapPool; field in class:GifDrawable.GifState
326 GifDecoder.BitmapProvider provider, BitmapPool bitmapPool, Bitmap firstFrame) {
332 this.bitmapPool
324 GifState(GifHeader header, byte[] data, Context context, Transformation<Bitmap> frameTransformation, int targetWidth, int targetHeight, GifDecoder.BitmapProvider provider, BitmapPool bitmapPool, Bitmap firstFrame) argument
[all...]
H A DGifDrawableLoadProvider.java26 public GifDrawableLoadProvider(Context context, BitmapPool bitmapPool) { argument
27 decoder = new GifResourceDecoder(context, bitmapPool);
29 encoder = new GifResourceEncoder(bitmapPool);
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DBitmapResource.java14 private final BitmapPool bitmapPool; field in class:BitmapResource
21 * @param bitmapPool A non-null {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool}.
23 public static BitmapResource obtain(Bitmap bitmap, BitmapPool bitmapPool) { argument
27 return new BitmapResource(bitmap, bitmapPool);
31 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { argument
35 if (bitmapPool == null) {
39 this.bitmapPool = bitmapPool;
54 if (!bitmapPool.put(bitmap)) {
H A DBitmapDrawableResource.java19 private final BitmapPool bitmapPool; field in class:BitmapDrawableResource
21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) { argument
23 this.bitmapPool = bitmapPool;
33 bitmapPool.put(drawable.getBitmap());
H A DGlideBitmapDrawableResource.java11 private final BitmapPool bitmapPool; field in class:GlideBitmapDrawableResource
13 public GlideBitmapDrawableResource(GlideBitmapDrawable drawable, BitmapPool bitmapPool) { argument
15 this.bitmapPool = bitmapPool;
25 bitmapPool.put(drawable.getBitmap());
H A DFileDescriptorBitmapDecoder.java21 private final BitmapPool bitmapPool; field in class:FileDescriptorBitmapDecoder
32 public FileDescriptorBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
33 this(new VideoBitmapDecoder(), bitmapPool, decodeFormat);
36 public FileDescriptorBitmapDecoder(VideoBitmapDecoder bitmapDecoder, BitmapPool bitmapPool, argument
39 this.bitmapPool = bitmapPool;
45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat);
46 return BitmapResource.obtain(bitmap, bitmapPool);
H A DStreamBitmapDecoder.java22 private BitmapPool bitmapPool; field in class:StreamBitmapDecoder
30 public StreamBitmapDecoder(BitmapPool bitmapPool) { argument
31 this(bitmapPool, DecodeFormat.DEFAULT);
38 public StreamBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
39 this(Downsampler.AT_LEAST, bitmapPool, decodeFormat);
42 public StreamBitmapDecoder(Downsampler downsampler, BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
44 this.bitmapPool = bitmapPool;
50 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat);
51 return BitmapResource.obtain(bitmap, bitmapPool);
[all...]
H A DBitmapTransformation.java33 private BitmapPool bitmapPool; field in class:BitmapTransformation
39 public BitmapTransformation(BitmapPool bitmapPool) { argument
40 this.bitmapPool = bitmapPool;
50 Bitmap transformed = transform(bitmapPool, toTransform, outWidth, outHeight);
56 result = BitmapResource.obtain(transformed, bitmapPool);
H A DFitCenter.java18 public FitCenter(BitmapPool bitmapPool) { argument
19 super(bitmapPool);
H A DCenterCrop.java20 public CenterCrop(BitmapPool bitmapPool) { argument
21 super(bitmapPool);
H A DBitmapDecoder.java18 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or
25 Bitmap decode(T resource, BitmapPool bitmapPool, int outWidth, int outHeight, DecodeFormat decodeFormat) argument
H A DFileDescriptorBitmapDataLoadProvider.java27 public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
28 cacheDecoder = new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(bitmapPool, decodeFormat));
29 sourceDecoder = new FileDescriptorBitmapDecoder(bitmapPool, decodeFormat);
H A DStreamBitmapDataLoadProvider.java27 public StreamBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) { argument
29 decoder = new StreamBitmapDecoder(bitmapPool, decodeFormat);
H A DVideoBitmapDecoder.java31 public Bitmap decode(ParcelFileDescriptor resource, BitmapPool bitmapPool, int outWidth, int outHeight, argument
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/
H A DGlideBitmapDrawableTranscoder.java19 private final BitmapPool bitmapPool; field in class:GlideBitmapDrawableTranscoder
25 public GlideBitmapDrawableTranscoder(Resources resources, BitmapPool bitmapPool) { argument
27 this.bitmapPool = bitmapPool;
33 return new GlideBitmapDrawableResource(drawable, bitmapPool);
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
H A DBitmapPreFillRunner.java56 private final BitmapPool bitmapPool; field in class:BitmapPreFillRunner
66 public BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder) { argument
67 this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper()));
71 BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder, Clock clock, argument
73 this.bitmapPool = bitmapPool;
98 memoryCache.put(new UniqueKey(), BitmapResource.obtain(bitmap, bitmapPool));
124 Bitmap fromPool = bitmapPool.get(toAllocate.getWidth(), toAllocate.getHeight(),
127 bitmapPool.put(fromPool);
131 bitmapPool
[all...]
H A DBitmapPreFiller.java22 private final BitmapPool bitmapPool; field in class:BitmapPreFiller
28 public BitmapPreFiller(MemoryCache memoryCache, BitmapPool bitmapPool, DecodeFormat defaultFormat) { argument
30 this.bitmapPool = bitmapPool;
50 current = new BitmapPreFillRunner(bitmapPool, memoryCache, allocationOrder);
56 final int maxSize = memoryCache.getMaxSize() - memoryCache.getCurrentSize() + bitmapPool.getMaxSize();
/external/glide/library/src/main/java/com/bumptech/glide/
H A DGlideBuilder.java29 private BitmapPool bitmapPool; field in class:GlideBuilder
44 * @param bitmapPool The pool to use.
47 public GlideBuilder setBitmapPool(BitmapPool bitmapPool) { argument
48 this.bitmapPool = bitmapPool;
155 if (bitmapPool == null) {
157 bitmapPool = new LruBitmapPool(calculator.getBitmapPoolSize());
159 bitmapPool = new BitmapPoolAdapter();
185 return new Glide(engine, memoryCache, bitmapPool, context, decodeFormat);
H A DGlide.java88 private final BitmapPool bitmapPool; field in class:Glide
187 Glide(Engine engine, MemoryCache memoryCache, BitmapPool bitmapPool, Context context, DecodeFormat decodeFormat) { argument
189 this.bitmapPool = bitmapPool;
194 bitmapPreFiller = new BitmapPreFiller(memoryCache, bitmapPool, decodeFormat);
199 new StreamBitmapDataLoadProvider(bitmapPool, decodeFormat);
203 new FileDescriptorBitmapDataLoadProvider(bitmapPool, decodeFormat);
211 new GifDrawableLoadProvider(context, bitmapPool);
215 new ImageVideoGifDrawableLoadProvider(imageVideoDataLoadProvider, gifDrawableLoadProvider, bitmapPool));
234 new GlideBitmapDrawableTranscoder(context.getResources(), bitmapPool));
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/
H A DGifBitmapWrapperResourceDecoder.java31 private final BitmapPool bitmapPool; field in class:GifBitmapWrapperResourceDecoder
37 ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool) {
38 this(bitmapDecoder, gifDecoder, bitmapPool, DEFAULT_PARSER, DEFAULT_STREAM_FACTORY);
43 ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool, ImageTypeParser parser,
47 this.bitmapPool = bitmapPool;
111 Resource<Bitmap> bitmapResource = new BitmapResource(drawable.getFirstFrame(), bitmapPool);
36 GifBitmapWrapperResourceDecoder(ResourceDecoder<ImageVideoWrapper, Bitmap> bitmapDecoder, ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool) argument
42 GifBitmapWrapperResourceDecoder(ResourceDecoder<ImageVideoWrapper, Bitmap> bitmapDecoder, ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool, ImageTypeParser parser, BufferedStreamFactory streamFactory) argument

Completed in 213 milliseconds

12