2020-10-30 13:14:23 +01:00
|
|
|
/*
|
|
|
|
* FloatImg : some dithering experiments
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2021-05-20 09:31:28 +02:00
|
|
|
#include <stdint.h>
|
2020-10-30 13:14:23 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
#include "../floatimg.h"
|
|
|
|
|
|
|
|
extern int verbosity;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
int fimg_dither_0(FloatImg *psrc, FloatImg *pdst, int flags)
|
|
|
|
{
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
for (y=0; y<psrc->height; y++) {
|
|
|
|
|
|
|
|
for (x=0; x<psrc->width; x++)
|
|
|
|
{
|
|
|
|
|
2021-05-20 09:31:28 +02:00
|
|
|
/* PLEASE DO SOMETHING HERE */
|
2020-10-30 13:14:23 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|