Home | History | Annotate | Download | only in libpng

Lines Matching refs:chunk

15  * the basic chunk handling, filtering, and (de)compression code is working
91 static char tIME_string[PNG_tIME_STRING_LENGTH] = "tIME chunk is not present";
618 /* Demonstration of user chunk support of the sTER and vpAg chunks */
621 /* (sTER is a public chunk not yet known by libpng. vpAg is a private
622 chunk used in ImageMagick to store "virtual page" size). */
633 png_unknown_chunkp chunk)
639 * return (-n); chunk had an error
643 * The unknown chunk structure contains the chunk data:
651 if (chunk->name[0] == 115 && chunk->name[1] == 84 && /* s T */
652 chunk->name[2] == 69 && chunk->name[3] == 82) /* E R */
654 /* Found sTER chunk */
655 if (chunk->size != 1)
657 if (chunk->data[0] != 0 && chunk->data[0] != 1)
660 my_user_chunk_data[0]=chunk->data[0]+1;
664 if (chunk->name[0] != 118 || chunk->name[1] != 112 || /* v p */
665 chunk->name[2] != 65 || chunk->name[3] != 103) /* A g */
668 /* Found ImageMagick vpAg chunk */
670 if (chunk->size != 9)
675 my_user_chunk_data[1]=png_get_uint_31(png_ptr, chunk->data);
676 my_user_chunk_data[2]=png_get_uint_31(png_ptr, chunk->data + 4);
677 my_user_chunk_data[3]=(png_uint_32)chunk->data[8];
683 /* END of code to demonstrate user chunk support */
1128 /* libpng doesn't reject a tRNS chunk with out-of-range samples */
1400 " Was %s written with the same maximum IDAT chunk size (%d bytes),",
1423 " Was %s written with the same maximum IDAT chunk size (%d bytes),",