Browse Source

+ stdint.h / +debug code

master
tth 4 months ago
parent
commit
389beea6cd
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      v4l2/rgb2fimg.c

+ 9
- 1
v4l2/rgb2fimg.c 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;


Loading…
Cancel
Save