Lines Matching defs:wnd

678 kvs20xx_init_window (struct scanner *s, struct window *wnd, int wnd_id)
681 memset (wnd, 0, sizeof (struct window));
682 wnd->window_descriptor_block_length = cpu2be16 (64);
684 wnd->window_identifier = wnd_id;
685 wnd->x_resolution = cpu2be16 (s->val[RESOLUTION].w);
686 wnd->y_resolution = cpu2be16 (s->val[RESOLUTION].w);
689 wnd->upper_left_x =
691 wnd->upper_left_y =
693 wnd->width =
695 wnd->length =
702 wnd->upper_left_x = cpu2be32 (mm2scanner_units (0));
703 wnd->upper_left_y = cpu2be32 (mm2scanner_units (0));
706 wnd->document_width = wnd->width = w;
707 wnd->document_length = wnd->length = h;
711 wnd->document_width = wnd->width = h;
712 wnd->document_length = wnd->length = w;
715 wnd->brightness = s->val[BRIGHTNESS].w;
716 wnd->threshold = s->val[THRESHOLD].w;
717 wnd->contrast = s->val[CONTRAST].w;
718 wnd->image_composition = mode_val[str_index (mode_list, s->val[MODE].s)];
719 wnd->bit_per_pixel = bps_val[str_index (mode_list, s->val[MODE].s)];
720 wnd->halftone_pattern = 0; /*Does not supported */
721 wnd->bit_ordering = cpu2be16 (BIT_ORDERING);
722 wnd->compression_type = 0; /*Does not supported */
723 wnd->compression_argument = 0; /*Does not supported */
725 wnd->vendor_unique_identifier = 0;
726 wnd->nobuf_fstspeed_dfstop = 0;
727 wnd->mirror_image = 0;
728 wnd->image_emphasis = str_index (image_emphasis_list,
730 wnd->gamma_correction = gamma_val[str_index (gamma_list,
732 wnd->mcd_lamp_dfeed_sens = str_index (lamp_list, s->val[LAMP].s) << 4 | 2;
734 wnd->document_size = ((paper != 0) << 7) | (s->val[LENGTHCTL].b << 6)
737 wnd->ahead_deskew_dfeed_scan_area_fspeed_rshad = s->val[DBLFEED].b << 4
739 wnd->continuous_scanning_pages = str_index (feeder_mode_list,
742 wnd->automatic_threshold_mode = 0; /*Does not supported */
743 wnd->automatic_separation_mode = 0; /*Does not supported */
744 wnd->standard_white_level_mode = 0; /*Does not supported */
745 wnd->b_wnr_noise_reduction = 0; /*Does not supported */
747 wnd->mfeed_toppos_btmpos_dsepa_hsepa_dcont_rstkr = 2 << 6;
749 wnd->stop_mode = 1;