Browse Source
Merge branch 'master' into js/affine-transforms
pull/386/head
James Jackson-South
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
6 additions and
2 deletions
-
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/OrigJpegScanDecoder.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
-
tests/ImageSharp.Tests/TestImages.cs
-
tests/Images/External
-
BIN
tests/Images/Input/Jpg/issues/Issue385-BadZigZag-Progressive.jpg
|
|
|
@ -583,7 +583,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder |
|
|
|
} |
|
|
|
|
|
|
|
zig = this.RefineNonZeroes(ref bp, zig, val0, delta); |
|
|
|
if (bp.ReachedEOF) |
|
|
|
|
|
|
|
if (bp.ReachedEOF || bp.HasError) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -50,6 +50,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
TestImages.Jpeg.Progressive.Festzug, TestImages.Jpeg.Progressive.Bad.BadEOF, |
|
|
|
TestImages.Jpeg.Issues.BadCoeffsProgressive178, |
|
|
|
TestImages.Jpeg.Issues.MissingFF00ProgressiveGirl159, |
|
|
|
TestImages.Jpeg.Issues.BadZigZagProgressive385 |
|
|
|
}; |
|
|
|
|
|
|
|
private static readonly Dictionary<string, float> CustomToleranceValues = new Dictionary<string, float> |
|
|
|
@ -67,6 +68,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
[TestImages.Jpeg.Progressive.Festzug] = 0.02f / 100, |
|
|
|
[TestImages.Jpeg.Progressive.Fb] = 0.16f / 100, |
|
|
|
[TestImages.Jpeg.Progressive.Progress] = 0.31f / 100, |
|
|
|
[TestImages.Jpeg.Issues.BadZigZagProgressive385] = 0.23f / 100, |
|
|
|
}; |
|
|
|
|
|
|
|
public const PixelTypes CommonNonDefaultPixelTypes = PixelTypes.Rgba32 | PixelTypes.Argb32 | PixelTypes.RgbaVector; |
|
|
|
|
|
|
|
@ -122,6 +122,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
public const string CriticalEOF214 = "Jpg/issues/Issue214-CriticalEOF.jpg"; |
|
|
|
public const string MissingFF00ProgressiveGirl159 = "Jpg/issues/Issue159-MissingFF00-Progressive-Girl.jpg"; |
|
|
|
public const string BadCoeffsProgressive178 = "Jpg/issues/Issue178-BadCoeffsProgressive-Lemon.jpg"; |
|
|
|
public const string BadZigZagProgressive385 = "Jpg/issues/Issue385-BadZigZag-Progressive.jpg"; |
|
|
|
} |
|
|
|
|
|
|
|
public static readonly string[] All = Baseline.All.Concat(Progressive.All).ToArray(); |
|
|
|
|
|
|
|
@ -1 +1 @@ |
|
|
|
Subproject commit f99c2ea41419cb3b3e80e5beeab611682252df78 |
|
|
|
Subproject commit ab7c90362a4881c790c6f264f400dcf4b4dea0ce |
Width:
|
Height:
|
Size: 379 KiB
|