Lines Matching defs:palette
25 1.28 (2010-08-01) fix bug in GIF palette transparency (SpartanJ)
2865 static int expand_palette(png *a, uint8 *palette, int len, int pal_img_n)
2879 p[0] = palette[n ];
2880 p[1] = palette[n+1];
2881 p[2] = palette[n+2];
2887 p[0] = palette[n ];
2888 p[1] = palette[n+1];
2889 p[2] = palette[n+2];
2890 p[3] = palette[n+3];
2958 uint8 palette[1024], pal_img_n=0;
3009 palette[i*4+0] = get8u(s);
3010 palette[i*4+1] = get8u(s);
3011 palette[i*4+2] = get8u(s);
3012 palette[i*4+3] = 255;
3026 palette[i*4+3] = get8u(s);
3076 if (!expand_palette(z, palette, pal_len, s->img_out_n))
3527 get16le(s); // discard palette start
3528 get16le(s); // discard palette length
3529 get8(s); // discard bits per palette color entry
3574 get16(s); // discard palette start
3575 get16(s); // discard palette length
3576 get8(s); // discard bits per palette color entry
3651 // If I'm paletted, then I'll use the number of bits from the palette
3674 // do I need to load a palette?
3679 // load the palette
3813 // clear my palette, if I had one
3926 // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.)
5012 1.28 (2010-08-01) fix bug in GIF palette transparency (SpartanJ)
5058 0.99 correct handling of alpha in palette