Esempio n. 1
0
 internal Coder EncodeStart(PpmdProperties properties)
 {
     Allocator = properties.Allocator;
     Coder     = new Coder();
     Coder.RangeEncoderInitialize();
     StartModel(properties.ModelOrder, properties.ModelRestorationMethod);
     return(Coder);
 }
Esempio n. 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);
 }