Home
last modified time | relevance | path

Searched refs:GifDecoder (Results 1 – 11 of 11) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifFrameModelLoader.java4 import com.bumptech.glide.gifdecoder.GifDecoder;
8 class GifFrameModelLoader implements ModelLoader<GifDecoder, GifDecoder> {
11 public DataFetcher<GifDecoder> getResourceFetcher(GifDecoder model, int width, int height) { in getResourceFetcher()
15 private static class GifFrameDataFetcher implements DataFetcher<GifDecoder> {
16 private final GifDecoder decoder;
18 public GifFrameDataFetcher(GifDecoder decoder) { in GifFrameDataFetcher()
23 public GifDecoder loadData(Priority priority) { in loadData()
DGifResourceDecoder.java8 import com.bumptech.glide.gifdecoder.GifDecoder;
59 final GifDecoder decoder = decoderPool.obtain(provider); in decode()
68 …leResource decode(byte[] data, int width, int height, GifHeaderParser parser, GifDecoder decoder) { in decode()
70 if (header.getNumFrames() <= 0 || header.getStatus() != GifDecoder.STATUS_OK) { in decode()
88 private Bitmap decodeFirstFrame(GifDecoder decoder, GifHeader header, byte[] data) { in decodeFirstFrame()
118 private final Queue<GifDecoder> pool = Util.createQueue(0);
120 public synchronized GifDecoder obtain(GifDecoder.BitmapProvider bitmapProvider) { in obtain()
121 GifDecoder result = pool.poll(); in obtain()
123 result = new GifDecoder(bitmapProvider); in obtain()
128 public synchronized void release(GifDecoder decoder) { in release()
DGifResourceEncoder.java6 import com.bumptech.glide.gifdecoder.GifDecoder;
28 private final GifDecoder.BitmapProvider provider;
53 GifDecoder decoder = decodeHeaders(drawable.getData()); in encode()
100 private GifDecoder decodeHeaders(byte[] data) { in decodeHeaders()
105 GifDecoder decoder = factory.buildDecoder(provider); in decodeHeaders()
132 public GifDecoder buildDecoder(GifDecoder.BitmapProvider bitmapProvider) { in buildDecoder()
133 return new GifDecoder(bitmapProvider); in buildDecoder()
DGifFrameManager.java12 import com.bumptech.glide.gifdecoder.GifDecoder;
28 private final GifDecoder decoder;
33 private final GenericRequestBuilder<GifDecoder, GifDecoder, Bitmap, Bitmap> requestBuilder;
43 public GifFrameManager(Context context, GifDecoder decoder, int targetWidth, int targetHeight) { in GifFrameManager()
48 …public GifFrameManager(Context context, BitmapPool bitmapPool, GifDecoder decoder, Handler mainHan… in GifFrameManager()
59 Encoder<GifDecoder> sourceEncoder = NullEncoder.get(); in GifFrameManager()
62 .using(frameLoader, GifDecoder.class) in GifFrameManager()
63 .from(GifDecoder.class) in GifFrameManager()
DGifDrawable.java16 import com.bumptech.glide.gifdecoder.GifDecoder;
30 private final GifDecoder decoder;
70 …public GifDrawable(Context context, GifDecoder.BitmapProvider bitmapProvider, BitmapPool bitmapPoo… in GifDrawable()
83 this.decoder = new GifDecoder(state.bitmapProvider); in GifDrawable()
90 …GifDrawable(GifDecoder decoder, GifFrameManager frameManager, Bitmap firstFrame, BitmapPool bitmap… in GifDrawable()
114 public GifDecoder getDecoder() { in getDecoder()
320 GifDecoder.BitmapProvider bitmapProvider;
326 GifDecoder.BitmapProvider provider, BitmapPool bitmapPool, Bitmap firstFrame) { in GifState()
DGifFrameResourceDecoder.java5 import com.bumptech.glide.gifdecoder.GifDecoder;
11 class GifFrameResourceDecoder implements ResourceDecoder<GifDecoder, Bitmap> {
19 public Resource<Bitmap> decode(GifDecoder source, int width, int height) { in decode()
DGifBitmapProvider.java6 import com.bumptech.glide.gifdecoder.GifDecoder;
9 class GifBitmapProvider implements GifDecoder.BitmapProvider {
/external/glide/third_party/gif_decoder/
DREADME.third_party1 …thubusercontent.com/devunwired/4479231/raw/df2725be4ae0f12f5265deaf0a769936ea94950b/GifDecoder.java
7 Implementation of GifDecoder that is more memory efficient to animate for
15 http://show.docjava.com/book/cgij/exportToHTML/ip/gif/stills/GifDecoder.java.html
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/
DGifHeaderParser.java3 import static com.bumptech.glide.gifdecoder.GifDecoder.STATUS_FORMAT_ERROR;
40 header.status = GifDecoder.STATUS_OPEN_ERROR; in setData()
372 return header.status != GifDecoder.STATUS_OK; in err()
DGifHeader.java14 int status = GifDecoder.STATUS_OK;
DGifDecoder.java56 public class GifDecoder { class
57 private static final String TAG = GifDecoder.class.getSimpleName();
154 public GifDecoder(BitmapProvider provider) { in GifDecoder() method in GifDecoder