Lines Matching defs:info
358 BH_Info *info;
361 info = &s->hw->info;
371 print_devtype(info->devtype),
372 info->vendor,
373 info->product,
374 info->revision);
377 info->canADF ? " <Installed>" : " <Not Installed>");
379 DBG (1, "Colors:%s%s\n", info->colorBandW ? " <Black and White>" : "",
380 info->colorHalftone ? " <Halftone>" : "");
383 info->canWhiteFrame ? " <White Frame>" : "",
384 info->canBlackFrame ? " <Black Frame>" : "",
385 info->canEdgeExtract ? " <Edge Extraction>" : "",
386 info->canNoiseFilter ? " <Noise Filter>" : "",
387 info->canSmooth ? " <Smooth>" : "",
388 info->canLineBold ? " <Line Bolding>" : "");
391 info->comprG3_1D ? " <Group 3, 1D>" : "",
392 info->comprG3_2D ? " <Group 3, 2D>" : "",
393 info->comprG4 ? " <Group 4>" : "");
396 info->canBorderRecog ? " <Border Recognition>" : "",
397 info->canBarCode ? " <BarCode Decoding>" : "",
398 info->canIcon ? " <Icon Generation>" : "",
399 info->canSection ? " <Section Support>" : "");
402 info->lineMaxBytes,
403 info->lineMaxBytes * 8);
406 info->resBasicX,
407 info->resBasicY);
410 info->resMaxX,
411 info->resMaxY);
414 info->resMinX,
415 info->resMinY);
418 for (i = 0; i < info->resStdList[0]; i++)
419 DBG (1, " %d\n", info->resStdList[i+1]);
422 info->winWidth,
423 info->winHeight,
424 (info->resBasicX != 0) ? ((float) info->winWidth) / info->resBasicX : 0.0,
425 (info->resBasicY) ? ((float) info->winHeight) / info->resBasicY : 0.0);
428 info->canDuplex ? "Duplex Scanner" : "Simplex Scanner",
429 info->canACE ? " (ACE capable)" : "",
430 info->canCheckADF ? " (ADF Paper Sensor capable)" : "");
433 info->vendor,
434 info->product,
435 info->revision,
436 info->canDuplex ? "Duplex Scanner" : "Simplex Scanner",
437 info->canACE ? " (ACE capable)" : "",
438 info->canCheckADF ? " (ADF Paper Sensor capable)" : "");
440 DBG (5, "autoborder_default=%d\n", info->autoborder_default);
441 DBG (5, "batch_default=%d\n", info->batch_default);
442 DBG (5, "deskew_default=%d\n", info->deskew_default);
443 DBG (5, "check_adf_default=%d\n", info->check_adf_default);
444 DBG (5, "duplex_default=%d\n", info->duplex_default);
445 DBG (5, "timeout_adf_default=%d\n", info->timeout_adf_default);
446 DBG (5, "timeout_manual_default=%d\n", info->timeout_manual_default);
447 DBG (5, "control_panel_default=%d\n", info->control_panel_default);
2379 s->opt[OPT_RESOLUTION].constraint.word_list = s->hw->info.resStdList;
2380 s->val[OPT_RESOLUTION].w = s->hw->info.res_default;
2392 if (s->hw->info.colorHalftone == SANE_FALSE)
2398 if (s->hw->info.comprG3_1D == SANE_FALSE ||
2399 s->hw->info.comprG3_2D == SANE_FALSE ||
2400 s->hw->info.comprG4 == SANE_FALSE)
2419 s->val[OPT_AUTOBORDER].w = s->hw->info.autoborder_default;
2447 s->val[OPT_DESKEW].w = s->hw->info.deskew_default;
2456 s->opt[OPT_TL_X].constraint.range = &(s->hw->info.x_range);
2466 s->opt[OPT_TL_Y].constraint.range = &(s->hw->info.y_range);
2476 s->opt[OPT_BR_X].constraint.range = &(s->hw->info.x_range);
2477 s->val[OPT_BR_X].w = s->hw->info.x_range.max;
2486 s->opt[OPT_BR_Y].constraint.range = &(s->hw->info.y_range);
2487 s->val[OPT_BR_Y].w = s->hw->info.y_range.max;
2489 if (s->hw->info.canBorderRecog == SANE_FALSE)
2518 s->val[OPT_BATCH].w = s->hw->info.batch_default;
2526 s->val[OPT_CHECK_ADF].w = s->hw->info.check_adf_default;
2534 s->val[OPT_DUPLEX].w = s->hw->info.duplex_default;
2544 s->val[OPT_TIMEOUT_ADF].w = s->hw->info.timeout_adf_default;
2554 s->val[OPT_TIMEOUT_MANUAL].w = s->hw->info.timeout_manual_default;
2556 if (s->hw->info.canCheckADF == SANE_FALSE)
2561 if (s->hw->info.canDuplex == SANE_FALSE)
2566 if (s->hw->info.canADF == SANE_FALSE)
2585 s->val[OPT_CONTROL_PANEL].w = s->hw->info.control_panel_default;
2647 if (s->hw->info.control_panel_default == SANE_TRUE)
2654 else if (s->hw->info.canACE == SANE_FALSE)
2693 if (s->hw->info.canIcon == SANE_FALSE)
2819 if (s->hw->info.canSection == SANE_FALSE)
2824 if (s->hw->info.canBarCode == SANE_FALSE)
2969 dev->info.devtype = ibuf.devtype;
2970 sprintf(dev->info.vendor, "%.8s", ibuf.vendor);
2971 trim_spaces(dev->info.vendor, sizeof(dev->info.vendor));
2972 sprintf(dev->info.product, "%.16s", ibuf.product);
2973 trim_spaces(dev->info.product, sizeof(dev->info.product));
2974 sprintf(dev->info.revision, "%.4s", ibuf.revision);
2975 trim_spaces(dev->info.revision, sizeof(dev->info.revision));
2978 dev->sane.vendor = strdup(dev->info.vendor);
2979 dev->sane.model = strdup(dev->info.product);;
2980 dev->sane.type = strdup(print_devtype(dev->info.devtype));
2983 dev->info.canADF = vbuf.adf & 0x01;
2984 dev->info.colorBandW = vbuf.imagecomposition & 0x01;
2985 dev->info.colorHalftone = vbuf.imagecomposition & 0x02;
2986 dev->info.canWhiteFrame = vbuf.imagedataprocessing[1] & 0x01;
2987 dev->info.canBlackFrame = vbuf.imagedataprocessing[1] & 0x02;
2988 dev->info.canEdgeExtract = vbuf.imagedataprocessing[1] & 0x04;
2989 dev->info.canNoiseFilter = vbuf.imagedataprocessing[1] & 0x08;
2990 dev->info.canSmooth = vbuf.imagedataprocessing[1] & 0x10;
2991 dev->info.canLineBold = vbuf.imagedataprocessing[1] & 0x20;
2992 dev->info.comprG3_1D = vbuf.compression & 0x01;
2993 dev->info.comprG3_2D = vbuf.compression & 0x02;
2994 dev->info.comprG4 = vbuf.compression & 0x04;
2995 dev->info.canBorderRecog = vbuf.sizerecognition & 0x01;
2996 dev->info.canBarCode = vbuf.optionalfeatures & 0x01;
2997 dev->info.canIcon = vbuf.optionalfeatures & 0x02;
2998 dev->info.canSection = vbuf.optionalfeatures & 0x04;
2999 dev->info.lineMaxBytes = _2btol(vbuf.xmaxoutputbytes);
3004 dev->info.canADF = SANE_FALSE;
3005 dev->info.colorBandW = SANE_TRUE;
3006 dev->info.colorHalftone = SANE_TRUE;
3007 dev->info.canWhiteFrame = SANE_TRUE;
3008 dev->info.canBlackFrame = SANE_TRUE;
3009 dev->info.canEdgeExtract = SANE_TRUE;
3010 dev->info.canNoiseFilter = SANE_TRUE;
3011 dev->info.canSmooth = SANE_TRUE;
3012 dev->info.canLineBold = SANE_TRUE;
3013 dev->info.comprG3_1D = SANE_TRUE;
3014 dev->info.comprG3_2D = SANE_TRUE;
3015 dev->info.comprG4 = SANE_TRUE;
3016 dev->info.canBorderRecog = SANE_TRUE;
3017 dev->info.canBarCode = SANE_TRUE;
3018 dev->info.canIcon = SANE_TRUE;
3019 dev->info.canSection = SANE_TRUE;
3020 dev->info.lineMaxBytes = 450;
3025 dev->info.resBasicX = _2btol(jbuf.basicxres);
3026 dev->info.resBasicY = _2btol(jbuf.basicyres);
3027 dev->info.resMaxX = _2btol(jbuf.maxxres);
3028 dev->info.resMaxY = _2btol(jbuf.maxyres);
3029 dev->info.resMinX = _2btol(jbuf.minxres);
3030 dev->info.resMinY = _2btol(jbuf.minyres);
3033 dev->info.resStdList[0] = 0;
3034 if (jbuf.standardres[0] & 0x80) appendStdList(&dev->info, 60);
3035 if (jbuf.standardres[0] & 0x40) appendStdList(&dev->info, 75);
3036 if (jbuf.standardres[0] & 0x20) appendStdList(&dev->info, 100);
3037 if (jbuf.standardres[0] & 0x10) appendStdList(&dev->info, 120);
3038 if (jbuf.standardres[0] & 0x08) appendStdList(&dev->info, 150);
3039 if (jbuf.standardres[0] & 0x04) appendStdList(&dev->info, 160);
3040 if (jbuf.standardres[0] & 0x02) appendStdList(&dev->info, 180);
3041 if (jbuf.standardres[0] & 0x01) appendStdList(&dev->info, 200);
3042 if (jbuf.standardres[1] & 0x80) appendStdList(&dev->info, 240);
3043 if (jbuf.standardres[1] & 0x40) appendStdList(&dev->info, 300);
3044 if (jbuf.standardres[1] & 0x20) appendStdList(&dev->info, 320);
3045 if (jbuf.standardres[1] & 0x10) appendStdList(&dev->info, 400);
3046 if (jbuf.standardres[1] & 0x08) appendStdList(&dev->info, 480);
3047 if (jbuf.standardres[1] & 0x04) appendStdList(&dev->info, 600);
3048 if (jbuf.standardres[1] & 0x02) appendStdList(&dev->info, 800);
3049 if (jbuf.standardres[1] & 0x01) appendStdList(&dev->info, 1200);
3050 if (dev->info.resStdList[0] == 0)
3054 dev->info.resStdList[0] = 2;
3055 dev->info.resStdList[1] = 200;
3056 dev->info.resStdList[2] = 300;
3057 dev->info.resBasicX = dev->info.resBasicY = 300;
3060 dev->info.winWidth = _4btol(jbuf.windowwidth);
3061 dev->info.winHeight = _4btol(jbuf.windowlength);
3063 if (dev->info.winWidth <= 0)
3065 dev->info.winWidth = (SANE_Int) (dev->info.resBasicX * 8.5);
3066 DBG(1, "attach: invalid window width reported, using %d\n", dev->info.winWidth);
3068 if (dev->info.winHeight <= 0)
3070 dev->info.winHeight = dev->info.resBasicY * 14;
3071 DBG(1, "attach: invalid window height reported, using %d\n", dev->info.winHeight);
3074 mm = (dev->info.resBasicX > 0) ?
3075 ((double) dev->info.winWidth / (double) dev->info.resBasicX * MM_PER_INCH) :
3077 dev->info.x_range.min = SANE_FIX(0.0);
3078 dev->info.x_range.max = SANE_FIX(mm);
3079 dev->info.x_range.quant = SANE_FIX(0.0);
3081 mm = (dev->info.resBasicY > 0) ?
3082 ((double) dev->info.winHeight / (double) dev->info.resBasicY * MM_PER_INCH) :
3084 dev->info.y_range.min = SANE_FIX(0.0);
3085 dev->info.y_range.max = SANE_FIX(mm);
3086 dev->info.y_range.quant = SANE_FIX(0.0);
3091 dev->info.canACE = dev->info.canEdgeExtract &&
3092 dev->info.canNoiseFilter &&
3093 dev->info.canSmooth &&
3094 dev->info.canLineBold;
3097 if (strcmp(dev->info.product, "COPISCAN II 6338") == 0)
3099 dev->info.canDuplex = SANE_TRUE;
3103 dev->info.canDuplex = SANE_FALSE;
3110 if (strcmp(dev->info.revision, "0014") >= 0)
3112 dev->info.canCheckADF = dev->info.canADF;
3116 dev->info.canCheckADF = SANE_FALSE;
3120 dev->info.res_default = dev->info.resBasicX;
3121 dev->info.autoborder_default = dev->info.canBorderRecog;
3122 dev->info.batch_default = SANE_FALSE;
3123 dev->info.deskew_default = SANE_FALSE;
3124 dev->info.check_adf_default = SANE_FALSE;
3125 dev->info.duplex_default = SANE_FALSE;
3126 dev->info.timeout_adf_default = 0;
3127 dev->info.timeout_manual_default = 0;
3128 dev->info.control_panel_default = dev->info.canACE;
3347 void *val, SANE_Word *info)
3358 if (info)
3359 *info = 0;
3460 status = sanei_constrain_value (s->opt + option, val, info);
3474 if (info) *info |= SANE_INFO_RELOAD_PARAMS;
3478 if (info) *info |= SANE_INFO_RELOAD_OPTIONS;
3487 if (info && s->val[option].w != *(SANE_Word *) val)
3488 *info |= SANE_INFO_RELOAD_PARAMS;
3547 if (info) *info |= SANE_INFO_RELOAD_OPTIONS;
3553 if (s->hw->info.canACE == SANE_TRUE)
3566 if (s->hw->info.canACE == SANE_TRUE)
3587 if (info) *info |= SANE_INFO_RELOAD_OPTIONS;
3625 x_max = SANE_UNFIX(s->hw->info.x_range.max);
3626 y_max = SANE_UNFIX(s->hw->info.y_range.max);
3633 if (info) *info |= SANE_INFO_RELOAD_PARAMS | SANE_INFO_RELOAD_OPTIONS;
3637 if (s->hw->info.canADF)