Class AvifStreamBitmapDecoder

  • All Implemented Interfaces:
    com.bumptech.glide.load.ResourceDecoder<java.io.InputStream,​android.graphics.Bitmap>

    public final class AvifStreamBitmapDecoder
    extends java.lang.Object
    implements com.bumptech.glide.load.ResourceDecoder<java.io.InputStream,​android.graphics.Bitmap>
    A Glide ResourceDecoder capable of decoding Avif Images.
    • Constructor Summary

      Constructors 
      Constructor Description
      AvifStreamBitmapDecoder​(java.util.List<com.bumptech.glide.load.ImageHeaderParser> parsers, AvifByteBufferBitmapDecoder avifByteBufferDecoder, com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool arrayPool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> decode​(java.io.InputStream source, int width, int height, com.bumptech.glide.load.Options options)  
      boolean handles​(java.io.InputStream source, com.bumptech.glide.load.Options options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvifStreamBitmapDecoder

        public AvifStreamBitmapDecoder​(java.util.List<com.bumptech.glide.load.ImageHeaderParser> parsers,
                                       AvifByteBufferBitmapDecoder avifByteBufferDecoder,
                                       com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool arrayPool)
    • Method Detail

      • decode

        @Nullable
        public com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> decode​(java.io.InputStream source,
                                                                                       int width,
                                                                                       int height,
                                                                                       com.bumptech.glide.load.Options options)
                                                                                throws java.io.IOException
        Specified by:
        decode in interface com.bumptech.glide.load.ResourceDecoder<java.io.InputStream,​android.graphics.Bitmap>
        Throws:
        java.io.IOException
      • handles

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