Lines Matching full:palette
91 LCT_PALETTE = 3, /*palette: 1,2,4,8 bit*/
319 palette (PLTE and tRNS)
321 Dynamically allocated with the colors of the palette, including alpha.
322 When encoding a PNG, to store your colors in the palette of the LodePNGColorMode, first use
324 If you encode an image without alpha with palette, don't forget to put value 255 in each A byte of the palette.
326 When decoding, by default you can ignore this palette, since LodePNG already
327 fills the palette colors in the pixels of the raw RGBA output.
329 The palette is only supported for color type 3.
331 unsigned char* palette; /*palette in RGBARGBA... order. When allocated, must be either 0, or have size 1024*/
332 size_t palettesize; /*palette size in number of colors (amount of bytes is 4 * palettesize)*/
358 /*add 1 color to the palette*/
365 If a palette is used, it counts as 1 channel.*/
371 /*has it got a palette? (only colortype 3)*/
373 /*only returns true if there is a palette and there is a value in the palette with alpha < 255.
374 Loops through the palette to check this.*/
380 In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque values,
403 /*header (IHDR), palette (PLTE) and transparency (tRNS) chunks*/
407 LodePNGColorMode color; /*color type and bits, palette and transparency of the PNG file*/
415 the encoder writes the red one. For palette PNGs: When decoding, the RGB value
416 will be stored, not a palette index. But when encoding, specify the index of
417 the palette in background_r, the other two are then ignored.
522 is implemented: if a palette index is out of bounds given the palette size,
571 like AUTO, but never choose palette color type. For small images, encoding
572 the palette may take more bytes than what is gained. Note that AUTO also
573 already prevents encoding the palette for extremely small images, but that may
584 output image, e.g. grey if there are only greyscale pixels, palette if there
586 The auto_convert parameter allows limiting it to not use palette, ...
600 /*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than
611 must be set to 0 to ensure this is also used on palette or low bitdepth images.*/
614 /*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette).
1002 PLTE: color palette
1098 a palette with missing colors.
1146 colortype and bitdepth, text chunks, time chunk, the color key, the palette, the
1150 If the palette contains any colors for which the alpha channel is not 255 (so
1151 there are translucent colors in the palette), it'll add a tRNS chunk.
1157 including a possible transparent color key and palette you happen to be using in
1178 chunk if force_palette is true. This can used as suggested palette to convert
1193 no matter whether the PNG was encoded with a palette, greyscale or RGBA color.
1202 palette when the palette doesn't have a required color is not supported. This is
1227 3: palette, bit depths 1, 2, 4 and 8
1278 -anything, to palette when that palette does not have that color in it: in this
1284 -anything to a palette, as long as the palette has the requested colors in it
1586 (no palette). Better deflate tree encoding. New compression tweak settings.
1651 *) 12 may 2007: palette decoding bug fixed
1655 palettized PNG images. Plus little interface change with palette and texts.
1691 Changed position of palette in info vector. Fixed an important bug that