Searched refs:HuffmanNodePtr (Results 1 – 4 of 4) sorted by relevance
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | huffman_encode.h | 46 using HuffmanNodePtr = HuffmanNode *; variable 50 …bool operator()(const HuffmanNodePtr &c1, const HuffmanNodePtr &c2) const { return c1->freq > c2->… in operator() 52 using HuffmanPriorityQueue = std::priority_queue<HuffmanNodePtr, std::vector<HuffmanNodePtr>, cmp>; 66 std::vector<HuffmanNodePtr> huffman_nodes_; 70 void GenerateHuffmanTable(HuffmanNodePtr node, bool is_left_node);
|
D | huffman_encode.cc | 113 void HuffmanEncode::GenerateHuffmanTable(const HuffmanNodePtr node, bool is_left_node) { in GenerateHuffmanTable() 135 HuffmanNodePtr root = nullptr; in BuildHuffmanTree() 137 HuffmanNodePtr first = pq->top(); in BuildHuffmanTree() 143 HuffmanNodePtr second = pq->top(); in BuildHuffmanTree()
|
/third_party/mindspore/mindspore/lite/src/ |
D | huffman_decode.h | 41 using HuffmanNodePtr = HuffmanNode *; variable 52 static void FreeHuffmanNodeTree(HuffmanNodePtr root); 54 static STATUS RebuildHuffmanTree(std::string key, std::string code, const HuffmanNodePtr &root); 56 …static STATUS DoHuffmanDecompress(HuffmanNodePtr root, std::string encoded_data, std::string *deco…
|
D | huffman_decode.cc | 70 STATUS HuffmanDecode::RebuildHuffmanTree(std::string keys, std::string codes, const HuffmanNodePtr … in RebuildHuffmanTree() 71 HuffmanNodePtr cur_node, tmp_node, new_node; in RebuildHuffmanTree() 126 STATUS HuffmanDecode::DoHuffmanDecompress(HuffmanNodePtr root, std::string encoded_data, std::strin… in DoHuffmanDecompress() 127 HuffmanNodePtr cur_node = root; in DoHuffmanDecompress() 162 void HuffmanDecode::FreeHuffmanNodeTree(HuffmanNodePtr root) { in FreeHuffmanNodeTree() 166 std::queue<HuffmanNodePtr> node_queue; in FreeHuffmanNodeTree()
|