Lines Matching defs:mode

168    . . - sane_set_io_mode : set blocking mode
534 s->mode = MODE_LINEART;
566 s->mode = MODE_LINEART;
590 s->mode = MODE_LINEART;
612 s->mode = MODE_COLOR;
635 s->mode = MODE_COLOR;
1101 /* scan mode */
1354 if(s->mode != MODE_LINEART){
1373 if(s->mode != MODE_LINEART){
1442 opt->desc = "Scanner in power saving mode";
1532 if(s->mode == MODE_LINEART){
1535 else if(s->mode == MODE_GRAYSCALE){
1538 else if(s->mode == MODE_COLOR){
1686 if (tmp == s->mode)
1689 s->mode = tmp;
1798 int mode;
1831 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1853 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1875 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1898 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1920 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1939 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1966 /* model mode xres yres u mxx mnx mxy mny lin_s pln_s pln_w bh cls cps cpw */
1983 * clean up scanner struct vals when user changes mode, res, etc
1997 && settings[i].mode <= s->mode
2082 s->cal_image.mode = MODE_COLOR;
2092 s->cal_data.mode = MODE_COLOR;
2104 s->coarsecal.mode = MODE_COLOR;
2116 s->sendcal.mode = MODE_COLOR;
2127 s->fullscan.mode = settings[i].mode;
2147 s->block_xfr.mode = settings[i].mode;
2155 /* but the mode, height and y_res are the same as block_xfr */
2158 s->block_img.width_bytes = width * (settings[i].mode == MODE_COLOR ? 3 : 1);
2160 s->block_img.mode = settings[i].mode;
2169 s->front.mode = s->mode;
2189 switch (s->mode) {
2222 s->back.mode = s->front.mode;
2235 s->dt.mode = MODE_GRAYSCALE;
2371 if (s->mode == MODE_COLOR) {
2375 else if (s->mode == MODE_GRAYSCALE) {
2379 else if (s->mode == MODE_LINEART) {
4048 /* autodetect mode, check for change length */
4156 if(tp->mode == MODE_GRAYSCALE){
4420 /* converts pixel data from input mode (color/gray) to output mode (color/gray/binary) */
4480 if (block->mode == MODE_COLOR){
4494 if (s->mode == MODE_COLOR)
4500 else if (s->mode == MODE_GRAYSCALE)
4504 else if (s->mode == MODE_LINEART)
4528 if (s->mode == MODE_GRAYSCALE)
4532 else if (s->mode == MODE_LINEART)
4551 if (s->mode == MODE_LINEART)