diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:25:42 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-02-16 18:25:42 +0100 |
commit | 64ddd1a4dfcefd11f662f5cf4bb05b590d901a97 (patch) | |
tree | 4303648095deff998ae20c2393b56db527742ac9 /backend/artec_eplus48u.c | |
parent | 5793a221e112fa49073de0137d6bfa750a61b0a1 (diff) | |
parent | ecaaf250cb33ff61f37a7b441f2337584a655350 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/artec_eplus48u.c')
-rw-r--r-- | backend/artec_eplus48u.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/backend/artec_eplus48u.c b/backend/artec_eplus48u.c index c5eb225..4c15673 100644 --- a/backend/artec_eplus48u.c +++ b/backend/artec_eplus48u.c @@ -42,9 +42,7 @@ Updates (C) 2001 by Henning Meier-Geinitz. General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. + along with this program. If not, see <https://www.gnu.org/licenses/>. As a special exception, the authors of SANE give permission for additional uses of the libraries contained in this release of SANE. @@ -510,7 +508,7 @@ copy_scan_line (Artec48U_Scanner * s) { /*For resolution of 1200 dpi we have to interpolate horizontally, because the optical horizontal resolution is - limited to 600 dpi. We simply use the avarage value of two pixels. */ + limited to 600 dpi. We simply use the average value of two pixels. */ int cnt, i, j; int xs = s->params.pixel_xs; int interpolate = 0; @@ -787,7 +785,7 @@ attach (const char *dev_name, Artec48U_Device ** devp) vendor_string[40] = 0; model_string[40] = 0; - /* assign all the stuff we need fo this device... */ + /* assign all the stuff we need for this device... */ dev->sane.vendor = strdup (vendor_string); XDBG ((3, "attach: setting vendor string: %s\n", vendor_string)); dev->sane.model = strdup (model_string); @@ -874,7 +872,7 @@ decodeVal (char *src, char *opt, int what, void *result, void *def) if (tmp) { - /* on success, compare wiht the given one */ + /* on success, compare with the given one */ if (0 == strcmp (tmp, opt)) { XDBG ((1, "Decoding option >%s<\n", opt)); @@ -952,7 +950,7 @@ decodeVal (char *src, char *opt, int what, void *result, void *def) } /** - * function to retrive the device name of a given string + * function to retrieve the device name of a given string * @param src - string that keeps the option name to check src for * @param dest - pointer to the string, that should receive the detected * devicename @@ -3058,7 +3056,7 @@ calculate_contrast (Artec48U_Scanner * s) Works like the white shading correction, with the difference, that the red-, green- and blue exposure time is set to 0x04 (the value is taken from the windoze driver). -Since we do this over the whole width of the image with the maximal optical resolution, - we can use the shading data for every scan, independend of the size, position or resolution, + we can use the shading data for every scan, independent of the size, position or resolution, because we have the shading values for every sensor/LED. Note: |