Search in sources :

Example 1 with GifHeaderParser

use of com.bumptech.glide.gifdecoder.GifHeaderParser in project glide by bumptech.

the class ReEncodingGifResourceEncoder method decodeHeaders.

private GifDecoder decodeHeaders(ByteBuffer data) {
    GifHeaderParser parser = factory.buildParser();
    parser.setData(data);
    GifHeader header = parser.parseHeader();
    GifDecoder decoder = factory.buildDecoder(provider);
    decoder.setData(header, data);
    decoder.advance();
    return decoder;
}
Also used : GifDecoder(com.bumptech.glide.gifdecoder.GifDecoder) StandardGifDecoder(com.bumptech.glide.gifdecoder.StandardGifDecoder) GifHeaderParser(com.bumptech.glide.gifdecoder.GifHeaderParser) GifHeader(com.bumptech.glide.gifdecoder.GifHeader)

Aggregations

GifDecoder (com.bumptech.glide.gifdecoder.GifDecoder)1 GifHeader (com.bumptech.glide.gifdecoder.GifHeader)1 GifHeaderParser (com.bumptech.glide.gifdecoder.GifHeaderParser)1 StandardGifDecoder (com.bumptech.glide.gifdecoder.StandardGifDecoder)1