* adds the canon_lide70 backend * avision: adds support for the KODAK i1120, fixes thread cancellation issues, disables exposure option for non-filmscanners * canon_dr: improves error reporting * dmc: fixes compiler warnings on the scan area options * epsonds: rewrites the network I/O following changes made to the * epson2 backend in 1.0.30 to fix security issues. Network support is still unsupported. * fujitsu: adds support for the fi-800R and a card scanning slot, fixes a bug when reading hardware sensors on the first invocation. Adds USB IDs for fi-7800 and fi-7900. * genesys: adds support for the Canon 5600F, Canon LiDE 90, Plustek OpticFilm 7200 and 7200 (v2), 7400, 7600i, 8100 and 8200i. Fixes several issues with the Canon 8600F. Adds 4800dpi support for the Canon LiDE 210 and fixes 3200dpi flatbed support on the Canon 8400F. Adds an option to fill dark calibration with a constant. Adds transparency support for gl847 chipset based devices. Fixes CIS scanner support for gl842 chipset based devices. Removes lineart and image enhancement emulation support. * gphoto: supports the PLANon DocuPen RC800 (with a recent enough version of gphoto2) * gt68xx: modifies scan cancellation behaviour * hp5400: adds button support, fixes a scan cancellation crash issue * pixma: add supports for the i-SENSYS MF440 Series and untested support for the PIXMMA G7000 Series and GM4000 Series as well as the i-SENSYS MF720 Series. * plustek: fixes a potential buffer overrun * test: adds gamma options Patches: - ADD: 102-pixma_Restore_old_behaviour_in_case_XML_support_is_missing.patch: pixma was failing to detect libxml2, even when it exists (https://gitlab.com/sane-project/backends/-/issues/345) - DROP: 100-fix-bigendian.patch: fix in release Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
18 lines
837 B
Diff
18 lines
837 B
Diff
https://gitlab.com/sane-project/backends/issues/237
|
|
|
|
Index: sane-backends-1.0.31/backend/genesys/image_pipeline.cpp
|
|
===================================================================
|
|
--- sane-backends-1.0.31.orig/backend/genesys/image_pipeline.cpp
|
|
+++ sane-backends-1.0.31/backend/genesys/image_pipeline.cpp
|
|
@@ -754,7 +754,11 @@ bool ImagePipelineNodeCalibrate::get_nex
|
|
|
|
float value_f = static_cast<float>(value) / max_value;
|
|
value_f = (value_f - offset_[curr_calib_i]) * multiplier_[curr_calib_i];
|
|
+#if defined(__UCLIBC__)
|
|
+ value_f = round(value_f * max_value);
|
|
+#else
|
|
value_f = std::round(value_f * max_value);
|
|
+#endif
|
|
value = clamp<std::int32_t>(static_cast<std::int32_t>(value_f), 0, max_value);
|
|
set_raw_channel_to_row(out_data, x, ch, value, format);
|
|
|