DS_HuffmanEncodingTreeNode.h 680 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. /// \file
  11. /// \brief \b [Internal] A single node in the Huffman Encoding Tree.
  12. ///
  13. #ifndef __HUFFMAN_ENCODING_TREE_NODE
  14. #define __HUFFMAN_ENCODING_TREE_NODE
  15. struct HuffmanEncodingTreeNode
  16. {
  17. unsigned char value;
  18. unsigned weight;
  19. HuffmanEncodingTreeNode *left;
  20. HuffmanEncodingTreeNode *right;
  21. HuffmanEncodingTreeNode *parent;
  22. };
  23. #endif
粤ICP备19079148号