kopia lustrzana https://gitlab.com/sane-project/backends
new device parameters tpuir_min_dpi and tpuir_max_dpi
only for Canoscan devicesmerge-requests/1/head
rodzic
18c2ceb66f
commit
bb3806313d
|
@ -351,6 +351,10 @@ struct pixma_config_t
|
|||
* only needed if ADF/TPU has another min. dpi value than 75 dpi */
|
||||
unsigned adftpu_max_dpi; /**< Maximum vertical resolution[DPI] for adf/tpu
|
||||
* only needed if ADF/TPU has another max. dpi value than xdpi */
|
||||
unsigned tpuir_min_dpi; /**< Minimum resolution[DPI] for tpu-ir
|
||||
* only needed if TPU-IR has another min. dpi value than 75 dpi */
|
||||
unsigned tpuir_max_dpi; /**< Maximum resolution[DPI] for tpu-ir
|
||||
* only needed if TPU-IR has another max. dpi value than xdpi */
|
||||
unsigned width; /**< Maximum width of scannable area in pixels at 75DPI */
|
||||
unsigned height; /**< Maximum height of scannable area in pixels at 75DPI */
|
||||
unsigned cap; /**< Capability bitfield \see PIXMA_CAP_* */
|
||||
|
|
|
@ -745,6 +745,7 @@ static const pixma_scan_ops_t pixma_iclass_ops = {
|
|||
&pixma_iclass_ops, /* ops */ \
|
||||
dpi, dpi, /* xdpi, ydpi */ \
|
||||
0, 0, /* adftpu_min_dpi & adftpu_max_dpi not used in this subdriver */ \
|
||||
0, 0, /* tpuir_min_dpi & tpuir_max_dpi not used in this subdriver */ \
|
||||
w, h, /* width, height */ \
|
||||
PIXMA_CAP_GRAY|PIXMA_CAP_EVENTS|cap \
|
||||
}
|
||||
|
|
|
@ -1603,6 +1603,7 @@ static const pixma_scan_ops_t pixma_mp150_ops = {
|
|||
&pixma_mp150_ops, /* ops */ \
|
||||
dpi, 2*(dpi), /* xdpi, ydpi */ \
|
||||
adftpu_min_dpi, adftpu_max_dpi, /* adftpu_min_dpi, adftpu_max_dpi */ \
|
||||
0, 0, /* tpuir_min_dpi & tpuir_max_dpi not used in this subdriver */ \
|
||||
w, h, /* width, height */ \
|
||||
PIXMA_CAP_EASY_RGB| \
|
||||
PIXMA_CAP_GRAY| /* CIS with native grayscale and CCD with software grayscale */ \
|
||||
|
|
|
@ -802,6 +802,7 @@ static const pixma_scan_ops_t pixma_mp730_ops = {
|
|||
&pixma_mp730_ops, /* ops */ \
|
||||
dpi, dpi, /* xdpi, ydpi */ \
|
||||
0, 0, /* adftpu_min_dpi & adftpu_max_dpi not used in this subdriver */ \
|
||||
0, 0, /* tpuir_min_dpi & tpuir_max_dpi not used in this subdriver */ \
|
||||
w, h, /* width, height */ \
|
||||
PIXMA_CAP_GRAY|PIXMA_CAP_EVENTS|cap \
|
||||
}
|
||||
|
|
|
@ -957,6 +957,7 @@ static const pixma_scan_ops_t pixma_mp750_ops = {
|
|||
&pixma_mp750_ops, /* ops */ \
|
||||
dpi, 2*(dpi), /* xdpi, ydpi */ \
|
||||
0, 0, /* adftpu_min_dpi & adftpu_max_dpi not used in this subdriver */ \
|
||||
0, 0, /* tpuir_min_dpi & tpuir_max_dpi not used in this subdriver */ \
|
||||
637, 877, /* width, height */ \
|
||||
PIXMA_CAP_GRAY|PIXMA_CAP_EVENTS|cap \
|
||||
}
|
||||
|
|
|
@ -2184,7 +2184,7 @@ static const pixma_scan_ops_t pixma_mp810_ops =
|
|||
mp810_get_status
|
||||
};
|
||||
|
||||
#define DEVICE(name, model, pid, dpi, adftpu_min_dpi, adftpu_max_dpi, w, h, cap) { \
|
||||
#define DEVICE(name, model, pid, dpi, adftpu_min_dpi, adftpu_max_dpi, tpuir_min_dpi, tpuir_max_dpi, w, h, cap) { \
|
||||
name, /* name */ \
|
||||
model, /* model */ \
|
||||
CANON_VID, pid, /* vid pid */ \
|
||||
|
@ -2192,6 +2192,7 @@ static const pixma_scan_ops_t pixma_mp810_ops =
|
|||
&pixma_mp810_ops, /* ops */ \
|
||||
dpi, 2*(dpi), /* xdpi, ydpi */ \
|
||||
adftpu_min_dpi, adftpu_max_dpi, /* adftpu_min_dpi, adftpu_max_dpi */ \
|
||||
tpuir_min_dpi, tpuir_max_dpi, /* tpuir_min_dpi, tpuir_max_dpi */ \
|
||||
w, h, /* width, height */ \
|
||||
PIXMA_CAP_EASY_RGB| \
|
||||
PIXMA_CAP_GRAY| /* all scanners with software grayscale */ \
|
||||
|
@ -2199,34 +2200,34 @@ static const pixma_scan_ops_t pixma_mp810_ops =
|
|||
PIXMA_CAP_GAMMA_TABLE|PIXMA_CAP_EVENTS|cap \
|
||||
}
|
||||
|
||||
#define END_OF_DEVICE_LIST DEVICE(NULL, NULL, 0, 0, 0, 0, 0, 0, 0)
|
||||
#define END_OF_DEVICE_LIST DEVICE(NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
|
||||
const pixma_config_t pixma_mp810_devices[] =
|
||||
{
|
||||
/* Generation 2: CCD */
|
||||
DEVICE ("Canon PIXMA MP810", "MP810", MP810_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon PIXMA MP960", "MP960", MP960_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon PIXMA MP810", "MP810", MP810_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon PIXMA MP960", "MP960", MP960_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
/* Generation 3 CCD not managed as Generation 2 */
|
||||
DEVICE ("Canon Pixma MP970", "MP970", MP970_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon Pixma MP970", "MP970", MP970_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
/* Flatbed scanner CCD (2007) */
|
||||
DEVICE ("Canoscan 8800F", "8800F", CS8800F_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU | PIXMA_CAP_NEGATIVE),
|
||||
DEVICE ("Canoscan 8800F", "8800F", CS8800F_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU | PIXMA_CAP_NEGATIVE | PIXMA_CAP_48BIT),
|
||||
|
||||
/* PIXMA 2008 vintage CCD */
|
||||
DEVICE ("Canon MP980 series", "MP980", MP980_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon MP980 series", "MP980", MP980_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
/* Generation 4 CCD */
|
||||
DEVICE ("Canon MP990 series", "MP990", MP990_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon MP990 series", "MP990", MP990_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
/* Flatbed scanner (2010) */
|
||||
DEVICE ("Canoscan 9000F", "9000F", CS9000F_PID, 4800, 300, 9600, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU | PIXMA_CAP_NEGATIVE | PIXMA_CAP_48BIT),
|
||||
DEVICE ("Canoscan 9000F", "9000F", CS9000F_PID, 4800, 300, 9600, 600, 2400, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU | PIXMA_CAP_NEGATIVE | PIXMA_CAP_48BIT),
|
||||
|
||||
/* Latest devices (2010) Generation 4 CCD untested */
|
||||
DEVICE ("Canon PIXMA MG8100", "MG8100", MG8100_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon PIXMA MG8100", "MG8100", MG8100_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
/* Latest devices (2011) Generation 4 CCD untested */
|
||||
DEVICE ("Canon PIXMA MG8200", "MG8200", MG8200_PID, 4800, 300, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
DEVICE ("Canon PIXMA MG8200", "MG8200", MG8200_PID, 4800, 300, 0, 0, 0, 638, 877, PIXMA_CAP_CCD | PIXMA_CAP_TPU),
|
||||
|
||||
END_OF_DEVICE_LIST
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue