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