Home | History | Annotate | Download | only in libtests

Lines Matching defs:CHUNK

22  * an sRGB or the appropriate gAMA chunk is written.  "1.8" refers to the
25 * approximately value^(1/1.45) to the color values and so a gAMA chunk of 65909
44 * given the PNG file has a tRNS chunk, as follows:
54 * The palette always has 2^bit-depth entries and the tRNS chunk one fewer. The
57 * For formats other than color-mapped ones if --tRNS is specified a tRNS chunk
870 * the images look the same regardless of the gAMA chunk.
1487 png_uint_32 chunk = 0;
1491 /* Assemble the chunk name */
1497 chunk = (chunk << 8) + what[i];
1505 fprintf(stderr, "makepng --insert \"%s\": invalid chunk name\n", what);
1512 # define CHUNK(a,b,c,d) (((a)<<24)+((b)<<16)+((c)<<8)+(d))
1514 switch (chunk)
1516 case CHUNK(105,67,67,80): /* iCCP */
1521 case CHUNK(116,69,88,116): /* tEXt */
1526 case CHUNK(122,84,88,116): /* zTXt */
1531 case CHUNK(105,84,88,116): /* iTXt */
1536 case CHUNK(104,73,83,84): /* hIST */
1541 case CHUNK(115,66,73,84): /* sBIT */
1547 case CHUNK(115,80,76,84): /* sPLT */
1552 fprintf(stderr, "makepng --insert \"%s\": unrecognized chunk name\n",
1685 int tRNS = 0; /* don't output a tRNS chunk */