Exemple #1
0
 public Cjpeg(Cjpeg prev)
 {
     app0 = new APP0(prev.app0);
     dqt = new DQT(prev.dqt);
     dht = new DHT(prev.dht);
     sof = new SOF0(prev.sof);
     sos = new SOS(prev.sos);
     cb = new CBlock(prev.cb);
 }
Exemple #2
0
        public DQT(DQT prev)
        {
            id = new byte[prev.id.Length];
            prev.id.CopyTo(id, 0);
            head_length = prev.head_length;
            num_color = prev.num_color;
            t_size = prev.t_size;

            table = new byte[num_color][];
            for (int i = 0; i < num_color; i++)
            {
                table[i] = new byte[64];
                prev.table[i].CopyTo(table[i], 0);
            }
        }