Home
last modified time | relevance | path

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

12

/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DStreamBitmapDecoder.java22 private BitmapPool bitmapPool; field in StreamBitmapDecoder
30 public StreamBitmapDecoder(BitmapPool bitmapPool) { in StreamBitmapDecoder() argument
31 this(bitmapPool, DecodeFormat.DEFAULT); in StreamBitmapDecoder()
38 public StreamBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) { in StreamBitmapDecoder() argument
39 this(Downsampler.AT_LEAST, bitmapPool, decodeFormat); in StreamBitmapDecoder()
42 …public StreamBitmapDecoder(Downsampler downsampler, BitmapPool bitmapPool, DecodeFormat decodeForm… in StreamBitmapDecoder() argument
44 this.bitmapPool = bitmapPool; in StreamBitmapDecoder()
50 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat); in decode()
51 return BitmapResource.obtain(bitmap, bitmapPool); in decode()
DBitmapResource.java14 private final BitmapPool bitmapPool; field in BitmapResource
23 public static BitmapResource obtain(Bitmap bitmap, BitmapPool bitmapPool) { in obtain() argument
27 return new BitmapResource(bitmap, bitmapPool); in obtain()
31 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) { in BitmapResource() argument
35 if (bitmapPool == null) { in BitmapResource()
39 this.bitmapPool = bitmapPool; in BitmapResource()
54 if (!bitmapPool.put(bitmap)) { in recycle()
DFileDescriptorBitmapDecoder.java21 private final BitmapPool bitmapPool; field in FileDescriptorBitmapDecoder
32 public FileDescriptorBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) { in FileDescriptorBitmapDecoder() argument
33 this(new VideoBitmapDecoder(), bitmapPool, decodeFormat); in FileDescriptorBitmapDecoder()
36 public FileDescriptorBitmapDecoder(VideoBitmapDecoder bitmapDecoder, BitmapPool bitmapPool, in FileDescriptorBitmapDecoder() argument
39 this.bitmapPool = bitmapPool; in FileDescriptorBitmapDecoder()
45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); in decode()
46 return BitmapResource.obtain(bitmap, bitmapPool); in decode()
DBitmapTransformation.java33 private BitmapPool bitmapPool; field in BitmapTransformation
39 public BitmapTransformation(BitmapPool bitmapPool) { in BitmapTransformation() argument
40 this.bitmapPool = bitmapPool; in BitmapTransformation()
50 Bitmap transformed = transform(bitmapPool, toTransform, outWidth, outHeight); in transform()
56 result = BitmapResource.obtain(transformed, bitmapPool); in transform()
DGlideBitmapDrawableResource.java11 private final BitmapPool bitmapPool; field in GlideBitmapDrawableResource
13 public GlideBitmapDrawableResource(GlideBitmapDrawable drawable, BitmapPool bitmapPool) { in GlideBitmapDrawableResource() argument
15 this.bitmapPool = bitmapPool; in GlideBitmapDrawableResource()
25 bitmapPool.put(drawable.getBitmap()); in recycle()
DBitmapDrawableResource.java19 private final BitmapPool bitmapPool; field in BitmapDrawableResource
21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) { in BitmapDrawableResource() argument
23 this.bitmapPool = bitmapPool; in BitmapDrawableResource()
33 bitmapPool.put(drawable.getBitmap()); in recycle()
DFileDescriptorBitmapDataLoadProvider.java27 public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) { in FileDescriptorBitmapDataLoadProvider() argument
28 … cacheDecoder = new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(bitmapPool, decodeFormat)); in FileDescriptorBitmapDataLoadProvider()
29 sourceDecoder = new FileDescriptorBitmapDecoder(bitmapPool, decodeFormat); in FileDescriptorBitmapDataLoadProvider()
DFitCenter.java18 public FitCenter(BitmapPool bitmapPool) { in FitCenter() argument
19 super(bitmapPool); in FitCenter()
DCenterCrop.java20 public CenterCrop(BitmapPool bitmapPool) { in CenterCrop() argument
21 super(bitmapPool); in CenterCrop()
DStreamBitmapDataLoadProvider.java27 public StreamBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) { in StreamBitmapDataLoadProvider() argument
29 decoder = new StreamBitmapDecoder(bitmapPool, decodeFormat); in StreamBitmapDataLoadProvider()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
DBitmapPreFillRunner.java56 private final BitmapPool bitmapPool; field in BitmapPreFillRunner
66 …public BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocation… in BitmapPreFillRunner() argument
67 …this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper())); in BitmapPreFillRunner()
71 …BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder, … in BitmapPreFillRunner() argument
73 this.bitmapPool = bitmapPool; in BitmapPreFillRunner()
98 memoryCache.put(new UniqueKey(), BitmapResource.obtain(bitmap, bitmapPool)); in allocate()
124 Bitmap fromPool = bitmapPool.get(toAllocate.getWidth(), toAllocate.getHeight(), in addToBitmapPool()
127 bitmapPool.put(fromPool); in addToBitmapPool()
131 bitmapPool.put(bitmap); in addToBitmapPool()
DBitmapPreFiller.java22 private final BitmapPool bitmapPool; field in BitmapPreFiller
28 …public BitmapPreFiller(MemoryCache memoryCache, BitmapPool bitmapPool, DecodeFormat defaultFormat)… in BitmapPreFiller() argument
30 this.bitmapPool = bitmapPool; in BitmapPreFiller()
50 current = new BitmapPreFillRunner(bitmapPool, memoryCache, allocationOrder); in preFill()
56 …final int maxSize = memoryCache.getMaxSize() - memoryCache.getCurrentSize() + bitmapPool.getMaxSiz… in generateAllocationOrder()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifBitmapProvider.java10 private final BitmapPool bitmapPool; field in GifBitmapProvider
12 public GifBitmapProvider(BitmapPool bitmapPool) { in GifBitmapProvider() argument
13 this.bitmapPool = bitmapPool; in GifBitmapProvider()
18 return bitmapPool.getDirty(width, height, config); in obtain()
23 if (!bitmapPool.put(bitmap)) { in release()
DGifResourceEncoder.java29 private final BitmapPool bitmapPool; field in GifResourceEncoder
32 public GifResourceEncoder(BitmapPool bitmapPool) { in GifResourceEncoder() argument
33 this(bitmapPool, FACTORY); in GifResourceEncoder()
37 GifResourceEncoder(BitmapPool bitmapPool, Factory factory) { in GifResourceEncoder() argument
38 this.bitmapPool = bitmapPool; in GifResourceEncoder()
39 provider = new GifBitmapProvider(bitmapPool); in GifResourceEncoder()
115 Resource<Bitmap> bitmapResource = factory.buildFrameResource(currentFrame, bitmapPool); in getTransformedFrame()
144 public Resource<Bitmap> buildFrameResource(Bitmap bitmap, BitmapPool bitmapPool) { in buildFrameResource() argument
145 return new BitmapResource(bitmap, bitmapPool); in buildFrameResource()
DGifDrawable.java70 …ublic GifDrawable(Context context, GifDecoder.BitmapProvider bitmapProvider, BitmapPool bitmapPool, in GifDrawable() argument
74 bitmapProvider, bitmapPool, firstFrame)); in GifDrawable()
90 …wable(GifDecoder decoder, GifFrameManager frameManager, Bitmap firstFrame, BitmapPool bitmapPool) { in GifDrawable() argument
94 state.bitmapPool = bitmapPool; in GifDrawable()
284 state.bitmapPool.put(state.firstFrame); in recycle()
321 BitmapPool bitmapPool; field in GifDrawable.GifState
326 GifDecoder.BitmapProvider provider, BitmapPool bitmapPool, Bitmap firstFrame) { in GifState() argument
332 this.bitmapPool = bitmapPool; in GifState()
350 bitmapPool = original.bitmapPool; in GifState()
DGifFrameResourceDecoder.java12 private final BitmapPool bitmapPool; field in GifFrameResourceDecoder
14 public GifFrameResourceDecoder(BitmapPool bitmapPool) { in GifFrameResourceDecoder() argument
15 this.bitmapPool = bitmapPool; in GifFrameResourceDecoder()
21 return BitmapResource.obtain(bitmap, bitmapPool); in decode()
DGifResourceDecoder.java33 private final BitmapPool bitmapPool; field in GifResourceDecoder
41 public GifResourceDecoder(Context context, BitmapPool bitmapPool) { in GifResourceDecoder() argument
42 this(context, bitmapPool, PARSER_POOL, DECODER_POOL); in GifResourceDecoder()
46 GifResourceDecoder(Context context, BitmapPool bitmapPool, GifHeaderParserPool parserPool, in GifResourceDecoder() argument
49 this.bitmapPool = bitmapPool; in GifResourceDecoder()
51 this.provider = new GifBitmapProvider(bitmapPool); in GifResourceDecoder()
82 …GifDrawable gifDrawable = new GifDrawable(context, provider, bitmapPool, unitTransformation, width… in decode()
DGifDrawableTransformation.java16 private final BitmapPool bitmapPool; field in GifDrawableTransformation
18 public GifDrawableTransformation(Transformation<Bitmap> wrapped, BitmapPool bitmapPool) { in GifDrawableTransformation() argument
20 this.bitmapPool = bitmapPool; in GifDrawableTransformation()
32 Resource<Bitmap> bitmapResource = new BitmapResource(firstFrame, bitmapPool); in transform()
DGifDrawableLoadProvider.java26 public GifDrawableLoadProvider(Context context, BitmapPool bitmapPool) { in GifDrawableLoadProvider() argument
27 decoder = new GifResourceDecoder(context, bitmapPool); in GifDrawableLoadProvider()
29 encoder = new GifResourceEncoder(bitmapPool); in GifDrawableLoadProvider()
/external/glide/library/src/main/java/com/bumptech/glide/
DGlideBuilder.java29 private BitmapPool bitmapPool; field in GlideBuilder
47 public GlideBuilder setBitmapPool(BitmapPool bitmapPool) { in setBitmapPool() argument
48 this.bitmapPool = bitmapPool; in setBitmapPool()
155 if (bitmapPool == null) { in createGlide()
157 bitmapPool = new LruBitmapPool(calculator.getBitmapPoolSize()); in createGlide()
159 bitmapPool = new BitmapPoolAdapter(); in createGlide()
185 return new Glide(engine, memoryCache, bitmapPool, context, decodeFormat); in createGlide()
DGlide.java88 private final BitmapPool bitmapPool; field in Glide
187 …Glide(Engine engine, MemoryCache memoryCache, BitmapPool bitmapPool, Context context, DecodeFormat… in Glide() argument
189 this.bitmapPool = bitmapPool; in Glide()
194 bitmapPreFiller = new BitmapPreFiller(memoryCache, bitmapPool, decodeFormat); in Glide()
199 new StreamBitmapDataLoadProvider(bitmapPool, decodeFormat); in Glide()
203 new FileDescriptorBitmapDataLoadProvider(bitmapPool, decodeFormat); in Glide()
211 new GifDrawableLoadProvider(context, bitmapPool); in Glide()
215 …mageVideoGifDrawableLoadProvider(imageVideoDataLoadProvider, gifDrawableLoadProvider, bitmapPool)); in Glide()
234 new GlideBitmapDrawableTranscoder(context.getResources(), bitmapPool)); in Glide()
237 new GlideBitmapDrawableTranscoder(context.getResources(), bitmapPool))); in Glide()
[all …]
DBitmapRequestBuilder.java48 private final BitmapPool bitmapPool; field in BitmapRequestBuilder
58 this.bitmapPool = other.glide.getBitmapPool(); in BitmapRequestBuilder()
61 imageDecoder = new StreamBitmapDecoder(bitmapPool, decodeFormat); in BitmapRequestBuilder()
62 videoDecoder = new FileDescriptorBitmapDecoder(bitmapPool, decodeFormat); in BitmapRequestBuilder()
112 imageDecoder = new StreamBitmapDecoder(downsampler, bitmapPool, decodeFormat); in downsample()
240 imageDecoder = new StreamBitmapDecoder(downsampler, bitmapPool, format); in format()
241 … videoDecoder = new FileDescriptorBitmapDecoder(new VideoBitmapDecoder(), bitmapPool, format); in format()
242 …Decoder(new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(downsampler, bitmapPool, format))); in format()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/
DGlideBitmapDrawableTranscoder.java19 private final BitmapPool bitmapPool; field in GlideBitmapDrawableTranscoder
25 public GlideBitmapDrawableTranscoder(Resources resources, BitmapPool bitmapPool) { in GlideBitmapDrawableTranscoder() argument
27 this.bitmapPool = bitmapPool; in GlideBitmapDrawableTranscoder()
33 return new GlideBitmapDrawableResource(drawable, bitmapPool); in transcode()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/
DGifBitmapWrapperResourceDecoder.java31 private final BitmapPool bitmapPool; field in GifBitmapWrapperResourceDecoder
37 ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool) { in GifBitmapWrapperResourceDecoder() argument
38 this(bitmapDecoder, gifDecoder, bitmapPool, DEFAULT_PARSER, DEFAULT_STREAM_FACTORY); in GifBitmapWrapperResourceDecoder()
43 …ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool, ImageTypeParser parse… in GifBitmapWrapperResourceDecoder() argument
47 this.bitmapPool = bitmapPool; in GifBitmapWrapperResourceDecoder()
111 … Resource<Bitmap> bitmapResource = new BitmapResource(drawable.getFirstFrame(), bitmapPool); in decodeGifWrapper()
DImageVideoGifDrawableLoadProvider.java29 DataLoadProvider<InputStream, GifDrawable> gifProvider, BitmapPool bitmapPool) { in ImageVideoGifDrawableLoadProvider() argument
34 bitmapPool in ImageVideoGifDrawableLoadProvider()

12