Class AvifStreamBitmapDecoder
java.lang.Object
com.bumptech.glide.integration.avif.AvifStreamBitmapDecoder
- All Implemented Interfaces:
com.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap>
public final class AvifStreamBitmapDecoder
extends Object
implements com.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap>
A Glide
ResourceDecoder capable of decoding Avif Images.-
Constructor Summary
ConstructorsConstructorDescriptionAvifStreamBitmapDecoder(List<com.bumptech.glide.load.ImageHeaderParser> parsers, AvifByteBufferBitmapDecoder avifByteBufferDecoder, com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool arrayPool) -
Method Summary
Modifier and TypeMethodDescriptioncom.bumptech.glide.load.engine.Resource<Bitmap>decode(InputStream source, int width, int height, com.bumptech.glide.load.Options options) booleanhandles(InputStream source, com.bumptech.glide.load.Options options)
-
Constructor Details
-
AvifStreamBitmapDecoder
public AvifStreamBitmapDecoder(List<com.bumptech.glide.load.ImageHeaderParser> parsers, AvifByteBufferBitmapDecoder avifByteBufferDecoder, com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool arrayPool)
-
-
Method Details
-
decode
@Nullable public com.bumptech.glide.load.engine.Resource<Bitmap> decode(InputStream source, int width, int height, com.bumptech.glide.load.Options options) throws IOException - Specified by:
decodein interfacecom.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap> - Throws:
IOException
-
handles
public boolean handles(InputStream source, com.bumptech.glide.load.Options options) throws IOException - Specified by:
handlesin interfacecom.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap> - Throws:
IOException
-