Compare commits
3 Commits
53a108561f
...
4f41ae399b
Author | SHA1 | Date | |
---|---|---|---|
|
4f41ae399b | ||
|
7aab0e030a | ||
|
e841207907 |
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k)
|
int Image_egalise_cos01(Image_Desc *source, Image_Desc *but, int k)
|
||||||
{
|
{
|
||||||
|
(void)k; /* WARNING KILLER */
|
||||||
int lut[256], uc, idx, foo;
|
int lut[256], uc, idx, foo;
|
||||||
float fidx;
|
float fidx;
|
||||||
|
|
||||||
@ -34,11 +35,16 @@ for (idx=0; idx<256; idx++) {
|
|||||||
}
|
}
|
||||||
Image_LUT_mono(source, but, lut);
|
Image_LUT_mono(source, but, lut);
|
||||||
|
|
||||||
return FUNC_IS_BETA;
|
return OLL_KORRECT;
|
||||||
}
|
}
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
|
/*
|
||||||
|
* new: Fri Sep 15 20:32:12 UTC 2023
|
||||||
|
* inspired by the same func in FloatImg
|
||||||
|
*/
|
||||||
int Image_egalise_cos010(Image_Desc *source, Image_Desc *but, int k)
|
int Image_egalise_cos010(Image_Desc *source, Image_Desc *but, int k)
|
||||||
{
|
{
|
||||||
|
(void)k; /* WARNING KILLER */
|
||||||
int lut[256], uc, idx, foo;
|
int lut[256], uc, idx, foo;
|
||||||
float fidx;
|
float fidx;
|
||||||
|
|
||||||
@ -59,7 +65,7 @@ for (idx=0; idx<256; idx++) {
|
|||||||
}
|
}
|
||||||
Image_LUT_mono(source, but, lut);
|
Image_LUT_mono(source, but, lut);
|
||||||
|
|
||||||
return FUNC_IS_BETA;
|
return OLL_KORRECT;
|
||||||
}
|
}
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
/*
|
/*
|
||||||
|
@ -442,7 +442,7 @@ switch (commande)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "%s: return code is %d\n", __FILE__, foo);
|
/* fprintf(stderr, "%s: return code is %d\n", __FILE__, foo); */
|
||||||
Image_print_error(argv[0], foo);
|
Image_print_error(argv[0], foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ mot_clef mots_clef[] =
|
|||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
void usage()
|
void usage()
|
||||||
{
|
{
|
||||||
fprintf(stderr, "* tga_equalize v 0.0.24 [%s] (dwtfywl) tonton Th\n",
|
fprintf(stderr, "* tga_equalize v 0.0.25 [%s] (dwtfywl) tonton Th\n",
|
||||||
TGA_OUTILS_VERSION);
|
TGA_OUTILS_VERSION);
|
||||||
fprintf(stderr, " compiled %s at %s\n", __DATE__, __TIME__);
|
fprintf(stderr, " compiled %s at %s\n", __DATE__, __TIME__);
|
||||||
fprintf(stderr, "usage:\n\ttga_equalize avant.tga mode apres.tga [params]\n");
|
fprintf(stderr, "usage:\n\ttga_equalize avant.tga mode apres.tga [params]\n");
|
||||||
@ -129,6 +129,7 @@ switch (commande)
|
|||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
fprintf(stderr, "unexpected command #%d\n", commande);
|
||||||
foo=-1;
|
foo=-1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user