kopia lustrzana https://gitlab.com/sane-project/backends
Second set of modifications in pixma backend for Canon ImageClass MF5770.
File pixma_mp730.c: - first page scan warmup time set to 10 sec - no image post processing required in color modemerge-requests/1/head
rodzic
e4589350f0
commit
228861b6b2
|
@ -369,10 +369,10 @@ step1 (pixma_t * s)
|
||||||
return PIXMA_ENO_PAPER;
|
return PIXMA_ENO_PAPER;
|
||||||
if (has_ccd_sensor (s))
|
if (has_ccd_sensor (s))
|
||||||
{
|
{
|
||||||
/* MF5770: Wait 25 sec before starting */
|
/* MF5770: Wait 10 sec before starting for 1st page only */
|
||||||
if (s->cfg->pid == MF5770_PID)
|
if (s->cfg->pid == MF5770_PID && s->param->adf_pageid == 0)
|
||||||
{
|
{
|
||||||
tmo = 25; /* like Windows driver, 25 sec CCD calibration ? */
|
tmo = 10; /* like Windows driver, 10 sec CCD calibration ? */
|
||||||
while (--tmo >= 0)
|
while (--tmo >= 0)
|
||||||
{
|
{
|
||||||
error = handle_interrupt (s, 1000); \
|
error = handle_interrupt (s, 1000); \
|
||||||
|
@ -582,7 +582,7 @@ mp730_fill_buffer (pixma_t * s, pixma_imagebuf_t * ib)
|
||||||
/* n = number of full lines (rows) we have in the buffer. */
|
/* n = number of full lines (rows) we have in the buffer. */
|
||||||
if (n != 0)
|
if (n != 0)
|
||||||
{
|
{
|
||||||
if (s->param->channels != 1)
|
if (s->param->channels != 1 && s->cfg->pid != MF5770_PID)
|
||||||
{
|
{
|
||||||
/* color */
|
/* color */
|
||||||
pack_rgb (mp->imgbuf, n, mp->raw_width, mp->lbuf);
|
pack_rgb (mp->imgbuf, n, mp->raw_width, mp->lbuf);
|
||||||
|
|
Ładowanie…
Reference in New Issue