Lines Matching defs:name
220 static SANE_Status attach_rts8891 (const char *name);
256 write_gray_data (unsigned char *image, char *name, SANE_Int width,
261 fdbg = fopen (name, "wb");
272 write_rgb_data (char *name, unsigned char *image, SANE_Int width,
277 fdbg = fopen (name, "wb");
350 * sane_open() call is performed. A device name may be specified
390 sane_device->name = device->file_name;
412 * device. The name of the device to be opened is passed in argument
413 * name. If the call completes successfully, a handle for the device
420 sane_open (SANE_String_Const name, SANE_Handle * handle)
426 DBG (DBG_proc, "sane_open: start (devicename=%s)\n", name);
427 if (name[0] == 0 || strncmp (name, "rts8891", 7) == 0)
439 DBG (DBG_info, "sane_open: device %s requested\n", name);
440 /* walk the device list until we find a matching name */
442 while (device && strcmp (device->file_name, name) != 0)
458 DBG (DBG_info, "sane_open: device %s found\n", name);
470 " details as possible, e.g. the exact name of your\n");
605 session->opt[option].name);
944 s->opt[option].name, option);
954 "scanning (option = %s (%d))\n", s->opt[option].name, option);
1038 * returns the name of the sensor
1040 * @return string holding the name of the sensor
2238 free ((void *) session->opt[i].name);
2329 options[CFG_MODEL_NUMBER]->name = "modelnumber";
2342 options[CFG_ALLOW_SHARING]->name = "allowsharing";
2355 options[CFG_SENSOR_NUMBER]->name = "sensornumber";
2392 * @param devname name of the device to try to attach to, it is
2426 * @param devicename name of the device to try to attach to, it is
2521 /* name of the device */
2580 session->opt[OPT_NUM_OPTS].name = SANE_NAME_NUM_OPTIONS;
2589 session->opt[OPT_STANDARD_GROUP].name = SANE_NAME_STANDARD;
2597 session->opt[OPT_MODE].name = SANE_NAME_SCAN_MODE;
2608 session->opt[OPT_PREVIEW].name = SANE_NAME_PREVIEW;
2629 session->opt[OPT_RESOLUTION].name = SANE_NAME_SCAN_RESOLUTION;
2649 session->opt[OPT_GEOMETRY_GROUP].name = SANE_NAME_GEOMETRY;
2661 session->opt[OPT_TL_X].name = SANE_NAME_SCAN_TL_X;
2672 session->opt[OPT_TL_Y].name = SANE_NAME_SCAN_TL_Y;
2683 session->opt[OPT_BR_X].name = SANE_NAME_SCAN_BR_X;
2694 session->opt[OPT_BR_Y].name = SANE_NAME_SCAN_BR_Y;
2706 session->opt[OPT_ENHANCEMENT_GROUP].name = SANE_NAME_ENHANCEMENT;
2714 session->opt[OPT_THRESHOLD].name = SANE_NAME_THRESHOLD;
2726 session->opt[OPT_CUSTOM_GAMMA].name = SANE_NAME_CUSTOM_GAMMA;
2734 session->opt[OPT_GAMMA_VECTOR].name = SANE_NAME_GAMMA_VECTOR;
2747 session->opt[OPT_GAMMA_VECTOR_R].name = SANE_NAME_GAMMA_VECTOR_R;
2760 session->opt[OPT_GAMMA_VECTOR_G].name = SANE_NAME_GAMMA_VECTOR_G;
2773 session->opt[OPT_GAMMA_VECTOR_B].name = SANE_NAME_GAMMA_VECTOR_B;
2787 session->opt[OPT_SENSOR_GROUP].name = SANE_NAME_SENSORS;
2797 char name[39];
2804 sprintf (name, "button-%s", model->button_name[idx]);
2807 session->opt[i].name = strdup (name);
2815 session->opt[i].name = strdup ("unused");
2839 session->opt[OPT_LAMP_ON].name = "lamp-on";
2850 session->opt[OPT_LAMP_OFF].name = "lamp-off";
4617 char name[32];
4770 sprintf (name, "dark%03d.pnm", num);
4771 write_rgb_data (name, image, CALIBRATION_WIDTH, 1);
4873 char name[32];
5075 sprintf (name, "gain%03d.pnm", num);
5076 write_rgb_data (name, image, width, 1);
5234 char name[32];
5359 sprintf (name, "offset%03d.pnm", num);
5360 write_rgb_data (name, image, CALIBRATION_WIDTH, 1);