FloatImg/funcs/recurse.c

47 lines
1.2 KiB
C
Raw Normal View History

2021-05-04 09:56:18 +02:00
/*
RECURSION 'QUADTREE' SUR LES IMAGES
-----------------------------------
*/
#include <stdio.h>
#include <math.h>
2021-05-17 22:38:56 +02:00
#include <stdint.h>
#include <sys/time.h>
2024-03-24 15:15:42 +01:00
#include <stdlib.h>
2021-05-04 09:56:18 +02:00
#include "../floatimg.h"
/* -------------------------------------------------------------------- */
/* may be we need some private variables ? */
/* -------------------------------------------------------------------- */
/* nouveau 29 avril 2021, pendant un autre masque-flamme coronavidique */
int fimg_recursion_proto(FloatImg *src, FloatImg *dst, int notused)
{
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, src, dst, notused);
#endif
2023-01-22 15:32:09 +01:00
if (notused) {
fprintf(stderr, "%s parameter notused is %d, must be 0\n",
__func__, notused);
return -2;
}
2021-05-17 22:38:56 +02:00
fprintf(stderr, "!!!!!! %s is a wip !!!!!\n", __func__);
2024-03-24 15:15:42 +01:00
if (fimg_images_not_compatible(src, dst)) {
fprintf(stderr, "%s: compatibility fatalerror\n", __func__);
exit(1);
}
2021-10-10 22:35:19 +02:00
/*
* bon, maintenant, il faut plonger dans du code du
* siecle dernier et l'adapter a ce nouveau contexte
*/
2021-05-04 09:56:18 +02:00
return -1;
}
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */