summaryrefslogtreecommitdiff
path: root/backend/artec_eplus48u.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
commit351b7328520c16730ceb46e5acae16038c42185e (patch)
treefae21fd5c94f3c3ed0202a95c9ada705482e647b /backend/artec_eplus48u.c
parentad38bc6ecb80ddeb562841b33258dd53659b1da6 (diff)
New upstream version 1.0.32upstream/1.0.32
Diffstat (limited to 'backend/artec_eplus48u.c')
-rw-r--r--backend/artec_eplus48u.c14
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: