~ubuntu-branches/ubuntu/saucy/sane-backends/saucy

« back to all changes in this revision

Viewing changes to backend/avision.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-02-14 14:28:56 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110214142856-6gxjetg88q9zctid
Tags: 1.0.22-0ubuntu1
* New upstream release
* debian/control:
  - Use standards version 3.9.1
* debian/patches/allow_dll.d_symlinks.patch:
* debian/patches/fix_epson2_cancel.patch:
* debian/patches/fix_epson2_commands.patch:
* debian/patches/fix_xerox_mfp_color_mode.patch:
* debian/patches/genesys_disable_raw_data_log.patch:
* debian/patches/no_translations.patch:
* debian/patches/saned_exit_avahi_process.patch:
* debian/patches/scsi_perfection_2450.patch:
* debian/patches/scsi_scanjet_4c.patch:
* debian/patches/xerox_mfp_new_ids.patch:
  - Applied upstream
* debian/watch:
  - Dropped, the URL is not consistent between releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
  /*second enum cause 32 bit int above is full*/
200
200
  enum {
201
201
    /* force no calibration */
202
 
    AV_NO_TUNE_SCAN_LENGTH = (1<<0)
 
202
    AV_NO_TUNE_SCAN_LENGTH = (1<<0),
 
203
 
 
204
    /* for gray scans, set grey filter */
 
205
    AV_USE_GRAY_FILTER = (1<<1),
 
206
 
 
207
    /* For (HP) scanners with flipping duplexers */
 
208
    AV_ADF_FLIPPING_DUPLEX = (1<<2),
 
209
 
 
210
    /* For scanners which need to have their firmware read to properly function. */
 
211
    AV_FIRMWARE = (1<<3)
203
212
  } feature_type2;
204
213
 
205
214
} Avision_HWEntry;
282
291
  OPT_IR,                /* infra-red */
283
292
  OPT_MULTISAMPLE,       /* multi-sample */
284
293
  
 
294
  OPT_MISC_GROUP,
285
295
  OPT_FRAME,             /* Film holder control */
286
296
 
287
297
  OPT_POWER_SAVE_TIME,   /* set power save time to the scanner */
289
299
  OPT_MESSAGE,           /* optional message from the scanner display */  
290
300
  OPT_NVRAM,             /* retrieve NVRAM values as pretty printed text */
291
301
  
 
302
  OPT_PAPERLEN,          /* Use paper_length field to detect double feeds */
 
303
  OPT_ADF_FLIP,          /* For flipping duplex, reflip the document */
 
304
 
292
305
  NUM_OPTIONS            /* must come last */
293
306
};
294
307
 
356
369
  SANE_Bool inquiry_needs_software_colorpack;
357
370
  SANE_Bool inquiry_needs_line_pack;
358
371
  SANE_Bool inquiry_adf_need_mirror;
359
 
  SANE_Bool inquiry_adf_need_mirror_rear;
360
372
  SANE_Bool inquiry_adf_bgr_order;
361
373
  SANE_Bool inquiry_light_detect;
362
374
  SANE_Bool inquiry_light_control;
402
414
  int scsi_buffer_size; /* nice to have SCSI buffer size */
403
415
  int read_stripe_size; /* stripes to be read at-a-time */
404
416
 
405
 
  /* additional information - read delayed until sane_open() */
406
 
  
407
 
  SANE_Bool additional_probe;
408
 
  
409
417
  /* film scanner atributes - maybe these should be in the scanner struct? */
410
418
  SANE_Range frame_range;
411
419
  SANE_Word current_frame;
491
499
#define AVISION_SCSI_OP_TRANS_CALIB_GRAY    0x04
492
500
#define AVISION_SCSI_OP_TRANS_CALIB_COLOR   0x05
493
501
 
494
 
#define AVISION_FILTER_NONE     0
495
 
#define AVISION_FILTER_RED      1
496
 
#define AVISION_FILTER_GREEN    2
497
 
#define AVISION_FILTER_BLUE     3
498
 
#define AVISION_FILTER_RGB      4
499
 
#define AVISION_FILTER_CMYK     5
500
 
#define AVISION_FILTER_GRAY     6
 
502
/* These apply to bitset1.  The values are 0 to 6, shifted 3 bits to the left */
 
503
#define AVISION_FILTER_NONE     0x00
 
504
#define AVISION_FILTER_RED      0x08
 
505
#define AVISION_FILTER_GREEN    0x10
 
506
#define AVISION_FILTER_BLUE     0x18
 
507
#define AVISION_FILTER_RGB      0x20
 
508
#define AVISION_FILTER_CMYK     0x28
 
509
#define AVISION_FILTER_GRAY     0x30
501
510
 
502
511
/* The SCSI structures that we have to send to an avision to get it to
503
512
   do various stuff... */