类 HuffmanEncoder

java.lang.Object
com.google.typography.font.tools.conversion.eot.HuffmanEncoder

public class HuffmanEncoder extends Object
Adaptive huffman coder for LZCOMP compression algorithm
作者:
Raph Levien
  • 字段详细资料

    • ROOT

      private static final int ROOT
      另请参阅:
    • tree

      private HuffmanEncoder.TreeNode[] tree
    • symbolIndex

      private short[] symbolIndex
    • bitCount2

      private int bitCount2
    • range

      private int range
    • bits

      private BitIOWriter bits
  • 构造器详细资料

    • HuffmanEncoder

      public HuffmanEncoder(BitIOWriter bits, int range)
  • 方法详细资料

    • checkTree

      String checkTree()
    • initWeight

      private int initWeight(int a)
    • updateWeight

      private void updateWeight(int a)
    • swapNodes

      private void swapNodes(int a, int b)
    • writeSymbolCost

      public int writeSymbolCost(int symbol)
    • writeSymbol

      public void writeSymbol(int symbol)
    • bitsUsed

      public static int bitsUsed(int x)