Lines Matching defs:mode
138 int width, int mode);
182 /* "*SCANEND" command - returns the scanner to transparent mode */
309 switch(scanp->mode)
316 DBG(1, "init_scan: Illegal mode %i requested in "
317 "init_scan().\n", scanp->mode);
338 if (scanp->mode == 0)
350 int sanei_canon_pp_initialise(scanner_parameters *sp, int mode)
356 /* Hopefully take the scanner out of transparent mode */
357 if (sanei_canon_pp_wake_scanner(sp->port, mode))
367 /* If we're using an unsupported ieee1284 mode here, this is
440 /* Put scanner in transparent mode */
563 int width, int scanlines, int mode)
568 const int scanline_size = (mode == 0 ? colour_size : colour_size * 3);
573 if (mode == 0) /* Grey */
579 else if (mode == 1) /* Truecolour */
612 if (scanp->mode == 1) /* RGB */
642 (scanp->mode ? 3 : 1) * 2);
706 scanline_number, scanp->mode);
751 int width, int mode)
783 if (mode == 1) /* Scanner -> Grey */
788 else if (mode == 2) /* Scanner -> RGB */
813 unsigned int cols = scanp->mode ? 3 : 1;
844 * and is an average in greyscale mode. */
845 if (scanp->mode == 1) /* RGB */
1254 /* These appear to be the only two colour mode possibilities.
1255 Pure black-and-white mode probably just uses greyscale and
1257 if (scanp->mode == 1) /* Truecolour */
1298 int sanei_canon_pp_detect(struct parport *port, int mode)
1321 if (sanei_canon_pp_wake_scanner(port, mode))