Lines Matching refs:png
24 #include <png.h>
61 PNG = 0,
114 "Windows XP SP3 or newer?). PNG support not available. "
152 static void PNGAPI error_function(png_structp png, png_const_charp dummy) {
154 longjmp(png_jmpbuf(png), 1);
163 png_structp png;
167 png = png_create_write_struct(PNG_LIBPNG_VER_STRING,
169 if (png == NULL) {
172 info = png_create_info_struct(png);
174 png_destroy_write_struct(&png, NULL);
177 if (setjmp(png_jmpbuf(png))) {
178 png_destroy_write_struct(&png, &info);
181 png_init_io(png, out_file);
182 png_set_IHDR(png, info, width, height, 8,
186 png_write_info(png, info);
189 png_write_rows(png, &row, 1);
191 png_write_end(png, info);
192 png_destroy_write_struct(&png, &info);
199 fprintf(stderr, "PNG support not compiled. Please install the libpng "
303 needs_open_file = (format != PNG);
313 if (format == PNG) {
344 "Decodes the WebP image file to PNG format [Default]\n"
380 OutputFileFormat format = PNG;
471 case PNG:
520 printf("Nothing written; use -o flag to save the result as e.g. PNG.\n");