Lines Matching defs:ptr
4243 if (!s->eof && s->ptr != NULL)
5094 s->ptr = s->end = s->buf;
5274 if (s->ptr == s->end)
5477 s->ptr = s->buf;
5518 SANE_Byte *ptr;
5520 ptr = s->buf;
5521 while (ptr < s->end)
5528 tmp = ptr[0];
5529 ptr[0] = ptr[2]; /* first Byte G */
5530 ptr[2] = tmp; /* first Byte R */
5532 tmp = ptr[1];
5533 ptr[1] = ptr[3]; /* second Byte G */
5534 ptr[3] = tmp; /* second Byte R */
5536 ptr += 6; /* go to next pixel */
5543 tmp = ptr[0];
5544 ptr[0] = ptr[1]; /* G */
5545 ptr[1] = tmp; /* R */
5547 ptr += 3; /* go to next pixel */
5569 if (new_length == 0 && s->end != s->ptr)
5575 s->ptr = s->buf;
5594 if (max_length > s->end - s->ptr)
5595 max_length = s->end - s->ptr;
5604 *data++ = (u_char) ~ (s->ptr[0]);
5605 *data++ = (u_char) ~ (s->ptr[s->params.pixels_per_line]);
5606 *data++ = (u_char) ~ (s->ptr[2 * s->params.pixels_per_line]);
5607 ++s->ptr;
5614 *data++ = s->ptr[0];
5615 *data++ = s->ptr[s->params.pixels_per_line];
5616 *data++ = s->ptr[2 * s->params.pixels_per_line];
5617 ++s->ptr;
5623 if (max_length > s->end - s->ptr)
5624 max_length = s->end - s->ptr;
5633 *data++ = *s->ptr++;
5638 *data++ = ~*s->ptr++;
5650 data[i] = (u_char) ~ (s->ptr[i]);
5655 memcpy (data, s->ptr, max_length);
5657 s->ptr += max_length;
5676 SANE_Byte *data_ptr; /* ptr to data to process */
5677 SANE_Byte *data_end; /* ptr to end of processed data */
5678 SANE_Byte *out_data_ptr; /* ptr to memory when writing data */
6181 * If the s->ptr pointer is not NULL, then a scan operation