|
|
@@ -10,7 +10,6 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
#include <stdint.h> |
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
#include "config.h" |
|
|
@@ -133,14 +132,15 @@ int setpixel(struct image *img, int x, int y, int r, int g, int b) |
|
|
|
|
|
|
|
void display_image(struct image *img) |
|
|
|
{ |
|
|
|
char name[BUFSIZ]; |
|
|
|
#if defined(HAVE_IMLIB2_H) |
|
|
|
//char name[BUFSIZ]; |
|
|
|
//static int i = 0; |
|
|
|
//sprintf(name, "image%i-%ix%i.png", i++, img->width, img->height); |
|
|
|
//imlib_context_set_image(img->priv); |
|
|
|
//imlib_save_image(name); |
|
|
|
//fprintf(stderr, "saved to %s\n", name); |
|
|
|
#elif defined(HAVE_CV_H) |
|
|
|
char name[BUFSIZ]; |
|
|
|
sprintf(name, "Image %p (%i x %i)", img, img->width, img->height); |
|
|
|
cvNamedWindow(name, 0); |
|
|
|
cvShowImage(name, img->priv); |
|
|
|