• Home
  • Raw
  • Download

Lines Matching refs:png_ptr

100 void PNGAPI user_error_fn(png_structp png_ptr, png_const_charp message) {  in user_error_fn()  argument
104 void PNGAPI user_warning_fn(png_structp png_ptr, png_const_charp message) { in user_warning_fn() argument
139 png_structp png_ptr = NULL; in read_PNG_File() local
168 if (!(png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, in read_PNG_File()
174 if (!(info_ptr = png_create_info_struct(png_ptr))) { in read_PNG_File()
178 if (!(end_info = png_create_info_struct(png_ptr))) { in read_PNG_File()
183 if (setjmp(png_jmpbuf(png_ptr))) { in read_PNG_File()
187 png_init_io(png_ptr, pIn); in read_PNG_File()
188 png_set_sig_bytes(png_ptr, PNG_HEADER_SIZE); in read_PNG_File()
189 png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY in read_PNG_File()
193 row_pointers = png_get_rows(png_ptr, info_ptr); in read_PNG_File()
196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, in read_PNG_File()
221 if (png_ptr) { in read_PNG_File()
222 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); in read_PNG_File()
409 png_structp png_ptr = NULL; in writePNGFile() local
412 if (!(png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, in writePNGFile()
414 = png_create_info_struct(png_ptr))) { in writePNGFile()
419 if (setjmp(png_jmpbuf(png_ptr))) { in writePNGFile()
428 png_init_io(png_ptr, pOut); in writePNGFile()
430 png_set_IHDR(png_ptr, info_ptr, width, height, 8, PNG_COLOR_TYPE_RGB, in writePNGFile()
434 png_write_info(png_ptr, info_ptr); in writePNGFile()
437 png_write_row(png_ptr, pImageData + y * imageStride); in writePNGFile()
439 png_write_end(png_ptr, info_ptr); in writePNGFile()
443 exit: if (png_ptr) { in writePNGFile()
444 png_destroy_write_struct(&png_ptr, &info_ptr); in writePNGFile()