hide trace msg
This commit is contained in:
parent
449705c0ee
commit
b264cffb02
12
Lib/dither.c
12
Lib/dither.c
@ -16,7 +16,9 @@ int Image_dither_Bayer_0(Image_Desc *s, Image_Desc *d, int uh)
|
|||||||
{
|
{
|
||||||
int dx, dy, x, y, r, g, b;
|
int dx, dy, x, y, r, g, b;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* directement copie de la page 389 de "Bitmapped graphics" de
|
/* directement copie de la page 389 de "Bitmapped graphics" de
|
||||||
Steve Rimmer. */
|
Steve Rimmer. */
|
||||||
@ -63,7 +65,9 @@ int Image_dither_crude(Image_Desc *s, Image_Desc *d, int uh)
|
|||||||
int x, y, r, g, b;
|
int x, y, r, g, b;
|
||||||
int som;
|
int som;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (s != d) Image_clear(d, 0, 0, 0);
|
if (s != d) Image_clear(d, 0, 0, 0);
|
||||||
|
|
||||||
@ -105,14 +109,16 @@ return OLL_KORRECT;
|
|||||||
}
|
}
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
/*
|
/*
|
||||||
* ça ne marche pas très fort, ce truc...
|
* Il ne marche pas tres fort, ce truc...
|
||||||
*/
|
*/
|
||||||
int Image_dither_2x2(Image_Desc *s, Image_Desc *d, int uh)
|
int Image_dither_2x2(Image_Desc *s, Image_Desc *d, int uh)
|
||||||
{
|
{
|
||||||
int x, y, xm, ym;
|
int x, y, xm, ym;
|
||||||
int r, g, b, v;
|
int r, g, b, v;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
||||||
|
#endif
|
||||||
|
|
||||||
x = s->width; xm = (x&1) ? (x-1) : x;
|
x = s->width; xm = (x&1) ? (x-1) : x;
|
||||||
y = s->height; ym = (y&1) ? (y-1) : y;
|
y = s->height; ym = (y&1) ? (y-1) : y;
|
||||||
@ -153,7 +159,9 @@ int Image_dither_seuil_random(Image_Desc *s, Image_Desc *d, int uh)
|
|||||||
int x, y, r, g, b;
|
int x, y, r, g, b;
|
||||||
int foo;
|
int foo;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( (foo=Image_compare_desc(s, d)) ) {
|
if ( (foo=Image_compare_desc(s, d)) ) {
|
||||||
fprintf(stderr, "%s: images are differents %d\n", __func__, foo);
|
fprintf(stderr, "%s: images are differents %d\n", __func__, foo);
|
||||||
@ -192,7 +200,9 @@ int x, y, xa, xb, inc, errR, errG, errB;
|
|||||||
int r, g, b, dr, dg, db;
|
int r, g, b, dr, dg, db;
|
||||||
int foo;
|
int foo;
|
||||||
|
|
||||||
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, s, d, uh);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( (foo=Image_compare_desc(s, d)) ) {
|
if ( (foo=Image_compare_desc(s, d)) ) {
|
||||||
fprintf(stderr, "%s: images are differents %d\n", __func__, foo);
|
fprintf(stderr, "%s: images are differents %d\n", __func__, foo);
|
||||||
|
Loading…
Reference in New Issue
Block a user