Compare commits
5 Commits
155ed74e2b
...
4427fe9093
Author | SHA1 | Date | |
---|---|---|---|
|
4427fe9093 | ||
|
d03e8269ef | ||
|
964c264583 | ||
|
98f73942b8 | ||
|
01103a1cb2 |
@ -66,15 +66,19 @@ return FUNC_IS_BETA;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/*
|
||||
* 13 Juin 2002: grosse colère, je vais faire du codage à la Gruuik.
|
||||
* 13 Juin 2002: grosse colere, je vais faire du codage a la Gruuik.
|
||||
* 1er Juillet 2022: la colere est toujours la, mais ce n'est pas la
|
||||
* meme qu'il y a vingt ans...
|
||||
*/
|
||||
int
|
||||
Image_cadre_burp_1(Image_Desc *img, int p1, int p2, int flags)
|
||||
{
|
||||
int x, xx, y, yy, v;
|
||||
|
||||
#define TOPV 170
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "%s ( %p %d %d $%x )\n", __func__, img, p1, p2, flags);
|
||||
fprintf(stderr, ">>> %s ( %p %d %d $%x )\n", __func__, img, p1, p2, flags);
|
||||
#endif
|
||||
|
||||
for (x=0; x<img->width; x++)
|
||||
@ -86,14 +90,14 @@ for (x=0; x<img->width; x++)
|
||||
for (yy=0; yy<p1; yy++)
|
||||
{
|
||||
y = yy;
|
||||
(img->Rpix[y])[x] = 255-v;
|
||||
(img->Gpix[y])[x] = 255;
|
||||
(img->Rpix[y])[x] = TOPV-v;
|
||||
(img->Gpix[y])[x] = TOPV;
|
||||
(img->Bpix[y])[x] = v;
|
||||
|
||||
y = img->height-yy-1;
|
||||
(img->Rpix[y])[x] = v;
|
||||
(img->Gpix[y])[x] = 255;
|
||||
(img->Bpix[y])[x] = 255-v;
|
||||
(img->Gpix[y])[x] = TOPV;
|
||||
(img->Bpix[y])[x] = TOPV-v;
|
||||
}
|
||||
}
|
||||
|
||||
@ -104,13 +108,13 @@ for (y=p1; y<img->height-p1; y++)
|
||||
{
|
||||
x = xx;
|
||||
(img->Rpix[y])[x] = 0;
|
||||
(img->Gpix[y])[x] = 255;
|
||||
(img->Gpix[y])[x] = TOPV;
|
||||
(img->Bpix[y])[x] = v;
|
||||
|
||||
x = img->width-xx-1;
|
||||
(img->Rpix[y])[x] = 0;
|
||||
(img->Gpix[y])[x] = 255;
|
||||
(img->Bpix[y])[x] = 255-v;
|
||||
(img->Gpix[y])[x] = TOPV;
|
||||
(img->Bpix[y])[x] = TOPV-v;
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,12 +123,15 @@ if (flags & 1)
|
||||
fprintf(stderr, "plop from %s\n", __func__);
|
||||
}
|
||||
|
||||
#undef TOPV /* molly guard */
|
||||
|
||||
return OLL_KORRECT;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/*
|
||||
* new 10 decembre 2007 - ave St Exupery - fait pour l'affichage web
|
||||
* des exemples des objets POV de tTh
|
||||
*
|
||||
*/
|
||||
int
|
||||
Image_cadre_burp_2(Image_Desc *img, int taille, int pr, int pg, int pb)
|
||||
@ -132,7 +139,7 @@ Image_cadre_burp_2(Image_Desc *img, int taille, int pr, int pg, int pb)
|
||||
int x, y, zz;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "%s: sz %d, rgb %d %d %d\n", __func__, taille, pr, pg, pb);
|
||||
fprintf(stderr, ">>> %s: sz %d, rgb %d %d %d\n", __func__, taille, pr, pg, pb);
|
||||
#endif
|
||||
|
||||
for (x=0; x<img->width; x++)
|
||||
@ -197,7 +204,7 @@ int r, g, b;
|
||||
fprintf(stderr, "%s : img at %p, taille=%d\n", __func__, img, taille);
|
||||
#endif
|
||||
|
||||
#define RASTA_RAND 2
|
||||
#define RASTA_RAND 4
|
||||
|
||||
rect.x = rect.y = 0;
|
||||
rect.w = img->width;
|
||||
|
10
TODO.md
Normal file
10
TODO.md
Normal file
@ -0,0 +1,10 @@
|
||||
# Trucs à faire !
|
||||
|
||||
### Lib
|
||||
|
||||
Nettoyer les warnings de compilation.
|
||||
|
||||
### Tools
|
||||
|
||||
Vérifier si on peut passer des paramètres en hexadécimal
|
||||
|
@ -1,3 +1,4 @@
|
||||
# Some useless tests
|
||||
|
||||
YMMV !
|
||||
Tester, c'est douter.
|
||||
|
||||
|
@ -66,7 +66,6 @@ int main(int argc, char *argv[])
|
||||
Image_Desc *where, *what;
|
||||
int foo, idx;
|
||||
int xpos, ypos;
|
||||
int par[NB_PARAMS], nb_int_par;
|
||||
int commande, nbargs;
|
||||
|
||||
dump_command_line(argc, argv, 0);
|
||||
@ -75,12 +74,14 @@ if (argc==2 && !strcmp(argv[1], "-?")) usage(0);
|
||||
if (argc==2 && !strcmp(argv[1], "list")) usage(1);
|
||||
if (argc < 4) usage(1);
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
if (must_be_verbose())
|
||||
{
|
||||
fprintf(stderr, "********************************\n");
|
||||
fprintf(stderr, "* EXPERIMENTAL CORE DUMPER *\n");
|
||||
fprintf(stderr, "********************************\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
idx = cherche_mot_clef(argv[3], mots_clef, &commande, &nbargs);
|
||||
if (idx < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user