Class AvifByteBufferBitmapDecoder

java.lang.Object
com.bumptech.glide.integration.avif.AvifByteBufferBitmapDecoder
All Implemented Interfaces:
com.bumptech.glide.load.ResourceDecoder<ByteBuffer,Bitmap>

public final class AvifByteBufferBitmapDecoder extends Object implements com.bumptech.glide.load.ResourceDecoder<ByteBuffer,Bitmap>
A Glide ResourceDecoder capable of decoding Avif images.
  • Constructor Details

    • AvifByteBufferBitmapDecoder

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

    • decode

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

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