1 package com.bumptech.glide.gifdecoder; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 public class GifHeader { 7 8 public int[] gct = null; 9 /** 10 * Global status code of GIF data parsing 11 */ 12 public int status = GifDecoder.STATUS_OK; 13 public int frameCount = 0; 14 15 public GifFrame currentFrame; 16 public List<GifFrame> frames = new ArrayList<GifFrame>(); 17 // logical screen size 18 public int width; // full image width 19 public int height; // full image height 20 21 public boolean gctFlag; // 1 : global color table flag 22 // 2-4 : color resolution 23 // 5 : gct sort flag 24 public int gctSize; // 6-8 : gct size 25 public int bgIndex; // background color index 26 public int pixelAspect; // pixel aspect ratio 27 //TODO: this is set both during reading the header and while decoding frames... 28 public int bgColor; 29 public boolean isTransparent; 30 public int loopCount; 31 } 32