コード例 #1
0
 internal Coder EncodeStart(PpmdProperties properties)
 {
     Allocator = properties.Allocator;
     Coder     = new Coder();
     Coder.RangeEncoderInitialize();
     StartModel(properties.ModelOrder, properties.ModelRestorationMethod);
     return(Coder);
 }
コード例 #2
0
 internal Coder DecodeStart(Stream source, PpmdProperties properties)
 {
     Allocator = properties.Allocator;
     Coder     = new Coder();
     Coder.RangeDecoderInitialize(source);
     StartModel(properties.ModelOrder, properties.ModelRestorationMethod);
     minimumContext   = maximumContext;
     numberStatistics = minimumContext.NumberStatistics;
     return(Coder);
 }
コード例 #3
0
ファイル: Model.cs プロジェクト: yaozd/sharpcompress
 internal Coder DecodeStart(Stream source, PpmdProperties properties)
 {
     Allocator = properties.Allocator;
     Coder = new Coder();
     Coder.RangeDecoderInitialize(source);
     StartModel(properties.ModelOrder, properties.ModelRestorationMethod);
     minimumContext = maximumContext;
     numberStatistics = minimumContext.NumberStatistics;
     return Coder;
 }
コード例 #4
0
ファイル: Model.cs プロジェクト: yaozd/sharpcompress
 internal Coder EncodeStart(PpmdProperties properties)
 {
     Allocator = properties.Allocator;
     Coder = new Coder();
     Coder.RangeEncoderInitialize();
     StartModel(properties.ModelOrder, properties.ModelRestorationMethod);
     return Coder;
 }