|
|
|
@ -3,11 +3,12 @@
@@ -3,11 +3,12 @@
|
|
|
|
|
* -------------------------------- |
|
|
|
|
* |
|
|
|
|
* you can see some use in 'tools/fimgfx.c', so you can thing |
|
|
|
|
* about the 'maxval' parameter. C'est touchy :) |
|
|
|
|
* about the 'maxval' parameter. It was touchy :) |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <stdint.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
#include <string.h> |
|
|
|
|
#include <math.h> |
|
|
|
@ -25,6 +26,11 @@ if (!strcmp(str, "sqrt")) return CONTRAST_SQRT;
@@ -25,6 +26,11 @@ if (!strcmp(str, "sqrt")) return CONTRAST_SQRT;
|
|
|
|
|
if (!strcmp(str, "pow2")) return CONTRAST_POW2; |
|
|
|
|
if (!strcmp(str, "cos01")) return CONTRAST_COS01; |
|
|
|
|
if (!strcmp(str, "cos010")) return CONTRAST_COS010; |
|
|
|
|
if (!strcmp(str, "xper")) return CONTRAST_XPER; |
|
|
|
|
|
|
|
|
|
#if DEBUG_LEVEL |
|
|
|
|
fprintf(stderr, "%s: unknow contrast name '%s'\n", __func__, str); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|