- ifdef'ed forgottent debug statements

merge-requests/1/head
Stéphane Voltz 2005-11-28 20:59:30 +00:00
rodzic 0b6469ec26
commit 83880f74c2
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2005-11-28 Stephane Voltz <stefdev@modulonet.fr>
* backend/umax_pp_low.c: ifdef'ed forgottent debug statements
2005-11-28 Stephane Voltz <stefdev@modulonet.fr>
* backend/umax_pp_low.c: fixed 'blue tint' on scanning area border

Wyświetl plik

@ -9921,8 +9921,8 @@ evalGain (int sum, int count)
int gn;
float pct;
float avg;
float area=15;
float coeff=2;
float area=50;
float coeff=2.5;
float cnst=0.9;
@ -9936,12 +9936,14 @@ evalGain (int sum, int count)
gn = (int) (pct / 0.57);
/* give gain for dark areas a boost */
#ifdef UMAX_PP_DANGEROUS_EXPERIMENT
if(getenv("AREA")!=NULL)
cnst=atol(getenv("AREA"));
if(getenv("COEFF")!=NULL)
cnst=atol(getenv("COEFF"));
if(getenv("CNST")!=NULL)
cnst=atol(getenv("CNST"));
#endif
pct = gn;
avg = exp((-pct)/area)*coeff+cnst;