I found an inconsistency between the documentation of the field order of 
SANE_Parameters and the actual field order in the header. This is not a problem 
if you are programming in C and using the header, but it is a problem if you 
are interfacing from another language, as I am. The header file has the 
information that is correct, that is, works.
. 
>From the documentation:
typedef struct
  {
    SANE_Frame format;
    SANE_Bool last_frame;
    SANE_Int lines;
    SANE_Int depth;
    SANE_Int pixels_per_line;
    SANE_Int bytes_per_line;
  }
SANE_Parameters;

>From the header file sane.h:

typedef struct
  {
    SANE_Frame format;
    SANE_Bool last_frame;
    SANE_Int bytes_per_line;
    SANE_Int pixels_per_line;
    SANE_Int lines;
    SANE_Int depth;
  }
SANE_Parameters;

Reply via email to