Lines Matching +full:cancel +full:- +full:in +full:- +full:progress
1 /* SANE - Scanner Access Now Easy.
3 Copyright (C) 2011-2020 Rolf Bensch <rolf at bensch hyphen online dot de>
4 Copyright (C) 2007-2008 Nicolas Martin, <nicols-guest at alioth dot debian dot org>
5 Copyright (C) 2006-2007 Wittawat Yamwong <wittawat@web.de>
14 This program is distributed in the hope that it will be useful, but
23 additional uses of the libraries contained in this release of SANE.
28 License. Your use of that executable is in no way restricted on
35 If you submit changes to SANE to the maintainers to be included in
78 * interrupt pixma_read_image(). It does not cancel the operation
83 * - \subpage API
84 * - \subpage IO
85 * - \subpage subdriver
86 * - \subpage debug
95 * - >= 0 if succeeded
96 * - < 0 if failed
100 # include <stdint.h> /* available in ISO C99 */
109 # include <inttypes.h> /* available in ISO C99 */
114 /** Don't forget to update the backend version in the SANE Backend specification
126 #define PIXMA_EIO -1
127 #define PIXMA_ENODEV -2
128 #define PIXMA_EACCES -3
129 #define PIXMA_ENOMEM -4
130 #define PIXMA_EINVAL -5
131 #define PIXMA_EBUSY -6
132 #define PIXMA_ECANCELED -7
133 #define PIXMA_ENOTSUP -8
134 #define PIXMA_ETIMEDOUT -9
135 #define PIXMA_EPROTO -10
136 #define PIXMA_EPAPER_JAMMED -11
137 #define PIXMA_ECOVER_OPEN -12
138 #define PIXMA_ENO_PAPER -13
139 #define PIXMA_EOF -14
160 #define PIXMA_CAP_GT_4096 (1 << 15) /* gamma table has 4096 8-bit values
162 * usually gamma table has 1024 16-bit values
299 /** Size in bytes of one image line (row).
304 /** Size in bytes of the whole image.
325 /*! \name Scan area in pixels
327 * bottom; in pixels.
328 * xs is the offset in x direction of the selected scan range relative
329 * to the range read from the scanner and wx the width in x direction
337 * Currently only used in pixma_mp800.c sub-driver */
340 /* Flag indicating if data from scanner will be in JPEG format */
343 /** Flag indicating whether a software-lineart scan is in progress
345 * 1 = software-lineart scan */
348 /** Threshold for software-lineart scans */
354 /* look up table used in dynamic rasterization */
373 /** The current page # in the same ADF scan session, 0 in non ADF */
376 /** adf-wait */
384 /* If you change this structure, don't forget to update the device list in
393 unsigned min_xdpi_16;/**< Minimum horizontal resolution[DPI] for 16-bit scans */
400 unsigned tpuir_min_dpi; /**< Minimum resolution[DPI] for tpu-ir
401 … * only needed if TPU-IR has another min. dpi value than 75 dpi */
402 unsigned tpuir_max_dpi; /**< Maximum resolution[DPI] for tpu-ir
403 * only needed if TPU-IR has another max. dpi value than xdpi */
404 unsigned width; /**< Maximum width of scannable area in pixels at 75DPI */
405 unsigned height; /**< Maximum height of scannable area in pixels at 75DPI */
410 /* Defined in pixma_common.c */
420 * \param[in] level the debug level
421 * - 0 No debug output at all
422 * - 1 Only errors and warning
423 * - 2 General information
424 * - 3 Debugging messages
425 * - 10 USB traffic dump */
428 /** Find scanners. The device number used in pixma_open(),
447 * \param[in] devnr The scanner number
464 * \param[in] len Size of the buffer
468 * - count = 0 for end of image
469 * - count = \a len
470 * - 0 < count < \a len if and only if it is the last block.
471 * - count < 0 for error */
476 * \param[in] fd output file descriptor
481 /** Cancel the scanning process. No effect if no scanning process is in
482 * progress. It can be called asynchronously e.g. within a signal
495 * called during image acquisition is in progress.
496 * \param[in] timeout in milliseconds, less than 0 means forever
498 * - \c PIXMA_EV_NONE if it timed out.
499 * - non-zero value indicates which button was pressed.
507 /** De-activate connection to scanner */
513 * is submitting interrupt URB in background.
514 * \param[in] enabled if not zero, enable background task.