represent a single Huffman code
| 96 | |
| 97 | // represent a single Huffman code |
| 98 | struct BitCode |
| 99 | { |
| 100 | BitCode() = default; // undefined state, must be initialized at a later time |
| 101 | BitCode(uint16_t code_, uint8_t numBits_) |
| 102 | : code(code_), numBits(numBits_) {} |
| 103 | uint16_t code; // JPEG's Huffman codes are limited to 16 bits |
| 104 | uint8_t numBits; // number of valid bits |
| 105 | }; |
| 106 | |
| 107 | // wrapper for bit output operations |
| 108 | struct BitWriter |
no outgoing calls
no test coverage detected