2020-10-30 23:14:23 +11:00
|
|
|
/*
|
|
|
|
* FloatImg : some dithering experiments
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2021-05-20 18:31:28 +11:00
|
|
|
#include <stdint.h>
|
2020-10-30 23:14:23 +11: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 18:31:28 +11:00
|
|
|
/* PLEASE DO SOMETHING HERE */
|
2020-10-30 23:14:23 +11:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|