forked from tTh/FloatImg
+ stdint.h / +debug code
This commit is contained in:
parent
b2d2c45be1
commit
389beea6cd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue