public PairHuffmanDecoderInterface(IDecoderReader decoderReader, IDecoderFileWriter decoderFileWriter, bool isByteCountEven)
 {
     this.decoderReader     = decoderReader;
     this.decoderFileWriter = decoderFileWriter;
     this.symbolQuantityDic = SymbolQuantityMapConverter.PairExtToIntConvert(decoderReader.SymbolCounts);
     this.isByteCountEven   = isByteCountEven;
 }
 public MarkowHuffmanDecoderInterface(IDecoderReader decoderReader, IDecoderFileWriter decoderFileWriter)
 {
     this.decoderReader       = decoderReader;
     this.decoderFileWriter   = decoderFileWriter;
     this.perSymbolDictionary = SymbolQuantityMapConverter.MarkowExtToIntConvert(decoderReader.SymbolCounts);
     foreach (DefaultableSymbol <byte> key in perSymbolDictionary.Keys)
     {
         this.symbolsCount += perSymbolDictionary[key].Sum(x => x.Value);
     }
 }
 public MarkowHuffmanDecoderOutput(IDecoderFileWriter decoderFileWriter)
 {
     this.decoderFileWriter = decoderFileWriter;
 }
예제 #4
0
 public StandardHuffmanDecoderOutput(IDecoderFileWriter decoderFileWriter, int symbolsCount)
 {
     this.decoderFileWriter = decoderFileWriter;
     this.symbolsCount      = symbolsCount;
 }
예제 #5
0
 public PairHuffmanDecoderOutput(IDecoderFileWriter decoderFileWriter, int symbolsCount, bool isByteCountEven)
 {
     this.decoderFileWriter = decoderFileWriter;
     this.symbolsCount      = symbolsCount;
     this.isByteCountEven   = isByteCountEven;
 }
예제 #6
0
 public StandardHuffmanDecoderInterface(IDecoderReader decoderReader, IDecoderFileWriter decoderFileWriter)
 {
     this.decoderReader     = decoderReader;
     this.decoderFileWriter = decoderFileWriter;
     this.symbolQuantityDic = SymbolQuantityMapConverter.StandardExtToIntConvert(decoderReader.SymbolCounts);
 }