MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / makeDecoder

Method makeDecoder

src/librawspeed/decompressors/CrwDecompressor.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72HuffmanTable 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
84CrwDecompressor::crw_hts CrwDecompressor::initHuffTables(uint32_t table) {
85 if (table > 2)

Callers

nothing calls this directly

Calls 4

BufferClass · 0.50
setNCodesPerLengthMethod · 0.45
setCodeValuesMethod · 0.45
setupMethod · 0.45

Tested by

no test coverage detected