file              995 contrib/libtests/makepng.c             png_bytep file = NULL;
file              997 contrib/libtests/makepng.c             text->text_length = load_file(param+1, &file);
file              998 contrib/libtests/makepng.c             text->text = (png_charp)file;
file             1479 contrib/libtests/pngimage.c       test_one_file(dp, file);
file              386 contrib/libtests/pngunknown.c    const char *file;
file              401 contrib/libtests/pngunknown.c    d->file = program;
file              413 contrib/libtests/pngunknown.c       fprintf(stderr, "%s(%s): png_destroy_read_struct error\n", d->file,
file              447 contrib/libtests/pngunknown.c    fprintf(stderr, "%s(%s): libpng error: %s\n", d->file, d->test, message);
file              456 contrib/libtests/pngunknown.c    fprintf(stderr, "%s(%s): libpng warning: %s\n", d->file, d->test, message);
file              483 contrib/libtests/pngunknown.c             fprintf(stderr, "%s(%s): unknown text compression %d\n", d->file,
file              525 contrib/libtests/pngunknown.c          fprintf(stderr, "%s(%s): %d: unrecognized chunk option\n", d->file,
file              592 contrib/libtests/pngunknown.c                   d->file, d->test, d->keep ? "discard" : "default",
file              602 contrib/libtests/pngunknown.c                      d->file, d->test, unknown[num_unknown].name);
file              658 contrib/libtests/pngunknown.c       fprintf(stderr, "%s(%s): could not allocate png struct\n", d->file,
file              668 contrib/libtests/pngunknown.c       fprintf(stderr, "%s(%s): could not allocate png info\n", d->file,
file              708 contrib/libtests/pngunknown.c             fprintf(stderr, "%s(%s): %s: unrecognized chunk option\n", d->file,
file              765 contrib/libtests/pngunknown.c       fprintf(stderr, "%s(%s): %s: unrecognized chunk argument\n", d->file,
file              784 contrib/libtests/pngunknown.c          fprintf(stderr, "%s(%s): invalid interlace type\n", d->file, d->test);
file              849 contrib/libtests/pngunknown.c       fprintf(stderr, "%s(%s): chunk %s: %s\n", d->file, d->test,
file              966 contrib/libtests/pngunknown.c          fprintf(stderr, "%s(%s%s): %s %s %s: %s\n", d->file, d->test,
file             1111 contrib/libtests/pngunknown.c    d.file = argv[--argc];
file             1113 contrib/libtests/pngunknown.c    fp = fopen(d.file, "rb");
file             1116 contrib/libtests/pngunknown.c       perror(d.file);
file             1137 contrib/libtests/pngunknown.c       fprintf(stderr, "%s: %s: internal error\n", d.program, d.file);
file              858 contrib/tools/pngfix.c    FILE *         file;          /* Original PNG file */
file              899 contrib/tools/pngfix.c    void         (*alloc)(struct file*,int idat);
file              961 contrib/tools/pngfix.c                                   err = file->read_errno;
file              964 contrib/tools/pngfix.c                                   err = file->write_errno;
file              967 contrib/tools/pngfix.c                                   err = file->read_errno;
file              969 contrib/tools/pngfix.c                                      err = file->write_errno;
file              975 contrib/tools/pngfix.c       fprintf(stderr, "%s: %s %s [%s]\n", file->file_name, reason, what,
file              979 contrib/tools/pngfix.c       fprintf(stderr, "%s: %s %s\n", file->file_name, reason, what);
file              993 contrib/tools/pngfix.c    if (file->idat != NULL)
file              994 contrib/tools/pngfix.c       IDAT_end(&file->idat);
file              996 contrib/tools/pngfix.c    if (file->chunk != NULL)
file              997 contrib/tools/pngfix.c       chunk_end(&file->chunk);
file              999 contrib/tools/pngfix.c    rc = file->status_code;
file             1001 contrib/tools/pngfix.c    if (file->file != NULL)
file             1002 contrib/tools/pngfix.c       (void)fclose(file->file);
file             1004 contrib/tools/pngfix.c    if (file->out != NULL)
file             1009 contrib/tools/pngfix.c       if (ferror(file->out) | fflush(file->out) | fclose(file->out))
file             1011 contrib/tools/pngfix.c          perror(file->out_name);
file             1012 contrib/tools/pngfix.c          emit_error(file, READ_ERROR_CODE, "output write error");
file             1018 contrib/tools/pngfix.c    file->global->status_code |= rc;
file             1020 contrib/tools/pngfix.c    CLEAR(*file);
file             1033 contrib/tools/pngfix.c    CLEAR(*file);
file             1034 contrib/tools/pngfix.c    file->global = global;
file             1036 contrib/tools/pngfix.c    file->file_name = file_name;
file             1037 contrib/tools/pngfix.c    file->out_name = out_name;
file             1038 contrib/tools/pngfix.c    file->status_code = 0;
file             1039 contrib/tools/pngfix.c    file->read_errno = 0;
file             1040 contrib/tools/pngfix.c    file->write_errno = 0;
file             1042 contrib/tools/pngfix.c    file->file = NULL;
file             1043 contrib/tools/pngfix.c    file->out = NULL;
file             1046 contrib/tools/pngfix.c    file->read_count = 0;
file             1047 contrib/tools/pngfix.c    file->state = STATE_SIGNATURE;
file             1049 contrib/tools/pngfix.c    file->chunk = NULL;
file             1050 contrib/tools/pngfix.c    file->idat = NULL;
file             1052 contrib/tools/pngfix.c    file->alloc_ptr = alloc_ptr;
file             1053 contrib/tools/pngfix.c    file->alloc = alloc;
file             1057 contrib/tools/pngfix.c    file->file = fopen(file_name, "rb");
file             1059 contrib/tools/pngfix.c    if (file->file == NULL)
file             1061 contrib/tools/pngfix.c       file->read_errno = errno;
file             1062 contrib/tools/pngfix.c       file->status_code |= FILE_ERROR;
file             1070 contrib/tools/pngfix.c       file->out = fopen(out_name, "wb");
file             1072 contrib/tools/pngfix.c       if (file->out == NULL)
file             1074 contrib/tools/pngfix.c          file->write_errno = errno;
file             1075 contrib/tools/pngfix.c          file->status_code |= WRITE_ERROR;
file             1088 contrib/tools/pngfix.c    if (file->global->errors)
file             1089 contrib/tools/pngfix.c       emit_error(file, code, what);
file             1132 contrib/tools/pngfix.c    log_error(file, code, what);
file             1147 contrib/tools/pngfix.c    if (file->global->quiet < 2) /* need two quiets to stop this. */
file             1151 contrib/tools/pngfix.c       if (file->chunk != NULL)
file             1152 contrib/tools/pngfix.c          type = current_type(file, code); /* Gropes in struct chunk and IDAT */
file             1155 contrib/tools/pngfix.c          type = file->type;
file             1163 contrib/tools/pngfix.c       printf(" ERR %.2x %s ", file->status_code, strcode(code));
file             1167 contrib/tools/pngfix.c       emit_string(strerror(file->read_errno), stdout);
file             1169 contrib/tools/pngfix.c       emit_string(strerror(file->write_errno), stdout);
file             1173 contrib/tools/pngfix.c       fputs(file->file_name, stdout);
file             1177 contrib/tools/pngfix.c    file->status_code |= FILE_ERROR;
file             1178 contrib/tools/pngfix.c    longjmp(file->jmpbuf, code);
file             1184 contrib/tools/pngfix.c    stop(file, INVALID_ERROR_CODE, what);
file             1191 contrib/tools/pngfix.c    if (file->global->errors)
file             1193 contrib/tools/pngfix.c       fputs(file->file_name, stderr);
file             1208 contrib/tools/pngfix.c    if (fgetpos(file->file, pos))
file             1211 contrib/tools/pngfix.c       perror(file->file_name);
file             1212 contrib/tools/pngfix.c       stop(file, READ_ERROR_CODE, "fgetpos");
file             1219 contrib/tools/pngfix.c    if (fsetpos(file->file, pos))
file             1221 contrib/tools/pngfix.c       perror(file->file_name);
file             1222 contrib/tools/pngfix.c       stop(file, READ_ERROR_CODE, "fsetpos");
file             1233 contrib/tools/pngfix.c    file_getpos(file, &file->data_pos);
file             1244 contrib/tools/pngfix.c    int ch = getc(file->file);
file             1248 contrib/tools/pngfix.c       ++(file->read_count);
file             1254 contrib/tools/pngfix.c       file->status_code |= INTERNAL_ERROR;
file             1255 contrib/tools/pngfix.c       file->read_errno = ERANGE; /* out of range character */
file             1258 contrib/tools/pngfix.c       emit_error(file, UNEXPECTED_ERROR_CODE, "file read");
file             1265 contrib/tools/pngfix.c          return read_byte(file);
file             1274 contrib/tools/pngfix.c       if (ferror(file->file))
file             1275 contrib/tools/pngfix.c          file->read_errno = errno;
file             1277 contrib/tools/pngfix.c       else if (feof(file->file))
file             1278 contrib/tools/pngfix.c          file->read_errno = 0; /* I.e. a regular EOF, no error */
file             1281 contrib/tools/pngfix.c          file->read_errno = EDOM;
file             1288 contrib/tools/pngfix.c    file->status_code |= TRUNCATED;
file             1298 contrib/tools/pngfix.c    int ch = getc(file->file);
file             1301 contrib/tools/pngfix.c       file->read_errno = errno;
file             1304 contrib/tools/pngfix.c       stop(file, UNEXPECTED_ERROR_CODE, "reread");
file             1317 contrib/tools/pngfix.c       result = (result << 8) + reread_byte(file);
file             1329 contrib/tools/pngfix.c    if (fseek(file->file, 12, SEEK_CUR) != 0)
file             1332 contrib/tools/pngfix.c          file->read_errno = errno;
file             1334 contrib/tools/pngfix.c       stop(file, UNEXPECTED_ERROR_CODE, "reskip");
file             1345 contrib/tools/pngfix.c    if (file->out != NULL)
file             1347 contrib/tools/pngfix.c       if (putc(b, file->out) != b)
file             1349 contrib/tools/pngfix.c          file->write_errno = errno;
file             1350 contrib/tools/pngfix.c          file->status_code |= WRITE_ERROR;
file             1351 contrib/tools/pngfix.c          stop(file, WRITE_ERROR_CODE, "write byte");
file             1355 contrib/tools/pngfix.c    ++(file->write_count);
file             1370 contrib/tools/pngfix.c       int ch = read_byte(file);
file             1391 contrib/tools/pngfix.c       png_uint_32 crc = file->crc;
file             1395 contrib/tools/pngfix.c          int ch = read_byte(file);
file             1404 contrib/tools/pngfix.c       file->crc = crc;
file             1416 contrib/tools/pngfix.c    png_uint_16 pd = file->bit_depth;
file             1418 contrib/tools/pngfix.c    switch (file->color_type)
file             1421 contrib/tools/pngfix.c          stop_invalid(file, "IHDR: colour type");
file             1424 contrib/tools/pngfix.c          stop_invalid(file, "IHDR: bit depth");
file             1458 contrib/tools/pngfix.c    if (file->width < 1 || file->width > 0x7fffffff)
file             1459 contrib/tools/pngfix.c       stop_invalid(file, "IHDR: width");
file             1461 contrib/tools/pngfix.c    else if (file->height < 1 || file->height > 0x7fffffff)
file             1462 contrib/tools/pngfix.c       stop_invalid(file, "IHDR: height");
file             1464 contrib/tools/pngfix.c    else if (file->compression_method != 0)
file             1465 contrib/tools/pngfix.c       stop_invalid(file, "IHDR: compression method");
file             1467 contrib/tools/pngfix.c    else if (file->filter_method != 0)
file             1468 contrib/tools/pngfix.c       stop_invalid(file, "IHDR: filter method");
file             1470 contrib/tools/pngfix.c    else switch (file->interlace_method)
file             1483 contrib/tools/pngfix.c                png_uint_32 pw = PNG_PASS_COLS(file->width, pass);
file             1497 contrib/tools/pngfix.c                   image_digits = uarb_mult32(file->image_bytes, image_digits,
file             1499 contrib/tools/pngfix.c                      PNG_PASS_ROWS(file->height, pass));
file             1503 contrib/tools/pngfix.c             file->image_digits = image_digits;
file             1514 contrib/tools/pngfix.c                row_width, uarb_set(row_width, file->width), pd);
file             1519 contrib/tools/pngfix.c             file->image_digits = uarb_mult32(file->image_bytes, 0,
file             1520 contrib/tools/pngfix.c                row_bytes, digits, file->height);
file             1525 contrib/tools/pngfix.c          stop_invalid(file, "IHDR: interlace method");
file             1528 contrib/tools/pngfix.c    assert(file->image_digits >= 1 && file->image_digits <= 5);
file             1540 contrib/tools/pngfix.c    struct file *         file;
file             1567 contrib/tools/pngfix.c    type_message(chunk->file, chunk->chunk_type, message);
file             1588 contrib/tools/pngfix.c    assert(file->chunk == NULL);
file             1592 contrib/tools/pngfix.c    chunk->file = file;
file             1593 contrib/tools/pngfix.c    chunk->global = file->global;
file             1595 contrib/tools/pngfix.c    chunk->chunk_data_pos = file->data_pos;
file             1596 contrib/tools/pngfix.c    chunk->chunk_length = file->length;
file             1597 contrib/tools/pngfix.c    chunk->chunk_type = file->type;
file             1605 contrib/tools/pngfix.c    file->chunk = chunk;
file             1617 contrib/tools/pngfix.c    if (file->chunk != NULL)
file             1619 contrib/tools/pngfix.c       png_uint_32 type = file->chunk->chunk_type;
file             1626 contrib/tools/pngfix.c          file->write_count == 8)
file             1633 contrib/tools/pngfix.c       return file->type;
file             1643 contrib/tools/pngfix.c    chunk->file->read_count = 8;
file             1644 contrib/tools/pngfix.c    file_setpos(chunk->file, &chunk->chunk_data_pos);
file             1666 contrib/tools/pngfix.c    struct chunk *chunk = file->chunk;
file             1670 contrib/tools/pngfix.c    assert(chunk != NULL && file->idat == NULL);
file             1678 contrib/tools/pngfix.c       if (reread_byte(file) == 0) /* keyword null terminator */
file             1682 contrib/tools/pngfix.c          (void)reread_byte(file); /* compression method */
file             1683 contrib/tools/pngfix.c          return zlib_check(file, index);
file             1695 contrib/tools/pngfix.c    struct chunk *chunk = file->chunk;
file             1699 contrib/tools/pngfix.c    assert(chunk != NULL && file->idat == NULL);
file             1707 contrib/tools/pngfix.c       if (reread_byte(file) == 0) /* keyword null terminator */
file             1711 contrib/tools/pngfix.c          if (reread_byte(file) == 0) /* uncompressed text */
file             1716 contrib/tools/pngfix.c          (void)reread_byte(file); /* compression method */
file             1723 contrib/tools/pngfix.c             if (reread_byte(file) == 0) /* terminator */
file             1730 contrib/tools/pngfix.c                   if (reread_byte(file) == 0) /* terminator */
file             1731 contrib/tools/pngfix.c                      return zlib_check(file, index);
file             1741 contrib/tools/pngfix.c    log_error(file, INVALID_ERROR_CODE, "iTXt chunk length");
file             1750 contrib/tools/pngfix.c    struct file *         file;
file             1772 contrib/tools/pngfix.c    struct file *file = idat->file;
file             1778 contrib/tools/pngfix.c    assert(file->chunk != NULL);
file             1779 contrib/tools/pngfix.c    chunk_end(&file->chunk);
file             1785 contrib/tools/pngfix.c    file->state = STATE_CHUNKS;
file             1797 contrib/tools/pngfix.c    assert(file->chunk == NULL);
file             1798 contrib/tools/pngfix.c    assert(file->idat == NULL);
file             1802 contrib/tools/pngfix.c    idat->file = file;
file             1803 contrib/tools/pngfix.c    idat->global = file->global;
file             1814 contrib/tools/pngfix.c    file->alloc(file, 0/*chunk*/);
file             1815 contrib/tools/pngfix.c    assert(file->chunk != NULL);
file             1820 contrib/tools/pngfix.c    file->idat = idat;
file             1924 contrib/tools/pngfix.c    assert(file->idat != NULL && file->chunk != NULL);
file             1935 contrib/tools/pngfix.c    list = file->idat->idat_list_tail;
file             1942 contrib/tools/pngfix.c          stop(file, READ_ERROR_CODE, "out of memory");
file             1946 contrib/tools/pngfix.c       file->idat->idat_list_tail = list;
file             1950 contrib/tools/pngfix.c    list->lengths[(list->count)++] = file->chunk->chunk_length;
file             1955 contrib/tools/pngfix.c    if (file->type == png_IDAT)
file             1963 contrib/tools/pngfix.c    setpos(file->chunk);
file             1965 contrib/tools/pngfix.c    if (zlib_check(file, 0))
file             1973 contrib/tools/pngfix.c       cmp = uarb_cmp(file->image_bytes, file->image_digits,
file             1974 contrib/tools/pngfix.c          file->chunk->uncompressed_bytes, file->chunk->uncompressed_digits);
file             1977 contrib/tools/pngfix.c          type_message(file, png_IDAT, "extra uncompressed data");
file             1980 contrib/tools/pngfix.c          stop(file, LIBPNG_ERROR_CODE, "IDAT: uncompressed data too small");
file             1986 contrib/tools/pngfix.c       setpos(file->chunk);
file             1988 contrib/tools/pngfix.c       idat = file->idat;
file             1995 contrib/tools/pngfix.c       file->chunk->chunk_length = rechunk_length(idat);
file             1998 contrib/tools/pngfix.c       file->state = STATE_IDAT;
file             2004 contrib/tools/pngfix.c       stop(file, ZLIB_ERROR_CODE, "could not uncompress IDAT");
file             2013 contrib/tools/pngfix.c    struct file *  file;
file             2082 contrib/tools/pngfix.c       fputs(zlib->file->file_name, stderr);
file             2126 contrib/tools/pngfix.c          fputs(zlib->file->file_name, stdout);
file             2150 contrib/tools/pngfix.c          fputs(zlib->file->file_name, stdout);
file             2201 contrib/tools/pngfix.c    zlib->file = chunk->file;
file             2283 contrib/tools/pngfix.c    struct file *file = zlib->file;
file             2291 contrib/tools/pngfix.c       png_byte bIn = reread_byte(file);
file             2522 contrib/tools/pngfix.c                skip_12(zlib->file);
file             2622 contrib/tools/pngfix.c    file_getpos(file, &start_pos);
file             2625 contrib/tools/pngfix.c    if (zlib_init(&zlib, file->idat, file->chunk, 0/*window bits*/, offset))
file             2636 contrib/tools/pngfix.c             file->status_code |= TOO_FAR_BACK;
file             2692 contrib/tools/pngfix.c             file_setpos(file, &start_pos);
file             2791 contrib/tools/pngfix.c    const png_uint_32 type = file->type;
file             2793 contrib/tools/pngfix.c    if (file->global->verbose > 1)
file             2796 contrib/tools/pngfix.c       type_name(file->type, stderr);
file             2797 contrib/tools/pngfix.c       fprintf(stderr, " %lu 0x%.8x 0x%.8x\n", (unsigned long)file->length,
file             2798 contrib/tools/pngfix.c          file->crc ^ 0xffffffff, file_crc);
file             2805 contrib/tools/pngfix.c    if ((file->crc ^ 0xffffffff) != file_crc)
file             2812 contrib/tools/pngfix.c       file->status_code |= CRC_ERROR;
file             2815 contrib/tools/pngfix.c       if (file->global->skip != SKIP_BAD_CRC)
file             2816 contrib/tools/pngfix.c          type_message(file, type, "bad CRC");
file             2820 contrib/tools/pngfix.c          stop(file, READ_ERROR_CODE, "bad CRC in critical chunk");
file             2824 contrib/tools/pngfix.c          type_message(file, type, "skipped: bad CRC");
file             2835 contrib/tools/pngfix.c    if (skip_chunk_type(file->global, type))
file             2844 contrib/tools/pngfix.c       file->alloc(file, 0/*chunk*/);
file             2846 contrib/tools/pngfix.c    else if (file->idat == NULL)
file             2847 contrib/tools/pngfix.c       file->alloc(file, 1/*IDAT*/);
file             2852 contrib/tools/pngfix.c       assert(file->chunk != NULL);
file             2853 contrib/tools/pngfix.c       assert(file->chunk->chunk_type == png_IDAT);
file             2854 contrib/tools/pngfix.c       file->chunk->chunk_length = file->length;
file             2862 contrib/tools/pngfix.c    file->length = next_length;
file             2863 contrib/tools/pngfix.c    file->type = next_type;
file             2864 contrib/tools/pngfix.c    getpos(file);
file             2870 contrib/tools/pngfix.c    file->chunk->rewrite_length = 0;
file             2871 contrib/tools/pngfix.c    file->chunk->rewrite_offset = 0;
file             2883 contrib/tools/pngfix.c             struct chunk *chunk = file->chunk;
file             2886 contrib/tools/pngfix.c                stop_invalid(file, "IHDR length");
file             2890 contrib/tools/pngfix.c             file->width = reread_4(file);
file             2891 contrib/tools/pngfix.c             file->height = reread_4(file);
file             2892 contrib/tools/pngfix.c             file->bit_depth = reread_byte(file);
file             2893 contrib/tools/pngfix.c             file->color_type = reread_byte(file);
file             2894 contrib/tools/pngfix.c             file->compression_method = reread_byte(file);
file             2895 contrib/tools/pngfix.c             file->filter_method = reread_byte(file);
file             2896 contrib/tools/pngfix.c             file->interlace_method = reread_byte(file);
file             2901 contrib/tools/pngfix.c             calc_image_size(file);
file             2907 contrib/tools/pngfix.c          if (process_zTXt_iCCP(file))
file             2909 contrib/tools/pngfix.c          chunk_end(&file->chunk);
file             2910 contrib/tools/pngfix.c          file_setpos(file, &file->data_pos);
file             2914 contrib/tools/pngfix.c          if (process_iTXt(file))
file             2916 contrib/tools/pngfix.c          chunk_end(&file->chunk);
file             2917 contrib/tools/pngfix.c          file_setpos(file, &file->data_pos);
file             2921 contrib/tools/pngfix.c          if (process_IDAT(file))
file             2935 contrib/tools/pngfix.c    read_chunk(file);
file             2942 contrib/tools/pngfix.c    file->length = next_length;
file             2943 contrib/tools/pngfix.c    file->type = next_type;
file             2944 contrib/tools/pngfix.c    getpos(file);
file             2945 contrib/tools/pngfix.c    read_chunk(file);
file             2968 contrib/tools/pngfix.c    file->status_code |= STREAM_ERROR;
file             2970 contrib/tools/pngfix.c    if (file->global->verbose)
file             2973 contrib/tools/pngfix.c       type_name(file->type, stderr);
file             2978 contrib/tools/pngfix.c    file_setpos(file, &file->data_pos);
file             2979 contrib/tools/pngfix.c    file->read_count = 8;
file             2981 contrib/tools/pngfix.c    if (read_4(file, &file_crc) == 4) /* else completely truncated */
file             2989 contrib/tools/pngfix.c       png_uint_32 type = file->type;
file             3005 contrib/tools/pngfix.c                file->length = length;
file             3006 contrib/tools/pngfix.c                process_chunk(file, file_crc, 0, 0);
file             3015 contrib/tools/pngfix.c                   ch = read_byte(file);
file             3035 contrib/tools/pngfix.c                         file->read_count -= 8;
file             3036 contrib/tools/pngfix.c                         process_chunk(file, file_crc, next_length, next_type);
file             3056 contrib/tools/pngfix.c             ch = read_byte(file);
file             3075 contrib/tools/pngfix.c    stop(file, READ_ERROR_CODE, "damaged PNG stream");
file             3093 contrib/tools/pngfix.c    png_uint_32 length = file->length;
file             3094 contrib/tools/pngfix.c    png_uint_32 type = file->type;
file             3100 contrib/tools/pngfix.c       stop(file, UNEXPECTED_ERROR_CODE, "read beyond IEND");
file             3102 contrib/tools/pngfix.c    if (file->global->verbose > 2)
file             3113 contrib/tools/pngfix.c    file->crc = crc_init_4(type);
file             3114 contrib/tools/pngfix.c    if (crc_read_many(file, length)) /* else it was truncated */
file             3117 contrib/tools/pngfix.c       unsigned int nread = read_4(file, &file_crc);
file             3125 contrib/tools/pngfix.c             nread += read_4(file, &next_length);
file             3130 contrib/tools/pngfix.c                nread += read_4(file, &next_type);
file             3137 contrib/tools/pngfix.c                   file->read_count -= 8;
file             3138 contrib/tools/pngfix.c                   process_chunk(file, file_crc, next_length, next_type);
file             3146 contrib/tools/pngfix.c             process_chunk(file, file_crc, 0, 0);
file             3159 contrib/tools/pngfix.c    sync_stream(file);
file             3163 contrib/tools/pngfix.c static struct file *get_control(png_const_structrp png_ptr);
file             3174 contrib/tools/pngfix.c    struct file *file = get_control(png_ptr);
file             3176 contrib/tools/pngfix.c    if (file->global->warnings)
file             3177 contrib/tools/pngfix.c       emit_error(file, LIBPNG_WARNING_CODE, message);
file             3187 contrib/tools/pngfix.c    struct file *file = get_control(png_ptr);
file             3193 contrib/tools/pngfix.c       stop(file, UNEXPECTED_ERROR_CODE, "read callback for 0 bytes");
file             3200 contrib/tools/pngfix.c    if (file->read_count < 8)
file             3202 contrib/tools/pngfix.c       assert(file->read_count == 0);
file             3203 contrib/tools/pngfix.c       assert((file->status_code & TRUNCATED) == 0);
file             3205 contrib/tools/pngfix.c       (void)read_4(file, &file->length);
file             3207 contrib/tools/pngfix.c       if (file->read_count == 4)
file             3208 contrib/tools/pngfix.c          (void)read_4(file, &file->type);
file             3210 contrib/tools/pngfix.c       if (file->read_count < 8)
file             3212 contrib/tools/pngfix.c          assert((file->status_code & TRUNCATED) != 0);
file             3213 contrib/tools/pngfix.c          stop(file, READ_ERROR_CODE, "not a PNG (too short)");
file             3216 contrib/tools/pngfix.c       if (file->state == STATE_SIGNATURE)
file             3218 contrib/tools/pngfix.c          if (file->length != sig1 || file->type != sig2)
file             3219 contrib/tools/pngfix.c             stop(file, LIBPNG_ERROR_CODE, "not a PNG (signature)");
file             3224 contrib/tools/pngfix.c          file->write_count = 0;
file             3229 contrib/tools/pngfix.c          assert(file->state == STATE_CHUNKS);
file             3234 contrib/tools/pngfix.c          if (file->length != 13 || file->type != png_IHDR)
file             3235 contrib/tools/pngfix.c             stop(file, LIBPNG_ERROR_CODE, "not a PNG (IHDR)");
file             3238 contrib/tools/pngfix.c          getpos(file);
file             3245 contrib/tools/pngfix.c    chunk = file->chunk;
file             3258 contrib/tools/pngfix.c       length = file->length;
file             3259 contrib/tools/pngfix.c       type = file->type;
file             3276 contrib/tools/pngfix.c       if (file->state != STATE_SIGNATURE && chunk == NULL)
file             3278 contrib/tools/pngfix.c          assert(file->read_count == 8);
file             3279 contrib/tools/pngfix.c          assert(file->idat == NULL);
file             3280 contrib/tools/pngfix.c          read_chunk(file);
file             3281 contrib/tools/pngfix.c          chunk = file->chunk;
file             3289 contrib/tools/pngfix.c          file->write_count = 0;
file             3296 contrib/tools/pngfix.c       switch (file->write_count)
file             3313 contrib/tools/pngfix.c             if (file->state == STATE_SIGNATURE)
file             3320 contrib/tools/pngfix.c                file->read_count = 0; /* Forces a header read */
file             3321 contrib/tools/pngfix.c                file->state = STATE_CHUNKS; /* IHDR: checked above */
file             3337 contrib/tools/pngfix.c                if (file->state != STATE_IDAT && length > 0)
file             3348 contrib/tools/pngfix.c             switch (file->write_count - length)
file             3357 contrib/tools/pngfix.c                   if (file->state == STATE_IDAT)
file             3359 contrib/tools/pngfix.c                      struct IDAT *idat = file->idat;
file             3389 contrib/tools/pngfix.c                               stop(file, UNEXPECTED_ERROR_CODE,
file             3403 contrib/tools/pngfix.c                         skip_12(file);
file             3414 contrib/tools/pngfix.c                   b = reread_byte(file);
file             3449 contrib/tools/pngfix.c                   if (file->global->verbose > 2)
file             3464 contrib/tools/pngfix.c                   if (file->state == STATE_IDAT &&
file             3465 contrib/tools/pngfix.c                      (file->idat->idat_index < file->idat->idat_length ||
file             3466 contrib/tools/pngfix.c                       1+file->idat->idat_count < file->idat->idat_cur->count ||
file             3467 contrib/tools/pngfix.c                       file->idat->idat_cur != file->idat->idat_list_tail))
file             3472 contrib/tools/pngfix.c                      length = chunk->chunk_length = rechunk_length(file->idat);
file             3474 contrib/tools/pngfix.c                      file->write_count = 0; /* for the new chunk */
file             3475 contrib/tools/pngfix.c                      --(file->write_count); /* fake out the increment below */
file             3484 contrib/tools/pngfix.c                         stop(file, UNEXPECTED_ERROR_CODE, "pending rewrite");
file             3490 contrib/tools/pngfix.c                      file->read_count = 8;
file             3491 contrib/tools/pngfix.c                      file_setpos(file, &file->data_pos);
file             3493 contrib/tools/pngfix.c                      if (file->idat == NULL)
file             3494 contrib/tools/pngfix.c                         chunk_end(&file->chunk);
file             3497 contrib/tools/pngfix.c                         IDAT_end(&file->idat);
file             3511 contrib/tools/pngfix.c       write_byte(file, (png_byte)b); /* increments chunk_write */
file             3521 contrib/tools/pngfix.c    struct file  file;
file             3529 contrib/tools/pngfix.c    return file_end(&control->file);
file             3532 contrib/tools/pngfix.c static struct file *
file             3540 contrib/tools/pngfix.c    return &control->file;
file             3546 contrib/tools/pngfix.c    struct control *control = png_voidcast(struct control*, file->alloc_ptr);
file             3550 contrib/tools/pngfix.c       assert(file->idat == NULL);
file             3551 contrib/tools/pngfix.c       IDAT_init(&control->idat, file);
file             3556 contrib/tools/pngfix.c       assert(file->chunk == NULL);
file             3557 contrib/tools/pngfix.c       chunk_init(&control->chunk, file);
file             3568 contrib/tools/pngfix.c    return file_init(&control->file, global, file_name, out_name, control,
file             3589 contrib/tools/pngfix.c       log_error(&control->file, LIBPNG_ERROR_CODE, "OOM allocating png_struct");
file             3590 contrib/tools/pngfix.c       control->file.status_code |= INTERNAL_ERROR;
file             3594 contrib/tools/pngfix.c    rc = setjmp(control->file.jmpbuf);
file             3603 contrib/tools/pngfix.c       if (control->file.global->verbose)
file             3637 contrib/tools/pngfix.c       if (control->file.global->verbose)
file             3107 png.h             FILE* file));
file             3175 png.h             const char *file, int convert_to_8bit, const void *buffer,
file             3179 png.h          PNG_EXPORT(240, int, png_image_write_to_stdio, (png_imagep image, FILE *file,
file             1431 pngread.c            if (file != NULL)
file             1439 pngread.c                  image->opaque->png_ptr->io_ptr = file;
file               79 pngtest.c      #define FCLOSE(file) fclose(file)
file             2330 pngwrite.c           if (file != NULL)
file             2341 pngwrite.c                 image->opaque->png_ptr->io_ptr = file;