integration of halfsizing

This commit is contained in:
2020-02-16 16:21:27 +01:00
parent 2b26645b49
commit 23ce4cd337
4 changed files with 39 additions and 7 deletions

View File

@@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include "../floatimg.h"
@@ -40,12 +41,12 @@ for (y=0; y<hd; y++) {
for (x=0; x<wd; x++) {
foo = fimg_get_rgb(src, x*2, y*2, pixel);
if (foo) {
fprintf(stderr, "%s: err get %d\n", foo);
fprintf(stderr, "%s: err get %d\n", __func__, foo);
abort();
}
foo = fimg_plot_rgb(dst, x, y, pixel[0], pixel[1], pixel[2]);
if (foo) {
fprintf(stderr, "%s: err plot %d\n", foo);
fprintf(stderr, "%s: err plot %d\n", __func__, foo);
abort();
}
}