Lines Matching defs:byte
76 typedef SANE_Byte byte;
104 gl640WriteControl (int fd, GL640_Request req, byte * data, unsigned int size)
123 gl640ReadControl (int fd, GL640_Request req, byte * data, unsigned int size)
140 /* Wrappers to read or write a single byte to the bridge */
142 gl640WriteReq (int fd, GL640_Request req, byte data)
148 gl640ReadReq (int fd, GL640_Request req, byte * data)
161 gl640WriteBulk (int fd, byte * setup, byte * data, size_t size)
184 gl640ReadBulk (int fd, byte * setup, byte * data, size_t size)
206 /* write 1 byte to a LM9830 register address */
208 write_byte (int fd, byte addr, byte val)
218 /* read 1 byte from a LM9830 register address */
220 read_byte (int fd, byte addr, byte * val)
230 static byte bulk_setup_data[] = { 0, 0, 0x80, 0, 0, 0, 0, 0 };
296 write_many (int fd, unsigned int addr, const byte *src, size_t count)
323 byte val;
329 ((byte *) dst)[i] = val;
330 DBG (15, " %04lx:%02x", (u_long) (addr + i), ((byte *) dst)[i]);
349 byte result = 0;
376 byte result;
401 read_bulk_size (int fd, int ks, int remainder, byte * dest, int destsize)
403 byte *buf;
477 /* scanline end-of-line data byte, returned after each r,g,b segment,
482 static const byte seq002[] =
487 static const byte seq003[] =
500 byte result, rv;
562 byte *buf, *ptr, *redptr;
639 byte-by-byte RGB, without reading in the whole buffer first.
649 /* for PPM binary (P6), 3-byte RGB pixel */
730 byte result;
731 byte *buf;
990 byte *linebuf, *oldline, *newline;
1007 width = width * 3; /* 1 byte each of r, g, b */
1127 byte ogn[2];
1163 ogn[0] = (byte) (((offset << 2) + (gain >> 8)) & 0xFF);
1164 ogn[1] = (byte) (gain & 0xFF);
1165 fwrite (ogn, sizeof (byte), 2, fp);
1169 fwrite (ogn, sizeof (byte), 2, fp);
1195 byte *buf;
1215 buf[temp] = (byte) ((OFFSET << 2) + (GAIN >> 8));
1216 buf[temp + 1] = (byte) (GAIN & 0xFF);
1253 byte result;
1254 byte *buf;