Lines Matching refs:png_ptr

2144     png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);  in load_png_image()  local
2145 if (!png_ptr) in load_png_image()
2147 png_infop info_ptr = png_create_info_struct(png_ptr); in load_png_image()
2151 if (setjmp(png_jmpbuf(png_ptr))) in load_png_image()
2154 png_init_io(png_ptr, fd); in load_png_image()
2155 png_set_sig_bytes(png_ptr, SIZE_PNG_HEADER); in load_png_image()
2156 png_set_user_limits(png_ptr, limits.max_width, limits.max_height); in load_png_image()
2157 png_read_info(png_ptr, info_ptr); in load_png_image()
2159 __u8 bit_depth = png_get_bit_depth(png_ptr, info_ptr); in load_png_image()
2160 __u32 width = png_get_image_width(png_ptr, info_ptr); in load_png_image()
2161 __u32 height = png_get_image_height(png_ptr, info_ptr); in load_png_image()
2162 __u8 color_type = png_get_color_type(png_ptr, info_ptr); in load_png_image()
2166 png_set_palette_to_rgb(png_ptr); in load_png_image()
2167 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
2171 png_set_expand_gray_1_2_4_to_8(png_ptr); in load_png_image()
2172 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) in load_png_image()
2173 png_set_tRNS_to_alpha(png_ptr); in load_png_image()
2175 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
2179 png_set_gray_to_rgb(png_ptr); in load_png_image()
2182 png_set_filler(png_ptr, 128, PNG_FILLER_AFTER); in load_png_image()
2185 png_set_bgr(png_ptr); in load_png_image()
2193 png_set_strip_16(png_ptr); in load_png_image()
2211 png_set_rows(png_ptr, info_ptr, row_pointers); in load_png_image()
2212 png_read_update_info(png_ptr, info_ptr); in load_png_image()
2213 img->rowbytes = png_get_rowbytes(png_ptr, info_ptr); in load_png_image()
2215 png_read_image(png_ptr, row_pointers); in load_png_image()
2216 png_read_end(png_ptr, NULL); in load_png_image()
2218 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in load_png_image()
2227 if (!png_ptr || !info_ptr) in load_png_image()
2229 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in load_png_image()