internal Coder EncodeStart(PpmdProperties properties) { _allocator = properties._allocator; _coder = new Coder(); _coder.RangeEncoderInitialize(); StartModel(properties.ModelOrder, properties.RestorationMethod); return(_coder); }
internal Coder DecodeStart(Stream source, PpmdProperties properties) { _allocator = properties._allocator; _coder = new Coder(); _coder.RangeDecoderInitialize(source); StartModel(properties.ModelOrder, properties.RestorationMethod); _minimumContext = _maximumContext; _numberStatistics = _minimumContext.NumberStatistics; return(_coder); }