sane-project-backends/backend
Mike Kelly 046441ad6c Rewrote indirect "adf_mode" code to be more direct
Replaced the clever, yet totally confusing, code using the "adf_mode"
variable.  This variable was used with a complex interaction of bit shifts
and subtraction indirectly influnced by the value of s->source_mode.  The
replacement code direct references s->source_mode instead, simplifying
things greatly.  This change is functionally identical.

As a side note, the adf_mode code allowed "ADF Rear" scanners, in addition to
"ADF Duplex" scanners, to enter the section of code normally used for (HP)
duplex scanners.  It's not clear if this was the intended effect, or if, as
the comments suggest, this was an unnoticed side effect caused by the
confusing code.  The point is moot, however, because prior in the code, the
ADF Duplex flag is set anytime the ADF Rear flag is set.  As long as all
ADF Rear scanners are duplex scanners this shouldn't be a problem.
2010-12-23 19:38:24 +09:00
..
.gitignore
Makefile.am
Makefile.in
abaton.c
abaton.conf.in
abaton.h
agfafocus.c
agfafocus.conf.in
agfafocus.h
apple.c
apple.conf.in
apple.h
artec.c
artec.conf.in
artec.h
artec_eplus48u.c
artec_eplus48u.conf.in
artec_eplus48u.h
as6e.c
as6e.h
avision.c Rewrote indirect "adf_mode" code to be more direct 2010-12-23 19:38:24 +09:00
avision.conf.in
avision.h
bh.c
bh.conf.in
bh.h
canon-sane.c
canon-scsi.c
canon.c
canon.conf.in
canon.h
canon630u-common.c
canon630u.c
canon630u.conf.in
canon_dr-cmd.h
canon_dr.c
canon_dr.conf.in
canon_dr.h
canon_pp-dev.c
canon_pp-dev.h
canon_pp-io.c
canon_pp-io.h
canon_pp.c
canon_pp.conf.in
canon_pp.h
cardscan.c
cardscan.conf.in
cardscan.h
coolscan-scsidef.h
coolscan.c
coolscan.conf.in
coolscan.h
coolscan2.c
coolscan2.conf.in
coolscan3.c
coolscan3.conf.in
dc25.c
dc25.conf.in
dc25.h
dc210.c
dc210.conf.in
dc210.h
dc240.c
dc240.conf.in
dc240.h
dell1600n_net.c
dell1600n_net.conf.in
dll.aliases
dll.c
dll.conf.in
dmc.c
dmc.conf.in
dmc.h
epjitsu-cmd.h
epjitsu.c
epjitsu.conf.in
epjitsu.h
epson.c
epson.conf.in
epson.h
epson2-cct.c
epson2-commands.c
epson2-commands.h
epson2-io.c
epson2-io.h
epson2-ops.c
epson2-ops.h
epson2.c
epson2.conf.in
epson2.h
epson2_net.c
epson2_net.h
epson2_scsi.c
epson2_scsi.h
epson_scsi.c
epson_scsi.h
epson_usb.c
epson_usb.h
fujitsu-scsi.h
fujitsu.c
fujitsu.conf.in
fujitsu.h
genesys.c
genesys.conf.in
genesys.h
genesys_conv.c
genesys_conv_hlp.c
genesys_devices.c
genesys_gl124.c
genesys_gl124.h
genesys_gl646.c
genesys_gl646.h
genesys_gl841.c
genesys_gl843.c
genesys_gl843.h
genesys_gl847.c
genesys_gl847.h
genesys_low.c
genesys_low.h
gphoto2.c
gphoto2.conf.in
gphoto2.h
gt68xx.c
gt68xx.conf.in
gt68xx.h
gt68xx_devices.c
gt68xx_generic.c
gt68xx_generic.h
gt68xx_gt6801.c
gt68xx_gt6801.h
gt68xx_gt6816.c
gt68xx_gt6816.h
gt68xx_high.c
gt68xx_high.h
gt68xx_low.c
gt68xx_low.h
gt68xx_mid.c
gt68xx_mid.h
gt68xx_shm_channel.c
gt68xx_shm_channel.h
hp-accessor.c
hp-accessor.h
hp-device.c
hp-device.h
hp-handle.c
hp-handle.h
hp-hpmem.c
hp-option.c
hp-option.h
hp-scl.c
hp-scl.h
hp-scsi.h
hp.README
hp.TODO
hp.c
hp.conf.in
hp.h
hp3500.c
hp3900.c
hp3900.conf.in
hp3900_config.c
hp3900_debug.c
hp3900_rts8822.c
hp3900_sane.c
hp3900_types.c
hp3900_usb.c
hp4200.c
hp4200.conf.in
hp4200.h
hp4200_lm9830.c
hp4200_lm9830.h
hp5400.c
hp5400.conf.in
hp5400.h
hp5400_debug.c
hp5400_debug.h
hp5400_internal.c
hp5400_internal.h
hp5400_sane.c
hp5400_sanei.c
hp5400_sanei.h
hp5400_xfer.h
hp5590.c
hp5590_cmds.c
hp5590_cmds.h
hp5590_low.c
hp5590_low.h
hpljm1005.c
hpsj5s.c
hpsj5s.conf.in
hpsj5s.h
hs2p-saneopts.h
hs2p-scsi.c
hs2p-scsi.h
hs2p.c
hs2p.conf.in
hs2p.h
ibm-scsi.c
ibm.c
ibm.conf.in
ibm.h
kodak-cmd.h
kodak.c
kodak.conf.in
kodak.h
kvs20xx.c
kvs20xx.h
kvs20xx_cmd.c
kvs20xx_cmd.h
kvs20xx_opt.c
kvs1025.c
kvs1025.conf.in
kvs1025.h
kvs1025_cmds.h
kvs1025_low.c
kvs1025_low.h
kvs1025_opt.c
kvs1025_usb.c
kvs1025_usb.h
leo.c
leo.conf.in
leo.h
lexmark.c
lexmark.conf.in
lexmark.h
lexmark_low.c
lexmark_models.c
lexmark_sensors.c
lm9830.h
ma1509.c
ma1509.conf.in
ma1509.h
matsushita.c
matsushita.conf.in
matsushita.h
microtek.c
microtek.conf.in
microtek.h
microtek2.c
microtek2.conf.in
microtek2.h
mustek.c
mustek.conf.in
mustek.h
mustek_pp.c
mustek_pp.conf.in
mustek_pp.h
mustek_pp_ccd300.c
mustek_pp_ccd300.h
mustek_pp_cis.c
mustek_pp_cis.h
mustek_pp_decl.h
mustek_pp_drivers.h
mustek_pp_null.c
mustek_scsi_pp.c
mustek_scsi_pp.h
mustek_usb.c
mustek_usb.conf.in
mustek_usb.h
mustek_usb2.c
mustek_usb2.h
mustek_usb2_asic.c
mustek_usb2_asic.h
mustek_usb2_high.c
mustek_usb2_high.h
mustek_usb2_reflective.c
mustek_usb2_transparent.c
mustek_usb_high.c
mustek_usb_high.h
mustek_usb_low.c
mustek_usb_low.h
mustek_usb_mid.c
mustek_usb_mid.h
nec.c
nec.conf.in
nec.h
net.c
net.conf.in
net.h
niash.c
niash_core.c
niash_core.h
niash_xfer.c
niash_xfer.h
p5.c
p5.conf.in
p5.h
p5_device.c
p5_device.h
pie-scsidef.h
pie.c
pie.conf.in
pint.c
pint.h
pixma.c
pixma.conf.in
pixma.h
pixma_bjnp.c
pixma_bjnp.h
pixma_bjnp_private.h
pixma_common.c
pixma_common.h
pixma_imageclass.c
pixma_io.h
pixma_io_sanei.c
pixma_mp150.c
pixma_mp730.c
pixma_mp750.c
pixma_rename.h
pixma_sane_options.c
pixma_sane_options.h
plustek-pp.h
plustek-pp_dac.c
plustek-pp_dbg.h
plustek-pp_detect.c
plustek-pp_genericio.c
plustek-pp_hwdefs.h
plustek-pp_image.c
plustek-pp_io.c
plustek-pp_map.c
plustek-pp_misc.c
plustek-pp_models.c
plustek-pp_motor.c
plustek-pp_p12.c
plustek-pp_p12ccd.c
plustek-pp_p48xx.c
plustek-pp_p9636.c
plustek-pp_procfs.c
plustek-pp_procs.h
plustek-pp_ptdrv.c
plustek-pp_scale.c
plustek-pp_scan.h
plustek-pp_scandata.h
plustek-pp_sysdep.h
plustek-pp_tpa.c
plustek-pp_types.h
plustek-pp_wrapper.c
plustek-usb.c
plustek-usb.h
plustek-usbcal.c
plustek-usbcalfile.c
plustek-usbdevs.c
plustek-usbhw.c
plustek-usbimg.c
plustek-usbio.c
plustek-usbmap.c
plustek-usbscan.c
plustek-usbshading.c
plustek.c
plustek.conf.in
plustek.h
plustek_pp.c
plustek_pp.conf.in
pnm.c
qcam.c
qcam.conf.in
qcam.h
ricoh-scsi.c
ricoh.c
ricoh.conf.in
ricoh.h
rts88xx_lib.c
rts88xx_lib.h
rts8891.c
rts8891.conf.in
rts8891.h
rts8891_devices.c
rts8891_low.c
rts8891_low.h
s9036.c
s9036.conf.in
s9036.h
sane_strstatus.c
saned.conf.in
sceptre.c
sceptre.conf.in
sceptre.h
sharp.c
sharp.conf.in
sharp.h
sm3600-color.c
sm3600-gray.c
sm3600-homerun.c
sm3600-scanmtek.c
sm3600-scantool.h
sm3600-scanusb.c
sm3600-scanutil.c
sm3600.c
sm3600.h
sm3840.c
sm3840.conf.in
sm3840.h
sm3840_lib.c
sm3840_lib.h
sm3840_params.h
sm3840_scan.c
snapscan-data.c
snapscan-mutex.c
snapscan-options.c
snapscan-scsi.c
snapscan-sources.c
snapscan-sources.h
snapscan-usb.c
snapscan-usb.h
snapscan.c
snapscan.conf.in
snapscan.h
sp15c-scsi.h
sp15c.c
sp15c.conf.in
sp15c.h
st400.c
st400.conf.in
st400.h
stubs.c
stv680.c
stv680.conf.in
stv680.h
tamarack.c
tamarack.conf.in
tamarack.h
teco1.c
teco1.conf.in
teco1.h
teco2.c
teco2.conf.in
teco2.h
teco3.c
teco3.conf.in
teco3.h
test-picture.c
test.c
test.conf.in
test.h
u12-ccd.c
u12-hw.c
u12-hwdef.h
u12-if.c
u12-image.c
u12-io.c
u12-map.c
u12-motor.c
u12-scanner.h
u12-shading.c
u12-tpa.c
u12.c
u12.conf.in
u12.h
umax-scanner.c
umax-scanner.h
umax-scsidef.h
umax-uc630.c
umax-uc840.c
umax-uc1200s.c
umax-uc1200se.c
umax-uc1260.c
umax-ug80.c
umax-ug630.c
umax-usb.c
umax.c
umax.conf.in
umax.h
umax1220u-common.c
umax1220u.c
umax1220u.conf.in
umax_pp.c
umax_pp.conf.in
umax_pp.h
umax_pp_low.c
umax_pp_low.h
umax_pp_mid.c
umax_pp_mid.h
v4l-frequencies.h
v4l.c
v4l.conf.in
v4l.h
xerox_mfp-tcp.c
xerox_mfp-usb.c
xerox_mfp.c
xerox_mfp.conf.in
xerox_mfp.h