Lines Matching refs:read_ptr
137 #define png_convert_to_rfc1123_buffer(ts, t) tIME_to_str(read_ptr, ts, t)
866 png_structp read_ptr; in test_one_file() local
905 read_ptr = in test_one_file()
909 read_ptr = in test_one_file()
912 png_set_error_fn(read_ptr, &error_parameters, pngtest_error, in test_one_file()
928 read_info_ptr = png_create_info_struct(read_ptr); in test_one_file()
929 end_info_ptr = png_create_info_struct(read_ptr); in test_one_file()
937 png_set_read_user_chunk_fn(read_ptr, &user_chunk_data, in test_one_file()
943 if (setjmp(png_jmpbuf(read_ptr))) in test_one_file()
946 png_free(read_ptr, row_buf); in test_one_file()
948 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()
964 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()
979 png_set_benign_errors(read_ptr, 0); in test_one_file()
995 png_set_benign_errors(read_ptr, 1); in test_one_file()
1004 png_init_io(read_ptr, fpin); in test_one_file()
1009 png_set_read_fn(read_ptr, (png_voidp)fpin, pngtest_read_data); in test_one_file()
1025 png_set_read_status_fn(read_ptr, read_row_callback); in test_one_file()
1033 png_set_read_status_fn(read_ptr, NULL); in test_one_file()
1037 png_set_read_user_transform_fn(read_ptr, read_user_callback); in test_one_file()
1054 png_set_keep_unknown_chunks(read_ptr, PNG_HANDLE_CHUNK_ALWAYS, in test_one_file()
1064 png_read_info(read_ptr, read_info_ptr); in test_one_file()
1079 if (png_get_IHDR(read_ptr, read_info_ptr, &width, &height, &bit_depth, in test_one_file()
1098 png_error(read_ptr, "invalid interlace type"); in test_one_file()
1104 png_error(read_ptr, "png_get_IHDR failed"); in test_one_file()
1112 if (png_get_cHRM_fixed(read_ptr, read_info_ptr, &white_x, &white_y, in test_one_file()
1124 if (png_get_gAMA_fixed(read_ptr, read_info_ptr, &gamma) != 0) in test_one_file()
1135 if (png_get_cHRM(read_ptr, read_info_ptr, &white_x, &white_y, &red_x, in test_one_file()
1147 if (png_get_gAMA(read_ptr, read_info_ptr, &gamma) != 0) in test_one_file()
1160 if (png_get_iCCP(read_ptr, read_info_ptr, &name, &compression_type, in test_one_file()
1172 if (png_get_sRGB(read_ptr, read_info_ptr, &intent) != 0) in test_one_file()
1180 if (png_get_PLTE(read_ptr, read_info_ptr, &palette, &num_palette) != 0) in test_one_file()
1187 if (png_get_bKGD(read_ptr, read_info_ptr, &background) != 0) in test_one_file()
1197 if (png_get_hIST(read_ptr, read_info_ptr, &hist) != 0) in test_one_file()
1206 if (png_get_oFFs(read_ptr, read_info_ptr, &offset_x, &offset_y, in test_one_file()
1220 if (png_get_pCAL(read_ptr, read_info_ptr, &purpose, &X0, &X1, &type, in test_one_file()
1233 if (png_get_pHYs(read_ptr, read_info_ptr, &res_x, &res_y, in test_one_file()
1242 if (png_get_sBIT(read_ptr, read_info_ptr, &sig_bit) != 0) in test_one_file()
1253 if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width, in test_one_file()
1265 if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &scal_width, in test_one_file()
1280 int num_entries = (int) png_get_sPLT(read_ptr, read_info_ptr, &entries); in test_one_file()
1293 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1297 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1319 if (png_get_tIME(read_ptr, read_info_ptr, &mod_time) != 0) in test_one_file()
1343 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans, in test_one_file()
1362 int num_unknowns = png_get_unknown_chunks(read_ptr, read_info_ptr, in test_one_file()
1402 row_buf = (png_bytep)png_malloc(read_ptr, in test_one_file()
1403 png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1415 if (png_set_interlace_handling(read_ptr) != num_passes) in test_one_file()
1456 row_buf = (png_bytep)png_malloc(read_ptr, in test_one_file()
1457 png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1460 (unsigned long)png_get_rowbytes(read_ptr, read_info_ptr)); in test_one_file()
1463 png_read_rows(read_ptr, (png_bytepp)&row_buf, NULL, 1); in test_one_file()
1481 png_free(read_ptr, row_buf); in test_one_file()
1489 png_free_data(read_ptr, read_info_ptr, PNG_FREE_UNKN, -1); in test_one_file()
1498 png_read_end(read_ptr, end_info_ptr); in test_one_file()
1504 if (png_get_text(read_ptr, end_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1508 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1530 if (png_get_tIME(read_ptr, end_info_ptr, &mod_time) != 0) in test_one_file()
1551 int num_unknowns = png_get_unknown_chunks(read_ptr, end_info_ptr, in test_one_file()
1608 png_free(read_ptr, row_buf); in test_one_file()
1612 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); in test_one_file()