NEW RELEASE for other systems

This commit is contained in:
tth
2021-10-17 18:32:53 +02:00
parent 6c92cca12c
commit 1b5186f4b3
5 changed files with 73 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
DEPS = ../floatimg.h Makefile
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
fimg-libpnm.o rampes.o \
fimg-libpnm.o rampes.o rectangle.o \
sfx0.o sfx1.o sfx2.o sfx3.o sfx4.o \
geometry.o rotate.o fimg-openexr.o \
equalize.o fimg-fits.o saturation.o histogram.o \
@@ -37,6 +37,9 @@ tests.o: tests.c tests.h $(DEPS)
# ###
rectangle.o: rectangle.c $(DEPS)
gcc $(COPT) -c $<
decomprgb.o: decomprgb.c $(DEPS)
gcc $(COPT) -c $<

32
funcs/rectangle.c Normal file
View File

@@ -0,0 +1,32 @@
/*
* R E C T A N G L E
* This is an eternal WIP, sorry...
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include "../floatimg.h"
/* --------------------------------------------------------------------- */
int fimg_clear_rectangle(FloatImg *pi, int coo[4])
{
int line, off;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, pi, coo);
#endif
/* please add boudary checks */
for (line=0; line<coo[3]; line++) {
off = (line+coo[1])*pi->width + coo[0];
fprintf(stderr, "line %d off %d\n", line, off);
}
return -1;
}
/* --------------------------------------------------------------------- */