kopia lustrzana https://gitlab.com/sane-project/backends
Resolve "sane terminates on flatbed-scanning (Xerox 3225, xerox_mfp) with : Not a JPEG file: starts with 0x00 0x00"
rodzic
e584a8c503
commit
5f99edda9f
|
@ -209,14 +209,15 @@ static int isSupportedDevice(struct device __sane_unused__ *dev)
|
|||
#ifdef HAVE_LIBJPEG
|
||||
/* Checking device which supports JPEG Lossy compression for color scanning*/
|
||||
if (dev->compressionTypes & (1 << 6)) {
|
||||
/* blacklist malfunctioning device(s) */
|
||||
if (!strncmp(dev->sane.model, "SCX-4500W", 9) ||
|
||||
!strncmp(dev->sane.model, "C460", 4) ||
|
||||
!!strstr(dev->sane.model, "CLX-3170") ||
|
||||
!!strstr(dev->sane.model, "4x24") ||
|
||||
!!strstr(dev->sane.model, "4x28") ||
|
||||
!strncmp(dev->sane.model, "M288x", 5))
|
||||
return 0;
|
||||
/* blacklist malfunctioning device(s) */
|
||||
if (!strncmp (dev->sane.model, "SCX-4500W", 9)
|
||||
|| !strncmp (dev->sane.model, "C460", 4)
|
||||
|| !!strstr (dev->sane.model, "WorkCentre 3225")
|
||||
|| !!strstr (dev->sane.model, "CLX-3170")
|
||||
|| !!strstr (dev->sane.model, "4x24")
|
||||
|| !!strstr (dev->sane.model, "4x28")
|
||||
|| !strncmp (dev->sane.model, "M288x", 5))
|
||||
return 0;
|
||||
return 1;
|
||||
} else
|
||||
return 0;
|
||||
|
|
Ładowanie…
Reference in New Issue