+ stdint.h / +debug code

This commit is contained in:
tth 2021-05-27 16:55:54 +02:00
parent b2d2c45be1
commit 389beea6cd
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,9 @@
/*
* UGLY CODE INSIDE
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "../floatimg.h"
#include "funcs.h"
@ -85,6 +88,11 @@ int x_add_rgb2fimg(unsigned char *src, int w, int h, FloatImg *d)
int iter, size;
float *rp, *gp, *bp;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %d %d %p )\n", __func__,
src, w, h, d);
#endif
size = w * h;
rp = d->R, gp = d->G, bp = d->B;