29 lines
1002 B
Java
29 lines
1002 B
Java
package com.bumptech.glide.load.resource.gif;
|
|
|
|
import android.graphics.Bitmap;
|
|
import com.bumptech.glide.gifdecoder.GifDecoder;
|
|
import com.bumptech.glide.load.Options;
|
|
import com.bumptech.glide.load.ResourceDecoder;
|
|
import com.bumptech.glide.load.engine.Resource;
|
|
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
|
|
import com.bumptech.glide.load.resource.bitmap.BitmapResource;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class GifFrameResourceDecoder implements ResourceDecoder<GifDecoder, Bitmap> {
|
|
private final BitmapPool a;
|
|
|
|
public GifFrameResourceDecoder(BitmapPool bitmapPool) {
|
|
this.a = bitmapPool;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.ResourceDecoder
|
|
public boolean a(GifDecoder gifDecoder, Options options) {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.ResourceDecoder
|
|
public Resource<Bitmap> a(GifDecoder gifDecoder, int i, int i2, Options options) {
|
|
return BitmapResource.a(gifDecoder.a(), this.a);
|
|
}
|
|
}
|