Lines Matching refs:size
191 static void Color_Negative (SANE_Byte * buffer, SANE_Int size,
193 static void Color_to_Gray (SANE_Byte * buffer, SANE_Int size, SANE_Int depth);
194 static void Gray_to_Lineart (SANE_Byte * buffer, SANE_Int size,
196 static void Depth_16_to_8 (SANE_Byte * from_buffer, SANE_Int size,
200 static void gamma_apply (TScanner * s, SANE_Byte * buffer, SANE_Int size,
214 static SANE_Status img_buffers_alloc (TScanner * scanner, SANE_Int size);
502 scanner->aOptions[opt_chipname].size = strlen (data) + 1;
600 img_buffers_alloc (TScanner * scanner, SANE_Int size)
615 scanner->image = (SANE_Byte *) malloc (size * sizeof (SANE_Byte));
618 scanner->rest = (SANE_Byte *) malloc (size * sizeof (SANE_Byte));
724 Color_Negative (SANE_Byte * buffer, SANE_Int size, SANE_Int depth)
734 for (a = 0; a < size / 2; a++)
742 for (a = 0; a < size; a++)
774 Depth_16_to_8 (SANE_Byte * from_buffer, SANE_Int size, SANE_Byte * to_buffer)
783 while (a < size)
793 Gray_to_Lineart (SANE_Byte * buffer, SANE_Int size, SANE_Int threshold)
804 while (fromBufferPos_i < size)
810 if ((fromBufferPos_i < size)
824 Color_to_Gray (SANE_Byte * buffer, SANE_Int size, SANE_Int depth)
840 for (c = 0; c < size / (3 * chn_size); c++)
942 gamma_apply (TScanner * s, SANE_Byte * buffer, SANE_Int size, SANE_Int depth)
955 for (c = 0; c < size / dot_size; c++)
1085 size_t size, max_size = 0;
1092 size = strlen (strings[i]) + 1;
1093 if (size > max_size)
1094 max_size = size;
1221 pDesc->size = sizeof (SANE_Word);
1240 pDesc->size = 0;
1306 pDesc->size = scanner->rng_gamma.max * sizeof (SANE_Word);
1318 pDesc->size = scanner->rng_gamma.max * sizeof (SANE_Word);
1330 pDesc->size = scanner->rng_gamma.max * sizeof (SANE_Word);
1343 pDesc->size = max_string_size (scanner->list_sources);
1355 pDesc->size = max_string_size (scanner->list_colormodes);
1395 pDesc->size = 0;
1409 pDesc->size = max_string_size (scanner->list_models);
1424 pDesc->size = sizeof (SANE_Word);
1439 pDesc->size = sizeof (SANE_Word);
1455 pDesc->size = sizeof (SANE_Word);
1470 pDesc->size = sizeof (SANE_Word);
1487 pDesc->size = sizeof (SANE_Word);
1504 pDesc->size = sizeof (SANE_Word);
1521 pDesc->size = sizeof (SANE_Word);
1536 pDesc->size = 0;
1550 pDesc->size = 0;
1565 pDesc->size = strlen(pVal->s) + 1;
1597 pDesc->size = 0;
1611 pDesc->size = 0;
1642 pDesc->size = sizeof (SANE_Word);
1977 scanner->aOptions[optid].size);
1985 strncpy (result, scanner->aValues[optid].s, scanner->aOptions[optid].size);
1986 ((char*)result)[scanner->aOptions[optid].size-1] = '\0';
2050 scanner->aOptions[optid].size);
2127 scanner->aOptions[opt_colormode].size =
2135 scanner->aOptions[opt_scantype].size =
2579 emul_len: contains size in bytes of retrieved image
2583 len : will contain size in bytes of postprocessed image */