| 70 | } |
| 71 | |
| 72 | HuffmanTable CrwDecompressor::makeDecoder(const uint8_t* ncpl, |
| 73 | const uint8_t* values) { |
| 74 | assert(ncpl); |
| 75 | |
| 76 | HuffmanTable ht; |
| 77 | auto count = ht.setNCodesPerLength(Buffer(ncpl, 16)); |
| 78 | ht.setCodeValues(Buffer(values, count)); |
| 79 | ht.setup(/*fullDecode_=*/false, false); |
| 80 | |
| 81 | return ht; |
| 82 | } |
| 83 | |
| 84 | CrwDecompressor::crw_hts CrwDecompressor::initHuffTables(uint32_t table) { |
| 85 | if (table > 2) |
nothing calls this directly
no test coverage detected