Lines Matching refs:read_ptr

34   PngReadStructDeleter(png_structp read_ptr, png_infop info_ptr)  in PngReadStructDeleter()  argument
35 : read_ptr_(read_ptr), info_ptr_(info_ptr) { in PngReadStructDeleter()
170 png_structp read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in ReadPng() local
171 if (read_ptr == nullptr) { in ReadPng()
177 png_infop info_ptr = png_create_info_struct(read_ptr); in ReadPng()
180 png_destroy_read_struct(&read_ptr, nullptr, nullptr); in ReadPng()
185 PngReadStructDeleter png_read_deleter(read_ptr, info_ptr); in ReadPng()
190 if (setjmp(png_jmpbuf(read_ptr))) { in ReadPng()
195 png_set_error_fn(read_ptr, (png_voidp)&diag, LogError, LogWarning); in ReadPng()
198 png_set_read_fn(read_ptr, (png_voidp)in, ReadDataFromStream); in ReadPng()
201 png_set_sig_bytes(read_ptr, kPngSignatureSize); in ReadPng()
204 png_read_info(read_ptr, info_ptr); in ReadPng()
209 png_get_IHDR(read_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_method, in ReadPng()
216 png_set_palette_to_rgb(read_ptr); in ReadPng()
220 png_set_expand_gray_1_2_4_to_8(read_ptr); in ReadPng()
223 if (png_get_valid(read_ptr, info_ptr, PNG_INFO_tRNS)) { in ReadPng()
224 png_set_tRNS_to_alpha(read_ptr); in ReadPng()
228 png_set_strip_16(read_ptr); in ReadPng()
232 png_set_add_alpha(read_ptr, 0xFF, PNG_FILLER_AFTER); in ReadPng()
236 png_set_gray_to_rgb(read_ptr); in ReadPng()
240 png_set_interlace_handling(read_ptr); in ReadPng()
245 png_read_update_info(read_ptr, info_ptr); in ReadPng()
260 const size_t row_bytes = png_get_rowbytes(read_ptr, info_ptr); in ReadPng()
273 png_read_image(read_ptr, output_image->rows.get()); in ReadPng()
276 png_read_end(read_ptr, info_ptr); in ReadPng()