Lines Matching refs:result
1871 uint8_t* result)
1873 debug_print_raw (dbg_level + 2, "debug_print_calib_format:\n", result, 32);
1876 func, get_double ( &(result[0]) ));
1877 DBG (dbg_level, "%s: [2] bytes per channel: %d\n", func, result[2]);
1878 DBG (dbg_level, "%s: [3] line count: %d\n", func, result[3]);
1882 result[4] == 1?" MUST_DO_CALIBRATION":"",
1883 result[4] == 2?" SCAN_IMAGE_DOES_CALIBRATION":"",
1884 result[4] == 3?" NEEDS_NO_CALIBRATION":"");
1888 BIT(result[5],7)?" NONE_PACKED":" PACKED",
1889 BIT(result[5],6)?" INTERPOLATED":"",
1890 BIT(result[5],5)?" SEND_REVERSED":"",
1891 BIT(result[5],4)?" PACKED_DATA":"",
1892 BIT(result[5],3)?" COLOR_CALIB":"",
1893 BIT(result[5],2)?" DARK_CALIB":"",
1894 BIT(result[5],1)?" NEEDS_WHITE_BLACK_SHADING_DATA":"",
1895 BIT(result[5],0)?" NEEDS_CALIB_TABLE_CHANNEL_BY_CHANNEL":"");
1897 DBG (dbg_level, "%s: [6] R gain: %d\n", func, result[6]);
1898 DBG (dbg_level, "%s: [7] G gain: %d\n", func, result[7]);
1899 DBG (dbg_level, "%s: [8] B gain: %d\n", func, result[8]);
1902 func, get_double ( &(result[9]) ) );
1904 func, get_double ( &(result[11]) ) );
1906 func, get_double ( &(result[13]) ) );
1909 func, get_double ( &(result[15]) ) );
1911 func, get_double ( &(result[17]) ) );
1913 func, get_double ( &(result[19]) ) );
1915 DBG (dbg_level, "%s: [21] true-gray gain: %d\n", func, result[21]);
1917 func, get_double ( &(result[22]) ) );
1920 func, get_double ( &(result[24]) ) );
1924 uint8_t* result)
1926 debug_print_raw (dbg_level + 2, "debug_print_accel_info:\n", result, 24);
1929 func, get_double ( &(result[0]) ));
1931 func, get_double ( &(result[2]) ));
1933 func, get_quad ( &(result[4]) ));
1935 func, get_quad ( &(result[8]) ));
1937 func, get_double ( &(result[12]) ));
1939 func, get_double ( &(result[14]) ));
1942 BIT(result[16],0)?" TWO_BYTES_PER_ELEM":" SINGLE_BYTE_PER_ELEM",
1943 BIT(result[16],1)?" LOW_HIGH_ORDER":" HIGH_LOW_ORDER");
1944 DBG (dbg_level, "%s: [17] table count: %d\n", func, result[17]);
3335 uint8_t result;
3356 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, &result, &size);
3358 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
3365 status, result, light_status[(result>5)?6:result]);
3367 if (result == 1 || result == 5) {
3439 firmware_status result;
3443 size = sizeof (result);
3452 status = avision_cmd (av_con, &rcmd, sizeof (rcmd), 0, 0, &result, &size);
3453 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
3460 debug_print_raw (6, "get_firmware_status: raw data:\n", (uint8_t*)&result, size);
3462 DBG (3, "get_firmware_status: [0] needs firmware %x\n", result.download_firmware);
3463 DBG (3, "get_firmware_status: [1] side edge: %d\n", get_double ( result.first_effective_pixel_flatbed ));
3464 DBG (3, "get_firmware_status: [3] side edge: %d\n", get_double ( result.first_effective_pixel_adf_front ));
3465 DBG (3, "get_firmware_status: [5] side edge: %d\n", get_double ( result.first_effective_pixel_adf_rear ));
3477 uint8_t result[40];
3481 size = sizeof (result);
3490 status = avision_cmd (av_con, &rcmd, sizeof (rcmd), 0, 0, result, &size);
3491 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
3498 debug_print_raw (6, "get_flash_ram_info: raw data:\n", result, size);
3500 DBG (3, "get_flash_ram_info: [0] data type %x\n", result [0]);
3502 BIT(result[1],7)?" RESERVED_BIT7":"",
3503 BIT(result[1],6)?" RESERVED_BIT6":"",
3504 BIT(result[1],5)?" FONT(r/w)":"",
3505 BIT(result[1],4)?" FPGA(w)":"",
3506 BIT(result[1],3)?" FMDBG(r)":"",
3507 BIT(result[1],2)?" RAWLINE(r)":"",
3508 BIT(result[1],1)?" FIRMWARE(r/w)":"",
3509 BIT(result[1],0)?" CTAB(r/w)":"");
3512 get_quad ( &(result[2]) ) );
3515 get_quad ( &(result[6]) ) );
3518 get_quad ( &(result[10]) ) );
3521 get_quad ( &(result[14]) ) );
3524 get_quad ( &(result[18]) ) );
3527 get_quad ( &(result[22]) ) );
3530 get_quad ( &(result[26]) ) );
3533 get_quad ( &(result[30]) ) );
3778 uint8_t result[8];
3786 size = sizeof (result);
3798 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, result, &size);
3799 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
3805 debug_print_raw (6, "get_accessories_info: raw data:\n", result, size);
3807 DBG (3, "get_accessories_info: [0] ADF: %x\n", result[0]);
3808 DBG (3, "get_accessories_info: [1] Light Box: %x\n", result[1]);
3811 result [2],
3812 adf_model[ (result[2] < adf_models) ? result[2] : adf_models ]);
3814 dev->inquiry_adf |= result [0];
3818 if (result[0] == 1)
3822 } else if (result[0] == 0 && result[2] != 0 && !skip_adf) {
3853 if (result[1] == 1)
3934 } result;
3940 size = sizeof (result);
3953 (uint8_t*)&result, &size);
3954 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
3970 status = sanei_usb_read_int (s->av_con.usb_dn, (uint8_t*)&result,
3980 if (size < sizeof (result))
3981 memset ((char*)result.buttons + size, 0, sizeof (result) - size);
3988 if (result.press_state > 0) {
3990 (uint8_t*)&result, size);
3991 result.buttons[0] = result.press_state;
3992 result.press_state = 0x80 | 1;
3998 else if (size >= 8 && result.press_state == 0) { /* AV 220 */
4001 (uint8_t*)&result, size);
4006 result.press_state = 0x80 | 1;
4007 result.buttons[0] = (uint8_t) dev->inquiry_buttons; /* 1 based */
4012 (uint8_t*)&result, size);
4014 DBG (3, "get_button_status: [0] Button status: %x\n", result.press_state);
4017 result.buttons[i]);
4018 DBG (3, "get_button_status: [7] Display: %d\n", result.display);
4031 if (result.display > 0)
4032 add_token ("%d", result.display);
4034 if (result.press_state >> 7) /* AV220 et.al. bit 6 is long/short press? */
4037 const unsigned int buttons_pressed = result.press_state & 0x7F;
4066 const uint8_t button = result.buttons[i] - 1; /* 1 based ... */
4098 uint8_t result[8];
4103 size = sizeof (result);
4112 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, result, &size);
4113 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
4119 debug_print_raw (6, "get_frame_info: raw data\n", result, size);
4122 (result[0]==1)?"APS":
4123 (result[0]==2)?"Film holder (35mm)":
4124 (result[0]==3)?"Slide holder":
4125 (result[0]==0xff)?"Empty":"unknown");
4126 DBG (3, "get_frame_info: [1] Current frame number: %d\n", result[1]);
4127 DBG (3, "get_frame_info: [2] Frame amount: %d\n", result[2]);
4128 DBG (3, "get_frame_info: [3] Mode: %s\n", BIT(result[3],4)?"APS":"Not APS");
4130 ((i=(size_t) (BIT(result[3],3)<<1)+BIT(result[2],2))==0)?"Unknown":
4133 ((i=(size_t) (BIT(result[1],3)<<1)+BIT(result[0],2))==0)?"Unknown":
4136 dev->holder_type = result[0];
4137 dev->current_frame = result[1];
4142 if (result[0] != 0xff)
4143 dev->frame_range.max = result[2];
4164 } result;
4171 size = sizeof (result);
4181 &result, &size);
4182 if (status != SANE_STATUS_GOOD || size != sizeof (result)) {
4188 debug_print_raw (6, "get_duplex_info: raw data\n", (uint8_t*)&result, size);
4191 BIT(result.mode,0)?"MERGED_PAGES":"",
4192 BIT(result.mode,1)?"2ND_PAGE_FOLLOWS":"");
4194 get_double(result.color_line_difference));
4196 get_double(result.gray_line_difference));
4198 get_double(result.lineart_line_difference));
4199 /* isn't this supposed to be result.info ?!? */
4201 BIT(result.image_info,0)?" FLATBED_BGR":" FLATBED_RGB",
4202 BIT(result.image_info,1)?" ADF_BGR":" ADF_RGB",
4203 BIT(result.image_info,2)?" FLATBED_NEEDS_MIRROR_IMAGE":"",
4204 BIT(result.image_info,3)?" ADF_NEEDS_MIRROR_IMAGE":"");
4263 uint8_t result [AVISION_INQUIRY_SIZE_MAX];
4280 memset (result, 0, sizeof(result));
4305 status = inquiry (av_con, result, AVISION_INQUIRY_SIZE_V1);
4312 memcpy (&mfg, result + 8, 8);
4314 memcpy (&model, result + 16, 16);
4316 memcpy (&rev, result + 32, 4);
4412 status = inquiry (av_con, result, AVISION_INQUIRY_SIZE_V1);
4436 dev->inquiry_asic_type = (int) result[91];
4439 status = inquiry (av_con, result, AVISION_INQUIRY_SIZE_V2);
4446 debug_print_raw (6, "attach: raw data:\n", result, sizeof (result) );
4448 DBG (3, "attach: [8-15] Vendor id.: '%8.8s'\n", result+8);
4449 DBG (3, "attach: [16-31] Product id.: '%16.16s'\n", result+16);
4450 DBG (3, "attach: [32-35] Product rev.: '%4.4s'\n", result+32);
4452 i = (result[36] >> 4) & 0x7;
4453 switch (result[36] & 0x07) {
4462 BIT(result[36],7)?" ADF":"",
4467 BIT(result[36],3)?" IS_NOT_FLATBED":"",
4470 DBG (3, "attach: [37] Optical res.: %d00 dpi\n", result[37]);
4471 DBG (3, "attach: [38] Maximum res.: %d00 dpi\n", result[38]);
4474 BIT(result[39],7)?" TRANS":"",
4475 BIT(result[39],6)?" Q_SCAN":"",
4476 BIT(result[39],5)?" EXTENDED_RES":"",
4477 BIT(result[39],4)?" SUPPORTS_CALIB":"",
4478 BIT(result[39],2)?" NEW_PROTOCOL":"",
4479 (result[39] & 0x03) == 0x03 ? " AVISION":" OEM");
4482 get_double ( &(result[40]) ));
4484 get_double ( &(result[42]) ));
4486 get_double ( &(result[44]) ));
4488 get_double ( &(result[46]) ));
4490 get_double ( &(result[48] ) ));
4493 BIT(result[50],7)?" LIGHT_CONTROL":"",
4494 BIT(result[50],6)?" BUTTON_CONTROL":"",
4495 BIT(result[50],5)?" NEED_SW_COLORPACK":"",
4496 BIT(result[50],4)?" SW_CALIB":"",
4497 BIT(result[50],3)?" NEED_SW_GAMMA":"",
4498 BIT(result[50],2)?" KEEPS_GAMMA":"",
4499 BIT(result[50],1)?" KEEPS_WINDOW_CMD":"",
4500 BIT(result[50],0)?" XYRES_DIFFERENT":"");
4502 BIT(result[51],7)?" EXPOSURE_CTRL":"",
4503 BIT(result[51],6)?" NEED_SW_TRIGGER_CAL":"",
4504 BIT(result[51],5)?" NEED_WHITE_PAPER_CALIB":"",
4505 BIT(result[51],4)?" SUPPORTS_QUALITY_SPEED_CAL":"",
4506 BIT(result[51],3)?" NEED_TRANSP_CAL":"",
4507 BIT(result[51],2)?" HAS_PUSH_BUTTON":"",
4508 BIT(result[51],1)?" NEW_CAL_METHOD_3x3_MATRIX_(NO_GAMMA_TABLE)":"",
4509 BIT(result[51],0)?" ADF_MIRRORS_IMAGE":"");
4511 BIT(result[52],7)?" GRAY_WHITE":"",
4512 BIT(result[52],6)?" SUPPORTS_GAIN_CONTROL":"",
4513 BIT(result[52],5)?" SUPPORTS_TET":"", /* "Text Enhanced Technology" */
4514 BIT(result[52],4)?" 3x3COL_TABLE":"",
4515 BIT(result[52],3)?" 1x3FILTER":"",
4516 BIT(result[52],2)?" INDEX_COLOR":"",
4517 BIT(result[52],1)?" POWER_SAVING_TIMER":"",
4518 BIT(result[52],0)?" NVM_DATA_REC":"");
4521 DBG (3, "attach: [53] line difference (software color pack): %d\n", result[53]);
4522 DBG (3, "attach: [54] color mode pixel boundary: %d\n", result[54]);
4523 DBG (3, "attach: [55] gray mode pixel boundary: %d\n", result[55]);
4524 DBG (3, "attach: [56] 4bit gray mode pixel boundary: %d\n", result[56]);
4525 DBG (3, "attach: [57] lineart mode pixel boundary: %d\n", result[57]);
4526 DBG (3, "attach: [58] halftone mode pixel boundary: %d\n", result[58]);
4527 DBG (3, "attach: [59] error-diffusion mode pixel boundary: %d\n", result[59]);
4530 BIT(result[60],7)?" 1":"",
4531 BIT(result[60],6)?" 3":"",
4532 (result[60] & 0x3F) != 0 ? " RESERVED":"");
4535 BIT(result[61],7)?" 1":"",
4536 BIT(result[61],6)?" 4":"",
4537 BIT(result[61],5)?" 6":"",
4538 BIT(result[61],4)?" 8":"",
4539 BIT(result[61],3)?" 10":"",
4540 BIT(result[61],2)?" 12":"",
4541 BIT(result[61],1)?" 16":"");
4544 BIT(result[62],7)?" Flatbed":"",
4545 BIT(result[62],6)?" Roller (ADF)":"",
4546 BIT(result[62],5)?" Flatbed (ADF)":"",
4547 BIT(result[62],4)?" Roller":"", /* does not feed multiple pages, AV25 */
4548 BIT(result[62],3)?" Film scanner":"",
4549 BIT(result[62],2)?" Duplex":"");
4552 get_double ( &(result[75]) ));
4555 get_double ( &(result[77]) ));
4557 get_double ( &(result[79]) ));
4560 get_double ( &(result[81]) ));
4562 get_double ( &(result[83]) ));
4565 get_double ( &(result[85]) ));
4567 get_double ( &(result[87]) )); /* 0xFFFF means unlimited length */
4570 get_double ( &(result[89]) ));
4572 DBG (3, "attach: [91] ASIC: %d\n", result[91]);
4574 DBG (3, "attach: [92] Buttons: %d\n", result[92]);
4577 BIT(result[93],7)?" SUPPORTS_ACCESSORIES_DETECT":"",
4578 BIT(result[93],6)?" ADF_IS_BGR_ORDERED":"",
4579 BIT(result[93],5)?" NO_SINGLE_CHANNEL_GRAY_MODE":"",
4580 BIT(result[93],4)?" SUPPORTS_FLASH_UPDATE":"",
4581 BIT(result[93],3)?" SUPPORTS_ASIC_UPDATE":"",
4582 BIT(result[93],2)?" SUPPORTS_LIGHT_DETECT":"",
4583 BIT(result[93],1)?" SUPPORTS_READ_PRNU_DATA":"",
4584 BIT(result[93],0)?" FLATBED_MIRRORS_IMAGE":"");
4587 BIT(result[94],7)?" IGNORE_LINE_DIFFERENCE_FOR_ADF":"",
4588 BIT(result[94],6)?" NEEDS_SW_LINE_COLOR_PACK":"",
4589 BIT(result[94],5)?" SUPPORTS_DUPLEX_SCAN":"",
4590 BIT(result[94],4)?" INTERLACED_DUPLEX_SCAN":"",
4591 BIT(result[94],3)?" SUPPORTS_TWO_MODE_ADF_SCANS":"",
4592 BIT(result[94],2)?" SUPPORTS_TUNE_SCAN_LENGTH":"",
4593 BIT(result[94],1)?" SUPPORTS_SWITCH_STRIP_FOR_DESKEW":"", /* Kodak i80 only */
4594 BIT(result[94],0)?" SEARCHES_LEADING_SIDE_EDGE_BY_FIRMWARE":"");
4597 BIT(result[95],7)?" SUPPORTS_PAPER_SIZE_AUTO_DETECTION":"",
4598 BIT(result[95],6)?" SUPPORTS_DO_HOUSEKEEPING":"", /* Kodak i80 only */
4599 BIT(result[95],5)?" SUPPORTS_PAPER_LENGTH_SETTING":"", /* AV220, Kodak */
4600 BIT(result[95],4)?" SUPPORTS_PRE_GAMMA_LINEAR_CORRECTION":"",
4601 BIT(result[95],3)?" SUPPORTS_PREFEEDING":"", /* OKI S9800 */
4602 BIT(result[95],2)?" SUPPORTS_GET_BACKGROUND_RASTER":"", /* AV220 et.al. */
4603 BIT(result[95],1)?" SUPPORTS_NVRAM_RESET":"",
4604 BIT(result[95],0)?" SUPPORTS_BATCH_SCAN":"");
4607 BIT(result[128],7)?" SUPPORTS_ADF_CONTINUOUS":"",
4608 BIT(result[128],6)?" SUPPORTS_YCbCr_COLOR":"",
4609 BIT(result[128],5)?" SUPPORTS_ADF_3PASS":"",
4610 BIT(result[128],4)?" SUPPORTS_TUNE_SCAN_LENGTH_HORIZ":"",
4611 BIT(result[128],3)?" SUPPORTS_READ_WRITE_ABILITY_PARAMETER":"",
4612 BIT(result[128],2)?" SUPPORTS_JOB_CONTROL":"",
4613 BIT(result[128],1)?" SUPPORTS_INF_LENGTH":"",
4614 BIT(result[128],0)?" ULTRA_SONIC_DOUBLE_FEED_DETECTION":"");
4617 BIT(result[129],7)?" YCC4:2:0":"",
4618 BIT(result[129],6)?" YCC(profile2)":"",
4619 BIT(result[129],5)?" YCC(profile3)":"",
4620 BIT(result[129],4)?" YCC(profile4)":"",
4621 BIT(result[129],3)?" JPEG(profile1)":"",
4622 BIT(result[129],2)?" JPEG(profile2)":"",
4623 BIT(result[129],1)?" JPEG(profile3)":"",
4624 BIT(result[129],0)?" JPEG(profile4)":"");
4631 else if ( BIT(result[62],6) || BIT(result[62],4) ) {
4640 dev->inquiry_new_protocol = BIT (result[39],2);
4641 dev->inquiry_asic_type = (int) result[91];
4643 dev->inquiry_nvram_read = BIT(result[52],0);
4644 dev->inquiry_power_save_time = BIT(result[52],1);
4646 dev->inquiry_adf = BIT (result[62], 5);
4647 dev->inquiry_duplex = BIT (result[62], 2) || BIT (result[94], 5);
4648 dev->inquiry_duplex_interlaced = BIT(result[62],2) || BIT (result[94], 4);
4653 dev->inquiry_paper_length = BIT (result[95], 5);
4654 dev->inquiry_batch_scan = BIT (result[95], 0); /* AV122, DM152 */
4656 dev->inquiry_detect_accessories = BIT (result[93], 7);
4658 dev->inquiry_needs_calibration = BIT (result[50], 4);
4660 dev->inquiry_keeps_window = BIT (result[50], 1);
4666 dev->inquiry_needs_gamma = BIT (result[50], 3);
4667 dev->inquiry_keeps_gamma = BIT (result[50], 2);
4673 dev->inquiry_3x3_matrix = BIT (result[51], 1);
4674 dev->inquiry_needs_software_colorpack = BIT (result[50],5);
4676 dev->inquiry_needs_line_pack = BIT (result[94], 6);
4678 dev->inquiry_adf_need_mirror = BIT (result[51], 0);
4679 dev->inquiry_adf_bgr_order = BIT (result[93], 6);
4683 dev->inquiry_light_detect = BIT (result[93], 2);
4684 dev->inquiry_light_control = BIT (result[50], 7);
4685 dev->inquiry_button_control = BIT (result[50], 6) | BIT (result[51],2);
4687 dev->inquiry_exposure_control = BIT(result[51],7);
4690 dev->inquiry_max_shading_target = get_double ( &(result[75]) );
4692 dev->inquiry_color_boundary = result[54];
4696 dev->inquiry_gray_boundary = result[55];
4700 dev->inquiry_dithered_boundary = result[59];
4704 dev->inquiry_thresholded_boundary = result[57];
4708 dev->inquiry_line_difference = result[53];
4724 dev->inquiry_optical_res = get_double ( &(result[89]) );
4725 dev->inquiry_max_res = get_double ( &(result[44]) );
4728 dev->inquiry_optical_res = result[37] * 100;
4729 dev->inquiry_max_res = result[38] * 100;
4756 if (BIT(result[60],6))
4758 else if (BIT(result[60],7))
4760 else if ( ((result[36] >> 4) & 0x7) > 0)
4765 if (BIT(result[61],1))
4767 else if (BIT(result[61],2))
4769 else if (BIT(result[61],3))
4771 else if (BIT(result[61],4))
4773 else if (BIT(result[61],5))
4775 else if (BIT(result[61],6))
4777 else if (BIT(result[61],7))
4786 dev->inquiry_no_gray_modes = BIT(result[93],5);
4792 dev->inquiry_buttons = result[92];
4810 (double)get_double (&(result[81])) * MM_PER_INCH / base_dpi + .1;
4812 (double)get_double (&(result[83])) * MM_PER_INCH / base_dpi;
4815 (double)get_double (&(result[77])) * MM_PER_INCH / base_dpi + .1;
4817 (double)get_double (&(result[79])) * MM_PER_INCH / base_dpi;
4820 (double)get_double (&(result[85])) * MM_PER_INCH / base_dpi + .1;
4822 (double)get_double (&(result[87])) * MM_PER_INCH / base_dpi;
4825 dev->inquiry_tune_scan_length = BIT(result[94],2);
4829 dev->inquiry_background_raster = BIT(result[95],2);
4836 get_double(&(result[85])) * dev->inquiry_optical_res / AVISION_BASE_RES;
5172 uint8_t result [32];
5177 size = sizeof (result);
5186 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, result, &size);
5187 if (status != SANE_STATUS_GOOD || size != sizeof (result) ) {
5193 debug_print_calib_format (3, "get_calib_format", result);
5195 format->pixel_per_line = (uint16_t) get_double (&(result[0]));
5196 format->bytes_per_channel = result[2];
5197 format->lines = result[3];
5198 format->flags = result[4];
5199 format->ability1 = result[5];
5200 format->r_gain = result[6];
5201 format->g_gain = result[7];
5202 format->b_gain = result[8];
5203 format->r_shading_target = (uint16_t) get_double (&(result[9]));
5204 format->g_shading_target = (uint16_t) get_double (&(result[11]));
5205 format->b_shading_target = (uint16_t) get_double (&(result[13]));
5206 format->r_dark_shading_target = (uint16_t) get_double (&(result[15]));
5207 format->g_dark_shading_target = (uint16_t) get_double (&(result[17]));
5208 format->b_dark_shading_target = (uint16_t) get_double (&(result[19]));
5572 int result;
5581 result = (int) ( (int)mst[i % 3] * WHITE_MAP_RANGE / (tmp_data + 0.5));
5584 if (result > MAX_WHITE_SHADING) {
5585 result = WHITE_MAP_RANGE;
5591 result = 0xA000;
5594 set_double_le ((data + i*2), result);
6021 uint8_t result [24];
6026 size = sizeof (result);
6035 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, result, &size);
6036 if (status != SANE_STATUS_GOOD || size != sizeof (result) ) {
6043 debug_print_accel_info (3, "get_acceleration_info", result);
6045 info->total_steps = (uint16_t) get_double (&(result[0]));
6046 info->stable_steps = (uint16_t) get_double (&(result[2]));
6047 info->table_units = (uint32_t) get_quad (&(result[4]));
6048 info->base_units = (uint32_t) get_quad (&(result[8]));
6049 info->start_speed = (uint16_t) get_double (&(result[12]));
6050 info->target_speed = (uint16_t) get_double (&(result[14]));
6051 info->ability = result[16];
6052 info->table_count = result[17];
6565 /* dump raw result while debugging */
6632 /* dump raw result while debugging */
6714 /* dump final result while debugging */
6771 uint8_t result[1]; /* 4 */
6772 size_t size = sizeof(result);
6775 0, 0, result, &size);
6777 debug_print_raw (5, "media_check: result\n", result, size);
6780 if (!(result[0] & 0x1))
8067 /* Shift and or the result together and eventually
9167 uint8_t result[16];
9171 status = simple_read (s, 0x80, 0, &size, result);
9178 debug_print_raw (5, "sane_start: pixel_size:", result, size);
9180 get_quad (&(result[0])), get_quad (&(result[4])));