forked from tTh/FloatImg
40 lines
866 B
C
40 lines
866 B
C
|
/*
|
||
|
* FloatImg library from tTh - really ugly code inside
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdint.h>
|
||
|
#include <sys/time.h>
|
||
|
|
||
|
#include "../floatimg.h"
|
||
|
|
||
|
/* -------------------------------------------------------------- */
|
||
|
/* this is a global vars exported from main */
|
||
|
extern int verbosity;
|
||
|
|
||
|
/* -------------------------------------------------------------- */
|
||
|
|
||
|
|
||
|
/* -------------------------------------------------------------- */
|
||
|
/* nouveau 18 mai 2022 */
|
||
|
int fimg_falsecolors_0(FloatImg *src, FloatImg *dst, int k, float valf)
|
||
|
{
|
||
|
int x, y;
|
||
|
|
||
|
fprintf(stderr, ">>> %s ( %p %p %d %f )\n", __func__,
|
||
|
src, dst, k, valf);
|
||
|
|
||
|
for (y=0; y<src->height, y++) {
|
||
|
for (x=0; x<src->width, x++) {
|
||
|
|
||
|
/***********************/
|
||
|
/* DO SOMETHING HERE ! */
|
||
|
/***********************/
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return -1;
|
||
|
}
|
||
|
/* -------------------------------------------------------------- */
|