Lines Matching refs:png_ptr

1588     png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);  in load_png_image()  local
1589 if (!png_ptr) in load_png_image()
1591 png_infop info_ptr = png_create_info_struct(png_ptr); in load_png_image()
1595 if (setjmp(png_jmpbuf(png_ptr))) in load_png_image()
1598 png_init_io(png_ptr, fd); in load_png_image()
1599 png_set_sig_bytes(png_ptr, SIZE_PNG_HEADER); in load_png_image()
1600 png_set_user_limits(png_ptr, limits.max_width, limits.max_height); in load_png_image()
1601 png_read_info(png_ptr, info_ptr); in load_png_image()
1603 __u8 bit_depth = png_get_bit_depth(png_ptr, info_ptr); in load_png_image()
1604 __u32 width = png_get_image_width(png_ptr, info_ptr); in load_png_image()
1605 __u32 height = png_get_image_height(png_ptr, info_ptr); in load_png_image()
1606 __u8 color_type = png_get_color_type(png_ptr, info_ptr); in load_png_image()
1610 png_set_palette_to_rgb(png_ptr); in load_png_image()
1611 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
1615 png_set_expand_gray_1_2_4_to_8(png_ptr); in load_png_image()
1616 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) in load_png_image()
1617 png_set_tRNS_to_alpha(png_ptr); in load_png_image()
1619 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
1623 png_set_gray_to_rgb(png_ptr); in load_png_image()
1626 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
1629 png_set_bgr(png_ptr); in load_png_image()
1637 png_set_strip_16(png_ptr); in load_png_image()
1655 png_set_rows(png_ptr, info_ptr, row_pointers); in load_png_image()
1656 png_read_update_info(png_ptr, info_ptr); in load_png_image()
1657 img->rowbytes = png_get_rowbytes(png_ptr, info_ptr); in load_png_image()
1659 png_read_image(png_ptr, row_pointers); in load_png_image()
1660 png_read_end(png_ptr, NULL); in load_png_image()
1662 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in load_png_image()
1671 if (!png_ptr || !info_ptr) in load_png_image()
1673 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in load_png_image()