Lines Matching defs:fcal

2053   FILE *fcal;
2308 fcal = fopen (title, "wb");
2309 if (fcal != NULL)
2311 fprintf (fcal, "P5\n%d 1\n255\n", params.pixel_xs);
2314 fcal);
2315 fclose (fcal);
2318 fcal = fopen (title, "wb");
2319 if (fcal != NULL)
2321 fprintf (fcal, "P5\n%d 1\n255\n", params.pixel_xs);
2324 fcal);
2325 fclose (fcal);
2328 fcal = fopen (title, "wb");
2329 if (fcal != NULL)
2331 fprintf (fcal, "P5\n%d 1\n255\n", params.pixel_xs);
2334 fcal);
2335 fclose (fcal);
2546 FILE *fcal;
2557 fcal = fopen (fname, "wb");
2559 if (fcal == NULL)
2569 fwrite (&(scanner->afe_params), sizeof (GT68xx_AFE_Parameters), 1, fcal);
2571 fcal);
2576 fwrite (&(scanner->calibrations[i].dpi), sizeof (SANE_Int), 1, fcal);
2578 fcal);
2581 fcal);
2583 1, fcal);
2585 scanner->calibrations[i].red->width, fcal);
2587 scanner->calibrations[i].red->width, fcal);
2589 scanner->calibrations[i].red->width, fcal);
2591 scanner->calibrations[i].red->width, fcal);
2594 fcal);
2596 sizeof (SANE_Int), 1, fcal);
2598 scanner->calibrations[i].green->width, fcal);
2600 scanner->calibrations[i].green->width, fcal);
2602 scanner->calibrations[i].green->width, fcal);
2604 scanner->calibrations[i].green->width, fcal);
2607 fcal);
2609 sizeof (SANE_Int), 1, fcal);
2611 scanner->calibrations[i].blue->width, fcal);
2613 scanner->calibrations[i].blue->width, fcal);
2615 scanner->calibrations[i].blue->width, fcal);
2617 scanner->calibrations[i].blue->width, fcal);
2622 1, fcal);
2624 sizeof (SANE_Int), 1, fcal);
2627 fcal);
2630 fcal);
2632 scanner->calibrations[i].gray->width, fcal);
2634 scanner->calibrations[i].gray->width, fcal);
2638 fwrite (&nullwidth, sizeof (SANE_Int), 1, fcal);
2643 fclose (fcal);
2651 FILE *fcal;
2657 fcal = fopen (fname, "rb");
2659 if (fcal == NULL)
2671 fread (&(scanner->afe_params), sizeof (GT68xx_AFE_Parameters), 1, fcal);
2673 fcal);
2677 fread (&(scanner->calibrations[i].dpi), sizeof (SANE_Int), 1, fcal);
2678 while (!feof (fcal) && scanner->calibrations[i].dpi > 0)
2681 fcal);
2683 fread (&width, sizeof (SANE_Int), 1, fcal);
2684 fread (&level, sizeof (SANE_Int), 1, fcal);
2687 width, fcal);
2689 width, fcal);
2691 fcal);
2693 fcal);
2695 fread (&width, sizeof (SANE_Int), 1, fcal);
2696 fread (&level, sizeof (SANE_Int), 1, fcal);
2699 width, fcal);
2701 width, fcal);
2703 width, fcal);
2705 width, fcal);
2707 fread (&width, sizeof (SANE_Int), 1, fcal);
2708 fread (&level, sizeof (SANE_Int), 1, fcal);
2711 width, fcal);
2713 width, fcal);
2715 width, fcal);
2717 width, fcal);
2719 fread (&width, sizeof (SANE_Int), 1, fcal);
2722 fread (&level, sizeof (SANE_Int), 1, fcal);
2726 sizeof (unsigned int), width, fcal);
2728 sizeof (unsigned int), width, fcal);
2730 width, fcal);
2732 width, fcal);
2736 fread (&(scanner->calibrations[i].dpi), sizeof (SANE_Int), 1, fcal);
2740 fclose (fcal);