Lines Matching defs:ptr
1710 if (max_length > s->end - s->ptr)
1711 max_length = s->end - s->ptr;
1716 *data++ = s->ptr[0];
1717 *data++ = s->ptr[s->params.pixels_per_line];
1718 *data++ = s->ptr[2 * s->params.pixels_per_line];
1719 ++s->ptr;
1723 if (max_length > s->end - s->ptr)
1724 max_length = s->end - s->ptr;
1730 *data++ = ~*s->ptr++;
1732 memcpy(data, s->ptr, max_length);
1733 s->ptr += max_length;
1748 if (s->ptr == s->end) {
1808 s->ptr = s->buf;
1889 SANE_Byte *data_ptr; /* ptr to data to process */
1890 SANE_Byte *data_end; /* ptr to end of processed data */
1891 SANE_Byte *out_data_ptr; /* ptr to memory when writing data */
2077 if (s->ptr == s->end) {
2127 s->ptr = s->buf;
2144 SANE_Byte *ptr;
2146 ptr = s->buf;
2147 while (ptr < s->end) {
2152 tmp = ptr[0];
2153 ptr[0] = ptr[2]; /* first Byte G */
2154 ptr[2] = tmp; /* first Byte R */
2156 tmp = ptr[1];
2157 ptr[1] = ptr[3]; /* second Byte G */
2158 ptr[3] = tmp; /* second Byte R */
2160 ptr += 6; /* go to next pixel */
2165 tmp = ptr[0];
2166 ptr[0] = ptr[1]; /* G */
2167 ptr[1] = tmp; /* R */
2169 ptr += 3; /* go to next pixel */
2190 if (new_length == 0 && s->end != s->ptr)
2194 s->ptr = s->buf;