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; }
public StandardHuffmanDecoderOutput(IDecoderFileWriter decoderFileWriter, int symbolsCount) { this.decoderFileWriter = decoderFileWriter; this.symbolsCount = symbolsCount; }
public PairHuffmanDecoderOutput(IDecoderFileWriter decoderFileWriter, int symbolsCount, bool isByteCountEven) { this.decoderFileWriter = decoderFileWriter; this.symbolsCount = symbolsCount; this.isByteCountEven = isByteCountEven; }
public StandardHuffmanDecoderInterface(IDecoderReader decoderReader, IDecoderFileWriter decoderFileWriter) { this.decoderReader = decoderReader; this.decoderFileWriter = decoderFileWriter; this.symbolQuantityDic = SymbolQuantityMapConverter.StandardExtToIntConvert(decoderReader.SymbolCounts); }