MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / BitCode

Class BitCode

extern/toojpeg/toojpeg.cpp:98–105  ·  view source on GitHub ↗

represent a single Huffman code

Source from the content-addressed store, hash-verified

96
97// represent a single Huffman code
98struct 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
108struct BitWriter

Callers 3

flushMethod · 0.85
generateHuffmanTableFunction · 0.85
writeJpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected