diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index 48f28df..0a41bd1 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -132,6 +132,17 @@ count++; flag_debug = 0; return retval; } +/* -------------------------------------------------------------- */ +char * crap_name_from_number(int num) +{ +return "???"; +} +/* -------------------------------------------------------------- */ +int crap_number_from_name(char *name) +{ + +return -1; +} /* -------------------------------------------------------------- */ diff --git a/Fonderie/glitches.c b/Fonderie/glitches.c index 5ede29f..d9a40ef 100644 --- a/Fonderie/glitches.c +++ b/Fonderie/glitches.c @@ -51,4 +51,55 @@ for (idx=0; idxwidth * (y+ypos)); + for (x=0; x<8; x++) { + sr += picture->R[off]; + sg += picture->G[off]; + sb += picture->B[off]; + off++; + } + } +sr /= 64.0; sg /= 64.0; sb /= 64.0; +for (y=0; y<8; y++) { + off = xpos + (picture->width * (y+ypos)); + for (x=0; x<8; x++) { + picture->R[off] = sr; + picture->G[off] = sg; + picture->B[off] = sb; + off++; + } + } + +return 0; +} +/* -------------------------------------------------------------- */ +int un_moyen_flou_8x8(FloatImg *picture, int xpos, int ypos) +{ +int i, j, x, y; + +for (i=y=0; i<8; i++, y+=8) { + for (j=x=0; j<8; j++, x+=8 ) { + un_petit_flou_8x8(picture, x+xpos, y+ypos); + } + } +return -1; +} +/* -------------------------------------------------------------- */ +int poke_a_random_pixel(FloatImg *picz, float fval, int kaboo) +{ + +return -1; +} +/* -------------------------------------------------------------- */ diff --git a/Fonderie/glitches.h b/Fonderie/glitches.h index 0929044..a1cd77f 100644 --- a/Fonderie/glitches.h +++ b/Fonderie/glitches.h @@ -5,4 +5,8 @@ int kill_a_random_line(FloatImg *pvictime, float level, int bits); int kill_a_few_lines(FloatImg *who, float fval, int number); +int un_petit_flou_8x8(FloatImg *picture, int x, int y); +int un_moyen_flou_8x8(FloatImg *picture, int x, int y); +int poke_a_random_pixel(FloatImg *picz, float fval, int kaboo); + /* this is a wtf file */ diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index 03fc2ae..758a3d2 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -77,6 +77,9 @@ for (idx=0; idx