diff options
Diffstat (limited to 'camlibs/jl2005c/img_enhance.c')
-rw-r--r-- | camlibs/jl2005c/img_enhance.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camlibs/jl2005c/img_enhance.c b/camlibs/jl2005c/img_enhance.c index 956879078..1db7e9ce2 100644 --- a/camlibs/jl2005c/img_enhance.c +++ b/camlibs/jl2005c/img_enhance.c @@ -63,7 +63,7 @@ int histogram (unsigned char *data, unsigned int size, int *htable_r, int *htable_g, int *htable_b) { - int x; + unsigned int x; /* Initializations */ for (x = 0; x < 0x100; x++) { htable_r[x] = 0; @@ -84,7 +84,8 @@ histogram (unsigned char *data, unsigned int size, int *htable_r, int white_balance (unsigned char *data, unsigned int size, float saturation) { - int x, r, g, b, max, d; + unsigned int x, max; + int r, g, b, d; double r_factor, g_factor, b_factor, max_factor; int htable_r[0x100], htable_g[0x100], htable_b[0x100]; unsigned char gtable[0x100]; |