Lines Matching defs:OVAL
85 #define OVAL(opt) OPT_IN_CTX[opt].val
301 SANE_Int b1 = OVAL (opt_button_1).w;
302 SANE_Int b2 = OVAL (opt_button_2).w;
314 if (b1 != OVAL (opt_button_1).w || b2 != OVAL (opt_button_2).w)
317 OVAL (opt_button_1).w = b1;
318 OVAL (opt_button_2).w = b2;
319 OVAL (opt_original).w = GET_EV_ORIGINAL(ev);
320 OVAL (opt_target).w = GET_EV_TARGET(ev);
321 OVAL (opt_scan_resolution).w = GET_EV_DPI(ev);
322 OVAL (opt_document_type).w = GET_EV_DOC(ev);
323 OVAL (opt_adf_status).w = GET_EV_STAT(ev);
324 OVAL (opt_adf_orientation).w = GET_EV_ORIENT(ev);
387 tpu = (ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_TPU);
457 if (ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_TPU
458 && ss->mode_map[OVAL (opt_mode).w] == PIXMA_SCAN_MODE_TPUIR)
464 else if (ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_TPU
465 || ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_ADF
466 || ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_ADFDUP)
472 else if (ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_FLATBED
473 && (ss->mode_map[OVAL (opt_mode).w] == PIXMA_SCAN_MODE_COLOR_48
474 || ss->mode_map[OVAL (opt_mode).w] == PIXMA_SCAN_MODE_GRAY_16))
745 SANE_UNFIX (OVAL (opt_gamma).w)));
746 pixma_fill_gamma_table (SANE_UNFIX (OVAL (opt_gamma).w),
808 if (enable_option (ss, opt_gamma_table, OVAL (opt_custom_gamma).b))
810 if (OVAL (opt_custom_gamma).b)
821 SANE_UNFIX (OVAL (opt_gamma).w)));
824 pixma_fill_gamma_table (SANE_UNFIX (OVAL (opt_gamma).w),
835 ss->mode_map[OVAL (opt_mode).w])); */
838 if (ss->mode_map[OVAL (opt_mode).w] == PIXMA_SCAN_MODE_LINEART)
858 OVAL (opt_mode).w = ss->mode_map[0];
865 OVAL (opt_resolution).w = ss->dpi_list[1];
866 if (ss->mode_map[OVAL (opt_mode).w] == PIXMA_SCAN_MODE_LINEART)
915 sp->channels = (OVAL (opt_mode).w == 0) ? 3 : 1;
916 sp->depth = (OVAL (opt_mode).w == 2) ? 1 : 8;
917 sp->xdpi = sp->ydpi = OVAL (opt_resolution).w;
920 x1 = PIXEL (OVAL (opt_tl_x).w, sp->xdpi);
921 x2 = PIXEL (OVAL (opt_br_x).w, sp->xdpi);
928 y1 = PIXEL (OVAL (opt_tl_y).w, sp->ydpi);
929 y2 = PIXEL (OVAL (opt_br_y).w, sp->ydpi);
947 sp->gamma = SANE_UNFIX (OVAL (opt_gamma).w);
949 sp->source = ss->source_map[OVAL (opt_source).w];
950 sp->mode = ss->mode_map[OVAL (opt_mode).w];
952 sp->threshold = 2.55 * OVAL (opt_threshold).w;
953 sp->threshold_curve = OVAL (opt_threshold_curve).w;
954 sp->adf_wait = OVAL (opt_adf_wait).w;
955 sp->calibrate = ss->calibrate_map[OVAL (opt_calibrate).w];
1113 if (OVAL (opt_button_controlled).b && ss->page_count == 0)
1918 ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_FLATBED ||
1919 ss->source_map[OVAL (opt_source).w] == PIXMA_SOURCE_TPU)