Пример #1
0
 public HuffmanEncoder(int bitDepth, IHuffmanTreeBuilder treeBuilder, NibbleOrder nibbleOrder = NibbleOrder.LowNibbleFirst)
 {
     _bitDepth = bitDepth;
     _encoder  = new HuffmanHeaderlessEncoder(bitDepth, nibbleOrder, treeBuilder);
 }
Пример #2
0
 public HuffmanEncoder(int bitDepth, NibbleOrder nibbleOrder)
 {
     _bitDepth = bitDepth;
     _encoder  = new HuffmanHeaderlessEncoder(bitDepth, nibbleOrder);
 }
Пример #3
0
        public HuffmanDecoder(int bitDepth, NibbleOrder nibbleOrder)
        {
            _bitDepth = bitDepth;

            _decoder = new HuffmanHeaderlessDecoder(bitDepth, nibbleOrder);
        }
Пример #4
0
 public HuffmanHeaderlessEncoder(int bitDepth, NibbleOrder nibbleOrder)
 {
     _bitDepth    = bitDepth;
     _nibbleOrder = nibbleOrder;
 }