kopia lustrzana https://gitlab.com/sane-project/backends
canon_dr backend v53
replace image processing methods with sanei_magicmerge-requests/1/head
rodzic
666c9a74ff
commit
b4bc0eb518
|
@ -352,7 +352,7 @@ libcanon_dr_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon_dr
|
|||
nodist_libsane_canon_dr_la_SOURCES = canon_dr-s.c
|
||||
libsane_canon_dr_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon_dr
|
||||
libsane_canon_dr_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
|
||||
libsane_canon_dr_la_LIBADD = $(COMMON_LIBS) libcanon_dr.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo $(MATH_LIB) $(SCSI_LIBS) $(USB_LIBS) $(RESMGR_LIBS)
|
||||
libsane_canon_dr_la_LIBADD = $(COMMON_LIBS) libcanon_dr.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_magic.lo $(MATH_LIB) $(SCSI_LIBS) $(USB_LIBS) $(RESMGR_LIBS)
|
||||
EXTRA_DIST += canon_dr.conf.in
|
||||
|
||||
libcanon_pp_la_SOURCES = canon_pp.c canon_pp.h canon_pp-io.c canon_pp-io.h canon_pp-dev.c canon_pp-dev.h
|
||||
|
|
|
@ -2214,7 +2214,7 @@ libcanon_dr_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon_dr
|
|||
nodist_libsane_canon_dr_la_SOURCES = canon_dr-s.c
|
||||
libsane_canon_dr_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon_dr
|
||||
libsane_canon_dr_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
|
||||
libsane_canon_dr_la_LIBADD = $(COMMON_LIBS) libcanon_dr.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo $(MATH_LIB) $(SCSI_LIBS) $(USB_LIBS) $(RESMGR_LIBS)
|
||||
libsane_canon_dr_la_LIBADD = $(COMMON_LIBS) libcanon_dr.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_magic.lo $(MATH_LIB) $(SCSI_LIBS) $(USB_LIBS) $(RESMGR_LIBS)
|
||||
libcanon_pp_la_SOURCES = canon_pp.c canon_pp.h canon_pp-io.c canon_pp-io.h canon_pp-dev.c canon_pp-dev.h
|
||||
libcanon_pp_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon_pp
|
||||
nodist_libsane_canon_pp_la_SOURCES = canon_pp-s.c
|
||||
|
|
1234
backend/canon_dr.c
1234
backend/canon_dr.c
Plik diff jest za duży
Load Diff
|
@ -297,6 +297,24 @@ struct scanner
|
|||
/* the brightness/contrast LUT for dumb scanners */
|
||||
unsigned char lut[256];
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
/* values used by the software enhancment code (deskew, crop, etc) */
|
||||
SANE_Status deskew_stat;
|
||||
int deskew_vals[2];
|
||||
double deskew_slope;
|
||||
|
||||
int crop_vals[4];
|
||||
|
||||
/* this is defined in sane spec as a struct containing:
|
||||
SANE_Frame format;
|
||||
SANE_Bool last_frame;
|
||||
SANE_Int lines;
|
||||
SANE_Int depth; ( binary=1, gray=8, color=8 (!24) )
|
||||
SANE_Int pixels_per_line;
|
||||
SANE_Int bytes_per_line;
|
||||
*/
|
||||
SANE_Parameters s_params;
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
/* values which are set by calibration functions */
|
||||
int c_res;
|
||||
|
@ -570,23 +588,6 @@ static SANE_Status buffer_despeck(struct scanner *s, int side);
|
|||
static SANE_Status buffer_deskew(struct scanner *s, int side);
|
||||
static SANE_Status buffer_crop(struct scanner *s, int side);
|
||||
|
||||
int * getTransitionsY (struct scanner *s, int side, int top);
|
||||
int * getTransitionsX (struct scanner *s, int side, int top);
|
||||
|
||||
SANE_Status getEdgeIterate (int width, int height, int resolution,
|
||||
int * buff, double * finSlope, int * finXInter, int * finYInter);
|
||||
|
||||
SANE_Status getEdgeSlope (int width, int height, int * top, int * bot,
|
||||
double slope, int * finXInter, int * finYInter);
|
||||
|
||||
SANE_Status rotateOnCenter (struct scanner *s, int side,
|
||||
int centerX, int centerY, double slope);
|
||||
|
||||
static SANE_Status getLine (int height, int width, int * buff,
|
||||
int slopes, double minSlope, double maxSlope,
|
||||
int offsets, int minOffset, int maxOffset,
|
||||
double * finSlope, int * finOffset, int * finDensity);
|
||||
|
||||
static SANE_Status load_lut (unsigned char * lut, int in_bits, int out_bits,
|
||||
int out_min, int out_max, int slope, int offset);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue