• Home
  • Raw
  • Download

Lines Matching refs:read_ptr

128 #define png_convert_to_rfc1123_buffer(ts, t) tIME_to_str(read_ptr, ts, t)
858 png_structp read_ptr; in test_one_file() local
897 read_ptr = in test_one_file()
901 read_ptr = in test_one_file()
904 png_set_error_fn(read_ptr, &error_parameters, pngtest_error, in test_one_file()
920 read_info_ptr = png_create_info_struct(read_ptr); in test_one_file()
921 end_info_ptr = png_create_info_struct(read_ptr); in test_one_file()
929 png_set_read_user_chunk_fn(read_ptr, &user_chunk_data, in test_one_file()
935 if (setjmp(png_jmpbuf(read_ptr))) in test_one_file()
938 png_free(read_ptr, row_buf); in test_one_file()
942 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()
962 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()
978 png_set_benign_errors(read_ptr, 0); in test_one_file()
994 png_set_benign_errors(read_ptr, 1); in test_one_file()
997 png_set_crc_action(read_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE); in test_one_file()
1001 png_set_option(read_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON); in test_one_file()
1013 png_init_io(read_ptr, fpin); in test_one_file()
1018 png_set_read_fn(read_ptr, (png_voidp)fpin, pngtest_read_data); in test_one_file()
1034 png_set_read_status_fn(read_ptr, read_row_callback); in test_one_file()
1042 png_set_read_status_fn(read_ptr, NULL); in test_one_file()
1046 png_set_read_user_transform_fn(read_ptr, read_user_callback); in test_one_file()
1063 png_set_keep_unknown_chunks(read_ptr, PNG_HANDLE_CHUNK_ALWAYS, in test_one_file()
1073 png_read_info(read_ptr, read_info_ptr); in test_one_file()
1088 if (png_get_IHDR(read_ptr, read_info_ptr, &width, &height, &bit_depth, in test_one_file()
1107 png_error(read_ptr, "invalid interlace type"); in test_one_file()
1113 png_error(read_ptr, "png_get_IHDR failed"); in test_one_file()
1121 if (png_get_cHRM_fixed(read_ptr, read_info_ptr, &white_x, &white_y, in test_one_file()
1133 if (png_get_gAMA_fixed(read_ptr, read_info_ptr, &gamma) != 0) in test_one_file()
1144 if (png_get_cHRM(read_ptr, read_info_ptr, &white_x, &white_y, &red_x, in test_one_file()
1156 if (png_get_gAMA(read_ptr, read_info_ptr, &gamma) != 0) in test_one_file()
1169 if (png_get_iCCP(read_ptr, read_info_ptr, &name, &compression_type, in test_one_file()
1181 if (png_get_sRGB(read_ptr, read_info_ptr, &intent) != 0) in test_one_file()
1189 if (png_get_PLTE(read_ptr, read_info_ptr, &palette, &num_palette) != 0) in test_one_file()
1196 if (png_get_bKGD(read_ptr, read_info_ptr, &background) != 0) in test_one_file()
1207 if (png_get_eXIf_1(read_ptr, read_info_ptr, &exif_length, &exif) != 0) in test_one_file()
1222 if (png_get_hIST(read_ptr, read_info_ptr, &hist) != 0) in test_one_file()
1231 if (png_get_oFFs(read_ptr, read_info_ptr, &offset_x, &offset_y, in test_one_file()
1245 if (png_get_pCAL(read_ptr, read_info_ptr, &purpose, &X0, &X1, &type, in test_one_file()
1258 if (png_get_pHYs(read_ptr, read_info_ptr, &res_x, &res_y, in test_one_file()
1267 if (png_get_sBIT(read_ptr, read_info_ptr, &sig_bit) != 0) in test_one_file()
1278 if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width, in test_one_file()
1290 if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &scal_width, in test_one_file()
1305 int num_entries = (int) png_get_sPLT(read_ptr, read_info_ptr, &entries); in test_one_file()
1318 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1322 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1344 if (png_get_tIME(read_ptr, read_info_ptr, &mod_time) != 0) in test_one_file()
1368 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file()
1387 int num_unknowns = png_get_unknown_chunks(read_ptr, read_info_ptr, in test_one_file()
1436 row_buf = (png_bytep)png_malloc(read_ptr, in test_one_file()
1437 png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1449 if (png_set_interlace_handling(read_ptr) != num_passes) in test_one_file()
1490 row_buf = (png_bytep)png_malloc(read_ptr, in test_one_file()
1491 png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1494 (unsigned long)png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1497 png_read_rows(read_ptr, (png_bytepp)&row_buf, NULL, 1); in test_one_file()
1515 png_free(read_ptr, row_buf); in test_one_file()
1523 png_free_data(read_ptr, read_info_ptr, PNG_FREE_UNKN, -1); in test_one_file()
1532 png_read_end(read_ptr, end_info_ptr); in test_one_file()
1538 if (png_get_text(read_ptr, end_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1542 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1565 if (png_get_eXIf_1(read_ptr, end_info_ptr, &exif_length, &exif) != 0) in test_one_file()
1580 if (png_get_tIME(read_ptr, end_info_ptr, &mod_time) != 0) in test_one_file()
1601 int num_unknowns = png_get_unknown_chunks(read_ptr, end_info_ptr, in test_one_file()
1658 png_free(read_ptr, row_buf); in test_one_file()
1662 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()