|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Implement the ThunderScan 4-bit run/delta decoder. More...
Go to the source code of this file.
Macros | |
| #define | THUNDER_CODE 0xc0 /* mask for 2-bit code word */ |
| Mask selecting the 2-bit code word in the top bits of a ThunderScan byte. | |
| #define | THUNDER_RUN 0x00 /* run of pixels w/ encoded count */ |
| ThunderScan code word for a run of the previous pixel. | |
| #define | THUNDER_2BITDELTAS 0x40 /* 3 pixels w/ encoded 2-bit deltas */ |
| ThunderScan code word for three packed 2-bit pixel deltas. | |
| #define | DELTA2_SKIP 2 /* skip code for 2-bit deltas */ |
| 2-bit delta value meaning "no pixel" in a THUNDER_2BITDELTAS byte. | |
| #define | THUNDER_3BITDELTAS 0x80 /* 2 pixels w/ encoded 3-bit deltas */ |
| ThunderScan code word for two packed 3-bit pixel deltas. | |
| #define | DELTA3_SKIP 4 /* skip code for 3-bit deltas */ |
| 3-bit delta value meaning "no pixel" in a THUNDER_3BITDELTAS byte. | |
| #define | THUNDER_RAW 0xc0 /* raw data encoded */ |
| ThunderScan code word for a literal 4-bit pixel. | |
| #define | SETPIXEL(op, v) |
| Store a 4-bit pixel into the packed output if maxpixels has not been reached. | |
Functions | |
| static int | ThunderSetupDecode (TIFF *tif) |
| Validate four-bit single-plane ThunderScan decoding. | |
| static int | ThunderDecode (TIFF *tif, uint8_t *op0, tmsize_t maxpixels) |
| Expand one ThunderScan row into packed four-bit samples. | |
| static int | ThunderDecodeRow (TIFF *tif, uint8_t *buf, tmsize_t occ, uint16_t s) |
| Decode complete ThunderScan scanlines into caller storage. | |
| int | TIFFInitThunderScan (TIFF *tif, int scheme) |
| Install ThunderScan transfer callbacks. | |
Variables | |
| static const int | twobitdeltas [4] = {0, 1, 0, -1} |
| Map two-bit delta codes to signed pixel increments. | |
| static const int | threebitdeltas [8] = {0, 1, 2, 3, 0, -3, -2, -1} |
| Map three-bit delta codes to signed pixel increments. | |
Implement the ThunderScan 4-bit run/delta decoder.
Definition in file tif_thunder.c.