|
1 | 1 | // Copyright (c) Six Labors.
|
2 | 2 | // Licensed under the Six Labors Split License.
|
3 | 3 |
|
4 |
| -using System.Runtime.InteropServices; |
5 | 4 | using System.Runtime.Intrinsics.X86;
|
6 | 5 | using Microsoft.DotNet.RemoteExecutor;
|
7 | 6 | using SixLabors.ImageSharp.Formats;
|
@@ -724,7 +723,7 @@ public void TgaDecoder_CanDecode_WhenAlphaBitsNotSet<TPixel>(TestImageProvider<T
|
724 | 723 | {
|
725 | 724 | using (Image<TPixel> image = provider.GetImage(TgaDecoder.Instance))
|
726 | 725 | {
|
727 |
| - // Using here the reference output instead of the the reference decoder, |
| 726 | + // Using here the reference output instead of the reference decoder, |
728 | 727 | // because the reference decoder does not ignore the alpha data here.
|
729 | 728 | image.DebugSave(provider);
|
730 | 729 | image.CompareToReferenceOutput(ImageComparer.Exact, provider);
|
@@ -771,6 +770,19 @@ public void TgaDecoder_Decode_Resize<TPixel>(TestImageProvider<TPixel> provider)
|
771 | 770 | appendPixelTypeToFileName: false);
|
772 | 771 | }
|
773 | 772 |
|
| 773 | + // https://github.com/SixLabors/ImageSharp/issues/2629 |
| 774 | + [Theory] |
| 775 | + [WithFile(Issue2629, PixelTypes.Rgba32)] |
| 776 | + public void TgaDecoder_CanDecode_Issue2629<TPixel>(TestImageProvider<TPixel> provider) |
| 777 | + where TPixel : unmanaged, IPixel<TPixel> |
| 778 | + { |
| 779 | + using (Image<TPixel> image = provider.GetImage(TgaDecoder.Instance)) |
| 780 | + { |
| 781 | + image.DebugSave(provider); |
| 782 | + ImageComparingUtils.CompareWithReferenceDecoder(provider, image); |
| 783 | + } |
| 784 | + } |
| 785 | + |
774 | 786 | [Theory]
|
775 | 787 | [WithFile(Bit16BottomLeft, PixelTypes.Rgba32)]
|
776 | 788 | [WithFile(Bit24BottomLeft, PixelTypes.Rgba32)]
|
|
0 commit comments