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 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:
      decode in interface com.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap>
      Throws:
      IOException
    • handles

      public boolean handles(InputStream source, com.bumptech.glide.load.Options options) throws IOException
      Specified by:
      handles in interface com.bumptech.glide.load.ResourceDecoder<InputStream,Bitmap>
      Throws:
      IOException