piuspatch  v0.1
USB addition to PIE backend
Data Fields
PIE_USB_Model Struct Reference

Describe a PIE USB scanner. More...

#include <pie_usb.h>

Data Fields

SANE_String vendor
SANE_String model
SANE_Byte model_id
SANE_Word flags
unsigned char op_mode [3]
SANE_Int default_brightness
double gain_const [3]
double offs_factor [3]
int gain_min
int gain_hiqual_max
int texp_normal_max
int gain_hiqual_part
PIE_USB_Calibration_Set default_hiqual
PIE_USB_Calibration_Set default_normal

Detailed Description

Describe a PIE USB scanner.

There are several different PIE SF scanners which are different from each other. The following is an approach to hold model specific values.

Todo:
Define some of the constraints constant

Definition at line 271 of file pie_usb.h.


Field Documentation

default targeted illumination

Definition at line 278 of file pie_usb.h.

initial calibration for quality mode, not critical, can be left as the default if calibration is not reliable or omitted

Definition at line 292 of file pie_usb.h.

similar as default_hiqual, normal mode, not critical

Definition at line 294 of file pie_usb.h.

SANE_Word flags

hacks are needed for this scanner

Definition at line 276 of file pie_usb.h.

double gain_const[3]

brightness = f * exp(gain_const * gain^2) * time, !! critical !!

Definition at line 279 of file pie_usb.h.

6 bit, quality mode only, put a sensible default here, e.g. 0x28, higher values result in noisy images

Definition at line 286 of file pie_usb.h.

quality mode only, >= 2, higher values lead to more calibration by exposure time, about 10 is typical

Definition at line 289 of file pie_usb.h.

int gain_min

6 bit, put a sensible default here, e.g. 0x10

Definition at line 284 of file pie_usb.h.

SANE_String model

Definition at line 274 of file pie_usb.h.

SANE_Byte model_id

for subtyping models with the same USB id

Definition at line 275 of file pie_usb.h.

double offs_factor[3]

normal mode only, brightness = offs_factor * f * exp(gain_const * gain^2) * time - (offs_factor - 1) * 65536 , different between types of scanners, !! critical !!

Definition at line 283 of file pie_usb.h.

unsigned char op_mode[3]

operation modes for byte 0x09 of MODE command

Definition at line 277 of file pie_usb.h.

maximal exposure time seems to be a 12 bit number

Definition at line 287 of file pie_usb.h.

SANE_String vendor

Definition at line 273 of file pie_usb.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines