Lines Matching refs:image
104 png_imagep image, const png_uint_16 *buffer) in sprite_op() argument
133 const png_uint_16 *in_pixel = buffer + (y * image->width + x)*4; in sprite_op()
181 while (++x < image->width); in sprite_op()
183 while (++y < image->height); in sprite_op()
212 png_image image; in create_sprite() local
214 image.version = PNG_IMAGE_VERSION; in create_sprite()
215 image.opaque = NULL; in create_sprite()
217 if (png_image_begin_read_from_file(&image, (*argv)[0])) in create_sprite()
221 image.format = PNG_FORMAT_LINEAR_RGB_ALPHA; in create_sprite()
223 buffer = malloc(PNG_IMAGE_SIZE(image)); in create_sprite()
227 if (png_image_finish_read(&image, NULL/*background*/, buffer, in create_sprite()
237 sprite_op(sprite, x, y, &image, buffer); in create_sprite()
248 image.message); in create_sprite()
255 (unsigned long)PNG_IMAGE_SIZE(image)); in create_sprite()
261 png_image_free(&image); in create_sprite()
268 fprintf(stderr, "simpleover: %s: %s\n", (*argv)[0], image.message); in create_sprite()
537 png_image image; in main() local
545 image.version = PNG_IMAGE_VERSION; in main()
546 image.opaque = NULL; in main()
548 if (png_image_begin_read_from_file(&image, argv[1])) in main()
552 image.format = PNG_FORMAT_RGB; /* 24-bit RGB */ in main()
554 buffer = malloc(PNG_IMAGE_SIZE(image)); in main()
560 if (png_image_finish_read(&image, &background, buffer, in main()
569 if (simpleover_process(&image, buffer, argc-argi, argv+argi)) in main()
573 png_image_write_to_file(&image, output, in main()
577 png_image_write_to_stdio(&image, stdout, in main()
584 output == NULL ? "stdout" : output, image.message); in main()
592 image.message); in main()
600 (unsigned long)PNG_IMAGE_SIZE(image)); in main()
606 png_image_free(&image); in main()
613 fprintf(stderr, "simpleover: %s: %s\n", argv[1], image.message); in main()