Lines Matching refs:depth
180 eds_add_depth(epsonds_device *dev, SANE_Word depth)
182 DBG(5, "%s: add (bpp): %d\n", __func__, depth);
185 if (depth > 8) {
190 if (depth > dev->max_depth)
191 dev->max_depth = depth;
202 dev->depth_list[dev->depth_list[0]] = depth;
214 /* setup depth according to our mode table */
215 if (mode_params[s->val[OPT_MODE].w].depth == 1)
216 s->params.depth = 1;
218 s->params.depth = s->val[OPT_DEPTH].w;
264 * The default color depth is stored in mode_params.depth:
268 bytes_per_pixel = s->params.depth / 8;
269 if (s->params.depth % 8) { /* just in case ... */
283 s->params.pixels_per_line * s->params.depth / 8;
332 DBG(18, "copying %d lines (%d, %d, %d)\n", lines, s->params.bytes_per_line, s->dummy, s->params.depth);
347 if (s->params.depth == 1) {