chunk 21 contrib/libtests/fakepng.c fwrite(chunk, length, 1, stdout); chunk 24 contrib/libtests/fakepng.c put_uLong(crc32(crc, chunk, length)); chunk 1165 contrib/libtests/makepng.c png_uint_32 chunk = 0; chunk 1175 contrib/libtests/makepng.c chunk = (chunk << 8) + what[i]; chunk 1192 contrib/libtests/makepng.c switch (chunk) chunk 104 contrib/libtests/pngimage.c { #name, PNG_TRANSFORM_ ## name, CHUNK_ ## chunk,\ chunk 500 contrib/libtests/pngunknown.c int chunk = findb(pc->name); chunk 503 contrib/libtests/pngunknown.c if (chunk < 0) /* not one in our list, so not a known chunk */ chunk 508 contrib/libtests/pngunknown.c keep = chunk_info[chunk].keep; chunk 514 contrib/libtests/pngunknown.c if (chunk_info[chunk].unknown) chunk 526 contrib/libtests/pngunknown.c d->test, chunk_info[chunk].keep); chunk 543 contrib/libtests/pngunknown.c if (chunk >= 0) if (!discard) /* stupidity to stop a GCC warning */ chunk 545 contrib/libtests/pngunknown.c png_uint_32 flag = chunk_info[chunk].flag; chunk 580 contrib/libtests/pngunknown.c int chunk = findb(unknown[num_unknown].name); chunk 586 contrib/libtests/pngunknown.c if (chunk < 0) switch (d->keep) chunk 612 contrib/libtests/pngunknown.c flags |= chunk_info[chunk].flag; chunk 696 contrib/libtests/pngunknown.c int chunk, option; chunk 716 contrib/libtests/pngunknown.c chunk = find(argv[i]); chunk 718 contrib/libtests/pngunknown.c if (chunk >= 0) chunk 727 contrib/libtests/pngunknown.c memcpy(name, chunk_info[chunk].name, 5); chunk 729 contrib/libtests/pngunknown.c chunk_info[chunk].keep = option; chunk 751 contrib/libtests/pngunknown.c for (chunk = 0; chunk < NINFO; ++chunk) chunk 752 contrib/libtests/pngunknown.c if (chunk_info[chunk].all) chunk 753 contrib/libtests/pngunknown.c chunk_info[chunk].keep = option; chunk 2230 contrib/libtests/pngvalid.c png_uint_32 chunk; chunk 2263 contrib/libtests/pngvalid.c pmm->chunk = 0; chunk 2485 contrib/libtests/pngvalid.c png_uint_32 len, chunk; chunk 2514 contrib/libtests/pngvalid.c if (mod->chunk == CHUNK_IHDR && mod->modify_fn && chunk 2567 contrib/libtests/pngvalid.c chunk = png_get_uint_32(pm->buffer+4); chunk 2572 contrib/libtests/pngvalid.c if (chunk == CHUNK_PLTE || chunk == CHUNK_IDAT || chunk 2573 contrib/libtests/pngvalid.c chunk == CHUNK_IEND) chunk 2579 contrib/libtests/pngvalid.c if ((mod->add == chunk || chunk 2580 contrib/libtests/pngvalid.c (mod->add == CHUNK_PLTE && chunk == CHUNK_IDAT)) && chunk 2604 contrib/libtests/pngvalid.c pm->pending_chunk = chunk; chunk 2634 contrib/libtests/pngvalid.c if (mod->chunk == chunk) chunk 2804 contrib/libtests/pngvalid.c me->this.chunk = CHUNK_gAMA; chunk 2859 contrib/libtests/pngvalid.c me->this.chunk = CHUNK_cHRM; chunk 2887 contrib/libtests/pngvalid.c me->this.chunk = CHUNK_sBIT; chunk 2967 contrib/libtests/pngvalid.c me->this.chunk = CHUNK_sBIT; chunk 142 contrib/tools/pngfix.c #define CRITICAL(chunk) (((chunk) & PNG_U32(32,0,0,0)) == 0) chunk 145 contrib/tools/pngfix.c #define SAFE_TO_COPY(chunk) (((chunk) & PNG_U32(0,0,0,32)) != 0) chunk 828 contrib/tools/pngfix.c struct chunk; chunk 890 contrib/tools/pngfix.c struct chunk * chunk; chunk 996 contrib/tools/pngfix.c if (file->chunk != NULL) chunk 997 contrib/tools/pngfix.c chunk_end(&file->chunk); chunk 1049 contrib/tools/pngfix.c file->chunk = NULL; chunk 1151 contrib/tools/pngfix.c if (file->chunk != NULL) chunk 1567 contrib/tools/pngfix.c type_message(chunk->file, chunk->chunk_type, message); chunk 1573 contrib/tools/pngfix.c struct chunk *chunk = *chunk_var; chunk 1576 contrib/tools/pngfix.c CLEAR(*chunk); chunk 1588 contrib/tools/pngfix.c assert(file->chunk == NULL); chunk 1590 contrib/tools/pngfix.c CLEAR(*chunk); chunk 1592 contrib/tools/pngfix.c chunk->file = file; chunk 1593 contrib/tools/pngfix.c chunk->global = file->global; chunk 1595 contrib/tools/pngfix.c chunk->chunk_data_pos = file->data_pos; chunk 1596 contrib/tools/pngfix.c chunk->chunk_length = file->length; chunk 1597 contrib/tools/pngfix.c chunk->chunk_type = file->type; chunk 1602 contrib/tools/pngfix.c chunk->uncompressed_digits = 0; chunk 1603 contrib/tools/pngfix.c chunk->compressed_digits = 0; chunk 1605 contrib/tools/pngfix.c file->chunk = chunk; chunk 1617 contrib/tools/pngfix.c if (file->chunk != NULL) chunk 1619 contrib/tools/pngfix.c png_uint_32 type = file->chunk->chunk_type; chunk 1643 contrib/tools/pngfix.c chunk->file->read_count = 8; chunk 1644 contrib/tools/pngfix.c file_setpos(chunk->file, &chunk->chunk_data_pos); chunk 1666 contrib/tools/pngfix.c struct chunk *chunk = file->chunk; chunk 1670 contrib/tools/pngfix.c assert(chunk != NULL && file->idat == NULL); chunk 1671 contrib/tools/pngfix.c length = chunk->chunk_length; chunk 1672 contrib/tools/pngfix.c setpos(chunk); chunk 1687 contrib/tools/pngfix.c chunk_message(chunk, "too short"); chunk 1695 contrib/tools/pngfix.c struct chunk *chunk = file->chunk; chunk 1699 contrib/tools/pngfix.c assert(chunk != NULL && file->idat == NULL); chunk 1700 contrib/tools/pngfix.c length = chunk->chunk_length; chunk 1701 contrib/tools/pngfix.c setpos(chunk); chunk 1778 contrib/tools/pngfix.c assert(file->chunk != NULL); chunk 1779 contrib/tools/pngfix.c chunk_end(&file->chunk); chunk 1797 contrib/tools/pngfix.c assert(file->chunk == NULL); chunk 1815 contrib/tools/pngfix.c assert(file->chunk != NULL); chunk 1924 contrib/tools/pngfix.c assert(file->idat != NULL && file->chunk != NULL); chunk 1950 contrib/tools/pngfix.c list->lengths[(list->count)++] = file->chunk->chunk_length; chunk 1963 contrib/tools/pngfix.c setpos(file->chunk); chunk 1974 contrib/tools/pngfix.c file->chunk->uncompressed_bytes, file->chunk->uncompressed_digits); chunk 1986 contrib/tools/pngfix.c setpos(file->chunk); chunk 1995 contrib/tools/pngfix.c file->chunk->chunk_length = rechunk_length(idat); chunk 2012 contrib/tools/pngfix.c struct chunk * chunk; chunk 2084 contrib/tools/pngfix.c type_name(zlib->chunk->chunk_type, stderr); chunk 2118 contrib/tools/pngfix.c type_name(zlib->chunk->chunk_type, stdout); chunk 2143 contrib/tools/pngfix.c type_name(zlib->chunk->chunk_type, stdout); chunk 2200 contrib/tools/pngfix.c zlib->chunk = chunk; chunk 2201 contrib/tools/pngfix.c zlib->file = chunk->file; chunk 2202 contrib/tools/pngfix.c zlib->global = chunk->global; chunk 2453 contrib/tools/pngfix.c struct chunk *chunk = zlib->chunk; chunk 2455 contrib/tools/pngfix.c chunk->uncompressed_digits = uarb_copy(chunk->uncompressed_bytes, chunk 2457 contrib/tools/pngfix.c chunk->compressed_digits = uarb_copy(chunk->compressed_bytes, chunk 2459 contrib/tools/pngfix.c chunk->rewrite_buffer[0] = zlib->header[0]; chunk 2460 contrib/tools/pngfix.c chunk->rewrite_buffer[1] = zlib->header[1]; chunk 2465 contrib/tools/pngfix.c chunk->rewrite_offset = zlib->rewrite_offset; chunk 2466 contrib/tools/pngfix.c chunk->rewrite_length = 2; chunk 2471 contrib/tools/pngfix.c chunk->rewrite_offset = 0; chunk 2472 contrib/tools/pngfix.c chunk->rewrite_length = 0; chunk 2476 contrib/tools/pngfix.c chunk_message(chunk, "extra compressed data"); chunk 2548 contrib/tools/pngfix.c chunk_message(zlib->chunk, chunk 2586 contrib/tools/pngfix.c struct chunk *chunk = zlib->chunk; chunk 2589 contrib/tools/pngfix.c assert(zlib->rewrite_offset < chunk->chunk_length); chunk 2591 contrib/tools/pngfix.c rc = zlib_advance(zlib, chunk->chunk_length - zlib->rewrite_offset); chunk 2598 contrib/tools/pngfix.c chunk->chunk_length -= zlib->extra_bytes; chunk 2625 contrib/tools/pngfix.c if (zlib_init(&zlib, file->idat, file->chunk, 0/*window bits*/, offset)) chunk 2664 contrib/tools/pngfix.c chunk_message(zlib.chunk, "zlib checkum"); chunk 2852 contrib/tools/pngfix.c assert(file->chunk != NULL); chunk 2853 contrib/tools/pngfix.c assert(file->chunk->chunk_type == png_IDAT); chunk 2854 contrib/tools/pngfix.c file->chunk->chunk_length = file->length; chunk 2870 contrib/tools/pngfix.c file->chunk->rewrite_length = 0; chunk 2871 contrib/tools/pngfix.c file->chunk->rewrite_offset = 0; chunk 2883 contrib/tools/pngfix.c struct chunk *chunk = file->chunk; chunk 2885 contrib/tools/pngfix.c if (chunk->chunk_length != 13) chunk 2889 contrib/tools/pngfix.c setpos(chunk); chunk 2909 contrib/tools/pngfix.c chunk_end(&file->chunk); chunk 2916 contrib/tools/pngfix.c chunk_end(&file->chunk); chunk 3189 contrib/tools/pngfix.c struct chunk *chunk; chunk 3245 contrib/tools/pngfix.c chunk = file->chunk; chunk 3247 contrib/tools/pngfix.c if (chunk != NULL) chunk 3249 contrib/tools/pngfix.c length = chunk->chunk_length; chunk 3250 contrib/tools/pngfix.c type = chunk->chunk_type; chunk 3276 contrib/tools/pngfix.c if (file->state != STATE_SIGNATURE && chunk == NULL) chunk 3281 contrib/tools/pngfix.c chunk = file->chunk; chunk 3282 contrib/tools/pngfix.c assert(chunk != NULL); chunk 3285 contrib/tools/pngfix.c length = chunk->chunk_length; chunk 3286 contrib/tools/pngfix.c type = chunk->chunk_type; chunk 3328 contrib/tools/pngfix.c assert(chunk != NULL); chunk 3336 contrib/tools/pngfix.c chunk->write_crc = crc_init_4(type); chunk 3338 contrib/tools/pngfix.c setpos(chunk); chunk 3343 contrib/tools/pngfix.c assert(chunk != NULL); chunk 3417 contrib/tools/pngfix.c if (chunk->rewrite_length > 0) chunk 3419 contrib/tools/pngfix.c if (chunk->rewrite_offset > 0) chunk 3420 contrib/tools/pngfix.c --(chunk->rewrite_offset); chunk 3424 contrib/tools/pngfix.c b = chunk->rewrite_buffer[0]; chunk 3425 contrib/tools/pngfix.c memmove(chunk->rewrite_buffer, chunk->rewrite_buffer+1, chunk 3426 contrib/tools/pngfix.c (sizeof chunk->rewrite_buffer)- chunk 3427 contrib/tools/pngfix.c (sizeof chunk->rewrite_buffer[0])); chunk 3429 contrib/tools/pngfix.c --(chunk->rewrite_length); chunk 3433 contrib/tools/pngfix.c chunk->write_crc = crc_one_byte(chunk->write_crc, b); chunk 3442 contrib/tools/pngfix.c case 8: b = chunk->write_crc >> 24; goto write_crc; chunk 3443 contrib/tools/pngfix.c case 9: b = chunk->write_crc >> 16; goto write_crc; chunk 3444 contrib/tools/pngfix.c case 10: b = chunk->write_crc >> 8; goto write_crc; chunk 3447 contrib/tools/pngfix.c b = chunk->write_crc; chunk 3454 contrib/tools/pngfix.c chunk->write_crc ^ 0xffffffff); chunk 3472 contrib/tools/pngfix.c length = chunk->chunk_length = rechunk_length(file->idat); chunk 3483 contrib/tools/pngfix.c if (chunk->rewrite_length > 0 || chunk->rewrite_offset > 0) chunk 3494 contrib/tools/pngfix.c chunk_end(&file->chunk); chunk 3522 contrib/tools/pngfix.c struct chunk chunk; chunk 3556 contrib/tools/pngfix.c assert(file->chunk == NULL); chunk 3557 contrib/tools/pngfix.c chunk_init(&control->chunk, file); chunk 2451 png.h (png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location)); chunk 1211 pngset.c if (png_ptr != NULL && info_ptr != NULL && chunk >= 0 && chunk 1212 pngset.c chunk < info_ptr->unknown_chunks_num) chunk 1225 pngset.c info_ptr->unknown_chunks[chunk].location = chunk 692 pngtest.c if (chunk->name[0] == 115 && chunk->name[1] == 84 && /* s T */ chunk 693 pngtest.c chunk->name[2] == 69 && chunk->name[3] == 82) /* E R */ chunk 696 pngtest.c if (chunk->size != 1) chunk 699 pngtest.c if (chunk->data[0] != 0 && chunk->data[0] != 1) chunk 704 pngtest.c my_user_chunk_data->sTER_mode=chunk->data[0]; chunk 712 pngtest.c if (chunk->name[0] != 118 || chunk->name[1] != 112 || /* v p */ chunk 713 pngtest.c chunk->name[2] != 65 || chunk->name[3] != 103) /* A g */ chunk 718 pngtest.c if (chunk->size != 9) chunk 724 pngtest.c my_user_chunk_data->vpAg_width = png_get_uint_31(png_ptr, chunk->data); chunk 725 pngtest.c my_user_chunk_data->vpAg_height = png_get_uint_31(png_ptr, chunk->data + 4); chunk 726 pngtest.c my_user_chunk_data->vpAg_units = chunk->data[8];