FluxJpeg.Core.Decoder.JpegComponent.DecodeDCFirst C# (CSharp) Method

DecodeDCFirst() public method

public DecodeDCFirst ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
return void
        public void DecodeDCFirst(JPEGBinaryReader stream, float[] dest)
        {
            float[] datablock = new float[64];
            int s = DCTable.Decode(stream);
            int r = stream.ReadBits(s);
            s = HuffmanTable.Extend(r, s);
            s = (int)previousDC + s;
            previousDC = s;

            dest[0] = s << successiveLow;
        }