Lines Matching refs:from

780   SANE_Byte *to, *from;
790 for (from = tmp_buf, to = data + len - 3;
792 to -= 3, from += 3)
794 *(to + 0) = *(from + 0); /* copy the R byte */
795 *(to + 1) = *(from + 1); /* copy the G byte */
796 *(to + 2) = *(from + 2); /* copy the B byte */
803 for (from = tmp_buf, to = data + len; to >= data; to--, from++)
805 *to = *from;
810 for (from = tmp_buf, to = data + len; to >= data; to--, from++)
812 *to = (((*from & 0x01) << 7) |
813 ((*from & 0x02) << 5) |
814 ((*from & 0x04) << 3) |
815 ((*from & 0x08) << 1) |
816 ((*from & 0x10) >> 1) |
817 ((*from & 0x20) >> 3) |
818 ((*from & 0x40) >> 5) |
819 ((*from & 0x80) >> 7));
833 int count, from;
841 for (count = 0, from = 0; count < len; count++, from += 3)
843 data[count] = tmp_buf[from]; /* R byte */
844 data[count + len] = tmp_buf[from + 1]; /* G byte */
845 data[count + (len * 2)] = tmp_buf[from + 2]; /* B byte */
947 /* get the red line info from r_buf_lines ago */
950 /* get the green line info from g_buf_lines ago */
956 /* get the red line info from r_buf_lines ago as a whole line */
1717 * if we get cap data from the scanner, we override */
1789 /* DB added reading capability data from scanner */
1793 /* read the capability data from the scanner */
1794 DBG (9, "reading capability data from scanner...\n");
1854 /* fill in the information we've got from the scanner */
2121 /* get the product revision from it's normal place */
2811 /* remove handle from list of open handles: */
3245 * line offsets from documentation.
3256 /* ranges from 1 at 50dpi to 16 at 600dpi */
3262 /* ranges from 0 at 25dpi to 16 at 1200dpi */
3274 /* ranges from 0 at 50dpi to 8 at 1200dpi */