Lines Matching refs:bytes
283 SANE_Int lineMaxBytes; /* maximum bytes per scan-line */
558 _lto2b(u_long val, SANE_Byte *bytes)
560 bytes[0] = (val >> 8) & 0xff;
561 bytes[1] = val & 0xff;
565 _lto3b(u_long val, SANE_Byte *bytes)
567 bytes[0] = (val >> 16) & 0xff;
568 bytes[1] = (val >> 8) & 0xff;
569 bytes[2] = val & 0xff;
573 _lto4b(u_long val, SANE_Byte *bytes)
575 bytes[0] = (val >> 24) & 0xff;
576 bytes[1] = (val >> 16) & 0xff;
577 bytes[2] = (val >> 8) & 0xff;
578 bytes[3] = val & 0xff;
582 _2btol(SANE_Byte *bytes)
586 rv = (bytes[0] << 8) | bytes[1];
592 _4btol(SANE_Byte *bytes)
596 rv = (bytes[0] << 24) |
597 (bytes[1] << 16) |
598 (bytes[2] << 8) |
599 bytes[3];