Lines Matching refs:pbuf
162 SANE_Byte *pbuf,
195 memcpy (pbuf, ps->pss->buf + ps->scsi_buf_pos, (size_t)ndata);
196 pbuf += ndata;
244 static SANE_Status FDSource_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen)
254 SANE_Int bytes_read = read (ps->fd, pbuf, remaining);
275 pbuf += bytes_read;
326 SANE_Byte *pbuf,
338 memcpy (pbuf, ps->buf + ps->buf_pos, to_move);
460 static SANE_Status TxSource_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen)
463 return ps->psub->get(ps->psub, pbuf, plen);
533 static SANE_Status Expander_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen)
567 *pbuf = ((ps->ch_buf[ps->ch_pos] >> ps->bit) & 0x01) ? 0xFF : 0x00;
568 pbuf++;
702 static SANE_Status Deinterlacer_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen)
746 *pbuf = (ps->ch_buf[ps->ch_pos] & 0x55) |
752 *pbuf = (ps->ch_buf[ps->ch_pos] & 0xaa) |
763 *pbuf = valid_pixel | (valid_pixel >> 1);
770 *pbuf = valid_pixel | (valid_pixel << 1);
783 *pbuf = ps->ch_buf[(ps->ch_pos + (ps->ch_line_size)) % ps->ch_size];
790 *pbuf = ps->ch_buf[ps->ch_pos+ps->ch_bytes_per_pixel];
792 *pbuf = ps->ch_buf[ps->ch_pos-ps->ch_bytes_per_pixel];
796 *pbuf = ps->ch_buf[ps->ch_pos];
803 pbuf++;
949 SANE_Byte *pbuf,
1043 *pbuf++ = ps->xbuf[ps->pos++];
1156 static SANE_Status Inverter_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen)
1158 SANE_Status status = TxSource_get (pself, pbuf, plen);
1163 pbuf[i] ^= 0xFF;