mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
fixed rest of warning for gcc 3 in /sys
Original commit message from CVS: fixed rest of warning for gcc 3 in /sys
This commit is contained in:
parent
2cb859e0c9
commit
f921acd1a6
1 changed files with 7 additions and 9 deletions
|
@ -214,16 +214,8 @@ qcip_autoexposure(struct qcam *q, scanbuf *scan)
|
||||||
case AE_STD_AVG:
|
case AE_STD_AVG:
|
||||||
luminance_avg = qcip_pixel_average(q, scan);
|
luminance_avg = qcip_pixel_average(q, scan);
|
||||||
lum_std = qcip_luminance_std(q, scan, luminance_avg);
|
lum_std = qcip_luminance_std(q, scan, luminance_avg);
|
||||||
break;
|
|
||||||
case AE_ALL_AVG:
|
|
||||||
default:
|
|
||||||
luminance_avg = qcip_pixel_average(q, scan);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ==>> Contrast adjustment <<== */
|
/* ==>> Contrast adjustment <<== */
|
||||||
|
|
||||||
if (ae_mode == AE_STD_AVG) {
|
|
||||||
|
|
||||||
/* set target if it has not been explicitly set */
|
/* set target if it has not been explicitly set */
|
||||||
if (luminance_std_target == -1) {
|
if (luminance_std_target == -1) {
|
||||||
|
@ -244,6 +236,12 @@ qcip_autoexposure(struct qcam *q, scanbuf *scan)
|
||||||
fprintf(stderr, "Luminance std/target/tolerance: %d/%d/%d\n",
|
fprintf(stderr, "Luminance std/target/tolerance: %d/%d/%d\n",
|
||||||
lum_std, luminance_std_target, luminance_std_tolerance );
|
lum_std, luminance_std_target, luminance_std_tolerance );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
break;
|
||||||
|
case AE_ALL_AVG:
|
||||||
|
default:
|
||||||
|
luminance_avg = qcip_pixel_average(q, scan);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==>> Brightness adjustment <<== */
|
/* ==>> Brightness adjustment <<== */
|
||||||
|
|
Loading…
Reference in a new issue