Пример #1
0
 private void InitDecompression()
 {
     this.inputManager      = new InputManager();
     this.golombCodeDecoder = new GolombCodeDecoder(this.inputManager);
     this.bitsGenerator0    = new BitsGenerator(this.golombCodeDecoder, 0);
     this.bitsGenerator1    = new BitsGenerator(this.golombCodeDecoder, 1);
     this.bitsGenerator2    = new BitsGenerator(this.golombCodeDecoder, 2);
     this.bitsGenerator3    = new BitsGenerator(this.golombCodeDecoder, 3);
     this.bitsGenerator4    = new BitsGenerator(this.golombCodeDecoder, 4);
     this.bitsGenerator5    = new BitsGenerator(this.golombCodeDecoder, 5);
     this.bitsGenerator6    = new BitsGenerator(this.golombCodeDecoder, 6);
     this.bitsGenerator7    = new BitsGenerator(this.golombCodeDecoder, 7);
     this.probabilityEstimationModuleDecompression = new ProbabilityEstimationModuleDecompression(this.bitsGenerator0, this.bitsGenerator1, this.bitsGenerator2, this.bitsGenerator3, this.bitsGenerator4, this.bitsGenerator5, this.bitsGenerator6, this.bitsGenerator7);
     this.contextModelDecompression = new ContextModelDecompression(this.probabilityEstimationModuleDecompression);
     this.outputLogic = new OutputLogic(this.contextModelDecompression);
 }
Пример #2
0
 public BitsGenerator(GolombCodeDecoder associatedGCD, byte code)
 {
     this.gcd     = associatedGCD;
     this.codeNum = code;
 }