From 4b2bb4f7938c59bb11565eb960b64aadf2efe405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Mon, 2 Aug 2010 06:32:11 +0200 Subject: [PATCH] add an entry for Canoscan 5600F in the genesys backend --- backend/genesys.conf.in | 3 +++ backend/genesys_devices.c | 54 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/backend/genesys.conf.in b/backend/genesys.conf.in index 3539b621c..d23f0d58a 100644 --- a/backend/genesys.conf.in +++ b/backend/genesys.conf.in @@ -42,6 +42,9 @@ usb 0x04a9 0x1904 # Canon LiDE 200 usb 0x04a9 0x1905 +# Canon 5600f +usb 0x04a9 0x1906 + # Visioneer Strobe XP200 usb 0x04a7 0x0426 diff --git a/backend/genesys_devices.c b/backend/genesys_devices.c index fae0c2871..ebfdd1333 100644 --- a/backend/genesys_devices.c +++ b/backend/genesys_devices.c @@ -968,6 +968,59 @@ static Genesys_Model canon_lide_100_model = { 400 }; +static Genesys_Model canon_5600f_model = { + "canon-5600f", /* Name */ + "Canon", /* Device vendor string */ + "5600F", /* Device model name */ + GENESYS_GL847, + NULL, + + {1200, 600, 400, 300, 200, 150, 100, 75, 0}, /* possible x-resolutions */ + {1200, 600, 400, 300, 200, 150, 100, 75, 0}, /* possible y-resolutions */ + {16, 8, 0}, /* possible depths in gray mode */ + {16, 8, 0}, /* possible depths in color mode */ + + SANE_FIX (1.1), /* Start of scan area in mm (x) */ + SANE_FIX (8.3), /* Start of scan area in mm (y) */ + SANE_FIX (216.07), /* Size of scan area in mm (x) */ + SANE_FIX (299.0), /* Size of scan area in mm (y) */ + + SANE_FIX (3.0), /* Start of white strip in mm (y) */ + SANE_FIX (0.0), /* Start of black mark in mm (x) */ + + SANE_FIX (0.0), /* Start of scan area in TA mode in mm (x) */ + SANE_FIX (0.0), /* Start of scan area in TA mode in mm (y) */ + SANE_FIX (100.0), /* Size of scan area in TA mode in mm (x) */ + SANE_FIX (100.0), /* Size of scan area in TA mode in mm (y) */ + + SANE_FIX (0.0), /* Start of white strip in TA mode in mm (y) */ + + SANE_FIX (0.0), /* Size of scan area after paper sensor stops + sensing document in mm */ + SANE_FIX (0.0), /* Amount of feeding needed to eject document + after finishing scanning in mm */ + + 0, 0, 0, /* RGB CCD Line-distance correction in pixel */ + + COLOR_ORDER_RGB, /* Order of the CCD/CIS colors */ + + SANE_TRUE, /* Is this a CIS scanner? */ + SANE_FALSE, /* Is this a sheetfed scanner? */ + CIS_CANONLIDE200, + DAC_CANONLIDE200, + GPO_CANONLIDE200, + MOTOR_CANONLIDE200, + GENESYS_FLAG_SKIP_WARMUP + | GENESYS_FLAG_ODD_EVEN_CIS + | GENESYS_FLAG_OFFSET_CALIBRATION + | GENESYS_FLAG_DARK_CALIBRATION + | GENESYS_FLAG_CUSTOM_GAMMA, + GENESYS_HAS_SCAN_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_EMAIL_SW | GENESYS_HAS_FILE_SW, + 150, + 400 +}; + + static Genesys_Model canon_lide_200_model = { "canon-lide-200", /* Name */ "Canon", /* Device vendor string */ @@ -2109,5 +2162,6 @@ static Genesys_USB_Device_Entry genesys_usb_device_list[] = { /* GL847 devices */ {0x04a9, 0x1904, &canon_lide_100_model}, {0x04a9, 0x1905, &canon_lide_200_model}, + {0x04a9, 0x1906, &canon_5600f_model}, {0, 0, NULL} };