Пример #1
0
        private void ProceedResult()
        {
            var rle = Lab1.RLE(_bytes);

            lblRLE.Text = Utils.GetCompressPercentage(_bytes, rle);
            var lz77 = Lab1.LZ77(_bytes);
            //lblLZ77.Text = Utils.GetCompressPercentage(_bytes, lz77);
            var hc = Lab1.HuffmanCode(_bytes);
            //lblHC.Text = Utils.GetCompressPercentage(_bytes, hc);
        }
Пример #2
0
 public void Lab1Test()
 {
     var bytes      = File.ReadAllBytes(@"C:\Repos\Simple_compression_algorithms\Simple_compression_algorithms\Simple_compression_algorithms\Resources\house_1.ppm");
     var compressed = Lab1.LZ77(bytes);
 }