Lines Matching refs:read_ptr
834 png_structp read_ptr;
870 read_ptr =
874 read_ptr =
877 png_set_error_fn(read_ptr, &error_parameters, pngtest_error,
893 read_info_ptr = png_create_info_struct(read_ptr);
894 end_info_ptr = png_create_info_struct(read_ptr);
902 png_set_read_user_chunk_fn(read_ptr, &user_chunk_data,
908 if (setjmp(png_jmpbuf(read_ptr)))
911 png_free(read_ptr, row_buf);
913 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr);
929 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr);
944 png_set_benign_errors(read_ptr, 0);
960 png_set_benign_errors(read_ptr, 1);
969 png_init_io(read_ptr, fpin);
974 png_set_read_fn(read_ptr, (png_voidp)fpin, pngtest_read_data);
990 png_set_read_status_fn(read_ptr, read_row_callback);
998 png_set_read_status_fn(read_ptr, NULL);
1008 png_set_read_user_transform_fn(read_ptr, count_filters);
1026 png_set_keep_unknown_chunks(read_ptr, PNG_HANDLE_CHUNK_ALWAYS,
1036 png_read_info(read_ptr, read_info_ptr);
1051 if (png_get_IHDR(read_ptr, read_info_ptr, &width, &height, &bit_depth,
1072 png_error(read_ptr, "invalid interlace type");
1084 if (png_get_cHRM_fixed(read_ptr, read_info_ptr, &white_x, &white_y,
1096 if (png_get_gAMA_fixed(read_ptr, read_info_ptr, &gamma))
1107 if (png_get_cHRM(read_ptr, read_info_ptr, &white_x, &white_y, &red_x,
1119 if (png_get_gAMA(read_ptr, read_info_ptr, &gamma))
1132 if (png_get_iCCP(read_ptr, read_info_ptr, &name, &compression_type,
1144 if (png_get_sRGB(read_ptr, read_info_ptr, &intent))
1152 if (png_get_PLTE(read_ptr, read_info_ptr, &palette, &num_palette))
1159 if (png_get_bKGD(read_ptr, read_info_ptr, &background))
1169 if (png_get_hIST(read_ptr, read_info_ptr, &hist))
1178 if (png_get_oFFs(read_ptr, read_info_ptr, &offset_x, &offset_y,
1192 if (png_get_pCAL(read_ptr, read_info_ptr, &purpose, &X0, &X1, &type,
1205 if (png_get_pHYs(read_ptr, read_info_ptr, &res_x, &res_y, &unit_type))
1213 if (png_get_sBIT(read_ptr, read_info_ptr, &sig_bit))
1224 if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width,
1236 if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &scal_width,
1251 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0)
1255 pngtest_check_text_support(read_ptr, text_ptr, num_text);
1277 if (png_get_tIME(read_ptr, read_info_ptr, &mod_time))
1301 if (png_get_tRNS(read_ptr, read_info_ptr, &trans_alpha, &num_trans,
1320 int num_unknowns = png_get_unknown_chunks(read_ptr, read_info_ptr,
1360 row_buf = (png_bytep)png_malloc(read_ptr,
1361 png_get_rowbytes(read_ptr, read_info_ptr));
1368 num_pass = png_set_interlace_handling(read_ptr);
1385 row_buf = (png_bytep)png_malloc(read_ptr,
1386 png_get_rowbytes(read_ptr, read_info_ptr));
1389 png_get_rowbytes(read_ptr, read_info_ptr));
1392 png_read_rows(read_ptr, (png_bytepp)&row_buf, NULL, 1);
1410 png_free(read_ptr, row_buf);
1418 png_free_data(read_ptr, read_info_ptr, PNG_FREE_UNKN, -1);
1427 png_read_end(read_ptr, end_info_ptr);
1433 if (png_get_text(read_ptr, end_info_ptr, &text_ptr, &num_text) > 0)
1437 pngtest_check_text_support(read_ptr, text_ptr, num_text);
1459 if (png_get_tIME(read_ptr, end_info_ptr, &mod_time))
1480 int num_unknowns = png_get_unknown_chunks(read_ptr, end_info_ptr,
1536 pngtest_debug("destroying row_buf for read_ptr");
1537 png_free(read_ptr, row_buf);
1540 pngtest_debug("destroying read_ptr, read_info_ptr, end_info_ptr");
1541 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr);