Lines Matching defs:window
977 struct window_data window;
993 DBG(3, "set_window: sizeof(hdr) %d, sizeof(window): %d\n",
994 (int)sizeof(set_window_cmd.hdr), (int)sizeof(set_window_cmd.window));
996 _lto3b(sizeof(set_window_cmd.hdr) + sizeof(set_window_cmd.window),
1001 set_window_cmd.window.windowid = 0;
1002 set_window_cmd.window.autoborder = _OPT_VAL_WORD(s, OPT_AUTOBORDER);
1003 DBG (5, "autoborder set to=%d\n", set_window_cmd.window.autoborder);
1004 _lto2b(_OPT_VAL_WORD(s, OPT_RESOLUTION), set_window_cmd.window.xres);
1005 _lto2b(_OPT_VAL_WORD(s, OPT_RESOLUTION), set_window_cmd.window.yres);
1006 _lto4b((int) _OPT_VAL_WORD_THOUSANDTHS(s, OPT_TL_X), set_window_cmd.window.ulx);
1007 _lto4b((int) _OPT_VAL_WORD_THOUSANDTHS(s, OPT_TL_Y), set_window_cmd.window.uly);
1014 _lto4b(width, set_window_cmd.window.windowwidth);
1015 _lto4b(length, set_window_cmd.window.windowlength);
1018 set_window_cmd.window.brightness = _OPT_VAL_WORD(s, OPT_BRIGHTNESS);
1020 set_window_cmd.window.threshold = _OPT_VAL_WORD(s, OPT_THRESHOLD);
1022 /*!!! set_window_cmd.window.contrast = _OPT_VAL_WORD(s, OPT_CONTRAST); */
1024 set_window_cmd.window.imagecomposition =
1027 set_window_cmd.window.bitsperpixel = 0x01;
1031 set_window_cmd.window.paddingtype = 0x03; /* truncate byte */
1036 set_window_cmd.window.paddingtype |= 0x80;
1039 set_window_cmd.window.bitordering[0] = 0x00;
1049 set_window_cmd.window.compressiontype = 0x01;
1050 set_window_cmd.window.compressionarg = 0x00;
1051 set_window_cmd.window.bitordering[1] = 0x01; /* Bit ordering LSB */
1054 set_window_cmd.window.compressiontype = 0x02;
1055 set_window_cmd.window.compressionarg = 0x04;
1056 set_window_cmd.window.bitordering[1] = 0x01; /* Bit ordering LSB */
1059 set_window_cmd.window.compressiontype = 0x03;
1060 set_window_cmd.window.compressionarg = 0x00;
1061 set_window_cmd.window.bitordering[1] = 0x01; /* Bit ordering LSB */
1065 set_window_cmd.window.compressiontype = 0x00;
1066 set_window_cmd.window.compressionarg = 0x00;
1067 set_window_cmd.window.bitordering[1] = 0x00; /* n/a */
1072 if(set_window_cmd.window.autoborder){ /*--- setting byte 46 of the window descriptor block only works with autoborder */
1076 set_window_cmd.window.border_rotation = ( rotation | deskew ); /*--- deskew assumes autoborder */
1079 /* remote - 0x00 ACE set in window; 0x01 ACE set by control panel */
1080 set_window_cmd.window.remote = _OPT_VAL_WORD(s, OPT_CONTROL_PANEL);
1081 if (set_window_cmd.window.remote == 0x00) {
1083 set_window_cmd.window.acefunction = _OPT_VAL_WORD(s, OPT_ACE_FUNCTION);
1085 set_window_cmd.window.acesensitivity = _OPT_VAL_WORD(s, OPT_ACE_SENSITIVITY);
1088 set_window_cmd.window.batchmode = batchmode;
1095 b = &set_window_cmd.window.sectionblock[i];
1124 struct window_data window;
1146 get_window_data.window.windowid = (backpage == SANE_TRUE) ? 1 : 0;
1153 x =_4btol(get_window_data.window.ulx);
1154 y =_4btol(get_window_data.window.uly);
1155 *w =_4btol(get_window_data.window.windowwidth);
1156 *h =_4btol(get_window_data.window.windowlength);
1161 if (get_window_data.window.autoborder != 1 &&
1170 if (get_window_data.window.autoborder != 1)
1179 DBG (5, "*** get_window found autoborder=%02xh\n", get_window_data.window.autoborder);
1180 DBG (5, "*** get_window found border_rotation=%02xh\n", get_window_data.window.border_rotation);
1416 /* the window width must be truncated to 16 bit points */
2263 /* section border error; border is outside the main window */
3066 DBG(1, "attach: invalid window width reported, using %d\n", dev->info.winWidth);
3071 DBG(1, "attach: invalid window height reported, using %d\n", dev->info.winHeight);