Lines Matching refs:from
103 static int md_num_devices = 0; /* number of devices from config file */
111 static int md_dump = 0; /* from config file: */
150 /* remove Scanner from linked list */
237 /* this is hack to get the list freed with a call from sane_exit() */
314 int bits_pp_in; /* bits per pixel from scanner */
757 /* This function is called from sane_init() to do the inquiry and to read */
760 /* from sane_open() or sane_get_devices(). */
1671 DBG(1, "Scanner attributes from device structure\n");
1898 /* builds a list of device names with associated options from the */
4012 /* when transferred from the scanner, bits_perpixel_out is the */
4015 /* two pixels per byte are transferred from the scanner, but only one */
5872 /* This function extracts the relevant shading pixels from */
6355 /* from the shading image. At the end we have one line. The */
7075 uint8_t *from;
7104 from = ms->gamma_table;
7113 val32 = (uint32_t) *((uint16_t *) from + color * size + byte);
7116 *((uint16_t *) from + color * size + byte) = (uint16_t) val32;
7129 val32 = (uint32_t) *((uint16_t *) from + color * size + byte);
7133 *((uint16_t *) from + color * size + byte) = (uint16_t) val32;
7279 uint8_t *from;
7320 from = ms->buf.src_buf;
7321 from += bpl_ppl_diff;
7329 status = chunky_copy_pixels(ms, from);
7332 from += ms->bpl;
7341 chunky_copy_pixels(Microtek2_Scanner *ms, uint8_t *from)
7347 DBG(30, "chunky_copy_pixels: from=%p, pixels=%d, fp=%p, depth=%d\n",
7348 (void *) from, ms->ppl, (void *) ms->fp, ms->depth);
7365 val16 = *( (uint16_t *) from + 3 * pixel + color );
7373 fwrite((void *) from, 2, 3 * ms->ppl, ms->fp);
7378 fwrite((void *) from, 1, 3 * ms->ppl, ms->fp);
7398 uint8_t *from;
7423 from = ms->buf.src_buf;
7424 for ( frame = 0; frame < 3 * ms->src_lines_to_read; frame++, from += bpf )
7426 switch ( *from )
7439 "0x%02x\n", *from);
7498 /* we have copied from the prehold buffer and are */
7541 float s_w, s_d; /* shading byte from condensed_shading */
7555 bpp_in = ( ms->bits_per_pixel_in + 7 ) / 8; /*Bytes per pixel from scanner*/
7679 uint8_t *from[3];
7702 from[color] = ms->buf.src_buf
7709 from[color] = ms->buf.src_buf
7715 save_from[color] = from[color];
7718 from,
7725 from[color] = save_from[color] + ms->bpl;
7736 uint8_t **from,
7794 val = (float) *(uint16_t *) from[color];
7796 val = (float) *from[color];
7853 from[color] += step;
7868 uint8_t *from;
7874 from = ms->buf.src_buf;
7877 status = wordchunky_copy_pixels(from, ms->ppl, ms->depth, ms->fp);
7880 from += ms->bpl;
7890 wordchunky_copy_pixels(uint8_t *from, uint32_t pixels, int depth, FILE *fp)
7895 DBG(30, "wordchunky_copy_pixels: from=%p, pixels=%d, depth=%d\n",
7896 (void *) from, pixels, depth);
7910 val16 = *(uint16_t *) from;
7913 from += 2;
7922 fputc((char ) *from, fp);
7923 fputc((char) *(from + 2), fp);
7924 fputc((char) *(from + 4), fp);
7928 fputc((char) *(from + 1), fp);
7929 fputc((char) *(from + 3), fp);
7930 fputc((char) *(from + 5), fp);
7933 from += 6;
7954 uint8_t *from;
7970 from = ms->buf.src_buf + ms->ppl * bpp - bpp;
7972 from = ms->buf.src_buf;
7977 from,
7983 from += ms->bpl;
7995 uint8_t *from,
8007 DBG(30, "gray_copy_pixels: pixels=%d, from=%p, fp=%p, depth=%d\n",
8008 ms->ppl, (void *) from, (void *) ms->fp, ms->depth);
8030 val = (float) *(uint16_t *) from;
8032 val = (float) *from;
8069 from += step;
8077 fputc((char) ( ((*from >> 4) & 0x0f) | (*from & 0xf0) ), ms->fp);
8080 fputc((char) ((*from & 0x0f) | ((*from << 4) & 0xf0)), ms->fp);
8081 from += step;
8105 uint8_t *from;
8116 from = ms->buf.src_buf;
8144 to |= ( ( from[byte] >> (7 - bit) ) & 0x01);
8171 fputc( (char) ~from[byte], ms->fp);
8173 from += ms->bpl;
8189 uint8_t *from;
8201 from = ms->buf.src_buf + ms->ppl - 1;
8203 from = ms->buf.src_buf;
8208 from,
8216 from += ms->bpl;
8227 uint8_t *from,
8242 DBG(30, "lineartfake_copy_pixels: from=%p,pixels=%d,threshold=%d,file=%p\n",
8243 (void *) from, pixels, threshold, (void *) fp);
8273 grayval = (float) *from;
8288 from += step;
8308 uint8_t *from;
8337 from = ms->temporary_buffer + line * ms->bpl;
8339 from += ms->ppl - 1;
8341 from,