revert to divide first

old-commit-hash: bcbcc03dc7488d6c9cf75062b7168dd40393cc4f
This commit is contained in:
Comma Device
2021-03-08 13:52:20 -08:00
parent 2e6473611d
commit 9360cf6509
+1 -1
View File
@@ -318,7 +318,7 @@ void set_exposure_target(CameraState *c, int x_start, int x_end, int x_skip, int
break;
}
}
lum_med = lum_med_alt>0 ? lum_med + lum_med*lum_cur*(lum_med_alt - lum_med)/lum_total/32:lum_med;
lum_med = lum_med_alt>0 ? lum_med + lum_med/32*lum_cur*(lum_med_alt - lum_med)/lum_total:lum_med;
camera_autoexposure(c, lum_med / 256.0);
}