|
|
|
@ -1,9 +1,11 @@ |
|
|
|
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort |
|
|
|
{ |
|
|
|
using System.IO; |
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using System.IO; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Image decoder for generating an image out of a jpg stream.
|
|
|
|
/// </summary>
|
|
|
|
@ -19,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort |
|
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
|
{ |
|
|
|
Guard.NotNull(stream, nameof(stream)); |
|
|
|
|
|
|
|
|
|
|
|
using (var decoder = new OldJpegDecoderCore(configuration, this)) |
|
|
|
{ |
|
|
|
return decoder.Decode<TPixel>(stream); |
|
|
|
|