Class AvifByteBufferBitmapDecoder

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

    public final class AvifByteBufferBitmapDecoder
    extends java.lang.Object
    implements com.bumptech.glide.load.ResourceDecoder<java.nio.ByteBuffer,​android.graphics.Bitmap>
    A Glide ResourceDecoder capable of decoding Avif images.
    • Constructor Summary

      Constructors 
      Constructor Description
      AvifByteBufferBitmapDecoder​(com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool bitmapPool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> decode​(java.nio.ByteBuffer source, int width, int height, com.bumptech.glide.load.Options options)  
      boolean handles​(java.nio.ByteBuffer 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

      • AvifByteBufferBitmapDecoder

        public AvifByteBufferBitmapDecoder​(com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool bitmapPool)
    • Method Detail

      • decode

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

        public boolean handles​(java.nio.ByteBuffer source,
                               com.bumptech.glide.load.Options options)
        Specified by:
        handles in interface com.bumptech.glide.load.ResourceDecoder<java.nio.ByteBuffer,​android.graphics.Bitmap>