Lines Matching defs:image
32 png_image image;
34 /* Only the image structure version number needs to be set. */
35 memset(&image, 0, sizeof image);
36 image.version = PNG_IMAGE_VERSION;
38 if (png_image_begin_read_from_file(&image, argv[1]))
45 image.format = PNG_FORMAT_RGBA;
47 buffer = malloc(PNG_IMAGE_SIZE(image));
51 if (png_image_finish_read(&image, NULL/*background*/, buffer,
54 if (png_image_write_to_file(&image, argv[2],
61 image.message);
69 image.message);
75 png_image_free(&image);
81 (unsigned long)PNG_IMAGE_SIZE(image));
86 fprintf(stderr, "pngtopng: %s: %s\n", argv[1], image.message);