StreamGifDecoder
A relatively inefficient decoder for com.bumptech.glide.load.resource.gif.GifDrawable that converts java.io.InputStreams to java.nio.ByteBuffers and then passes the buffer to a wrapped decoder.
Constructors
Link copied to clipboard
open fun StreamGifDecoder( parsers: List<ImageHeaderParser>, byteBufferDecoder: ResourceDecoder<ByteBuffer, GifDrawable>, byteArrayPool: ArrayPool)
Content copied to clipboard
Functions
Link copied to clipboard
open fun decode( source: InputStream, width: Int, height: Int, options: Options): Resource<GifDrawable>
Content copied to clipboard
Returns a decoded resource from the given data or null if no resource could be decoded.
Link copied to clipboard
Returns
true
if this decoder is capable of decoding the given source with the given options, and false
otherwise.