|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Define fax run callbacks generated transitions and decoder state macros. More...
#include "tiff.h"Go to the source code of this file.
Data Structures | |
| struct | TIFFFaxTabEnt |
| Describe one generated fax decoding state transition. More... | |
Macros | |
| #define | S_Null 0 |
| Mark a table entry that matches no code. | |
| #define | S_Pass 1 |
| Select pass mode. | |
| #define | S_Horiz 2 |
| Select horizontal mode. | |
| #define | S_V0 3 |
| Select zero-offset vertical mode. | |
| #define | S_VR 4 |
| Select right-offset vertical mode. | |
| #define | S_VL 5 |
| Select left-offset vertical mode. | |
| #define | S_Ext 6 |
| Select unsupported extension mode. | |
| #define | S_TermW 7 |
| Finish a white run. | |
| #define | S_TermB 8 |
| Finish a black run. | |
| #define | S_MakeUpW 9 |
| Extend a white run. | |
| #define | S_MakeUpB 10 |
| Extend a black run. | |
| #define | S_MakeUp 11 |
| Extend either run colour. | |
| #define | S_EOL 12 |
| Recognise end of line. | |
| #define | EndOfData() (cp >= ep) |
| Test whether the local raw cursor is exhausted. | |
| #define | NeedBits8(n, eoflab) |
| Load bits or branch to the caller EOF label. | |
| #define | NeedBits16(n, eoflab) |
| Load up to sixteen bits or branch to EOF. | |
| #define | GetBits(n) (BitAcc & ((1 << (n)) - 1)) |
| Inspect low bits of the local accumulator. | |
| #define | ClrBits(n) |
| Consume low bits from the local accumulator. | |
| #define | LOOKUP8(wid, tab, eoflab) |
| Fetch and consume an eight-bit-bounded transition. | |
| #define | LOOKUP16(wid, tab, eoflab) |
| Fetch and consume a sixteen-bit-bounded transition. | |
| #define | SETVALUE(x) |
| Append a checked decoded run and reset its local length. | |
| #define | SYNC_EOL(eoflab, retrywithouteol) |
| Synchronise EOL or retry configured no-EOL recovery. | |
| #define | CLEANUP_RUNS() |
| Repair the current row run total to the requested width. | |
| #define | EXPAND1D(eoflab) |
| Expand a one-dimensional Huffman row into runs. | |
| #define | CHECK_b1 |
| Advance the reference change cursor with capacity checks. | |
| #define | EXPAND2D(eoflab) |
| Expand a two-dimensional row relative to reference runs. | |
Typedefs | |
| typedef void(* | TIFFFaxFillFunc) (unsigned char *buf, uint32_t *runs, uint32_t *erun, uint32_t lastx) |
| Render decoded fax runs through an installed callback. | |
Functions | |
| void | _TIFFFax3fillruns (unsigned char *buf, uint32_t *runs, uint32_t *erun, uint32_t lastx) |
| Render alternating white/black fax runs into an MSB-first row. | |
Variables | |
| const TIFFFaxTabEnt | TIFFFaxMainTable [] |
| Decode seven-bit two-dimensional (Group3 2D and Group4) mode prefixes. | |
| const TIFFFaxTabEnt | TIFFFaxWhiteTable [] |
| Decode twelve-bit white-run prefixes. | |
| const TIFFFaxTabEnt | TIFFFaxBlackTable [] |
| Decode thirteen-bit black-run prefixes. | |
Define fax run callbacks generated transitions and decoder state macros.
Definition in file tif_fax3.h.