FluxJpeg.Core.Decoder.JpegDecoder.JpegDecoder C# (CSharp) Method

JpegDecoder() public method

public JpegDecoder ( Stream input ) : System
input Stream
return System
        public JpegDecoder(Stream input)
        {
            jpegReader = new JPEGBinaryReader(input);

            if (jpegReader.GetNextMarker() != JPEGMarker.SOI)
                throw new Exception("Failed to find SOI marker.");
        }