• Home
  • Raw
  • Download

Lines Matching refs:read_pp

407    png_structp      read_pp;  member
494 dp->read_pp = NULL; in display_init()
508 if (dp->read_pp != NULL) in display_clean_read()
509 png_destroy_read_struct(&dp->read_pp, NULL, NULL); in display_clean_read()
1751 dp->read_pp = png_create_read_struct(PNG_LIBPNG_VER_STRING, dp, in read_png()
1753 if (dp->read_pp == NULL) in read_png()
1757 png_set_benign_errors(dp->read_pp, 1/*allowed*/); in read_png()
1762 png_set_check_for_invalid_index(dp->read_pp, 1/*on, no warning*/); in read_png()
1769 png_set_check_for_invalid_index(dp->read_pp, -1/*off completely*/); in read_png()
1775 dp->ip = png_create_info_struct(dp->read_pp); in read_png()
1777 png_error(dp->read_pp, "failed to create info struct"); in read_png()
1780 png_set_read_fn(dp->read_pp, dp, read_function); in read_png()
1783 png_set_keep_unknown_chunks(dp->read_pp, PNG_HANDLE_CHUNK_ALWAYS, NULL, in read_png()
1789 png_set_user_limits(dp->read_pp, 0x7fffffff, 0x7fffffff); in read_png()
1794 png_read_png(dp->read_pp, dp->ip, 0U/*transforms*/, NULL/*params*/); in read_png()
1796 dp->w = png_get_image_width(dp->read_pp, dp->ip); in read_png()
1797 dp->h = png_get_image_height(dp->read_pp, dp->ip); in read_png()
1798 dp->ct = png_get_color_type(dp->read_pp, dp->ip); in read_png()
1799 dp->bpp = png_get_bit_depth(dp->read_pp, dp->ip) * in read_png()
1800 png_get_channels(dp->read_pp, dp->ip); in read_png()
1806 png_alloc_size_t rb = png_get_rowbytes(dp->read_pp, dp->ip); in read_png()
1809 png_error(dp->read_pp, "invalid row byte count from libpng"); in read_png()
1813 png_error(dp->read_pp, "image too large"); in read_png()
1821 int max = png_get_palette_max(dp->read_pp, dp->ip); in read_png()
1825 if (png_get_PLTE(dp->read_pp, dp->ip, &palette, &num) != PNG_INFO_PLTE in read_png()
1846 png_set_PLTE(dp->read_pp, dp->ip, newpal, i); in read_png()