Skip to content

Commit 4ff51b9

Browse files
committed
fix
1 parent 3b46ce1 commit 4ff51b9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public partial class JpegEncoderTests
1414
{
1515
private static JpegEncoder JpegEncoder => new();
1616

17-
public static readonly TheoryData<JpegEncodingColor, int, float> NonSubsampledEncodingSetups = new()
1817
private static readonly TheoryData<int> TestQualities = new()
1918
{
2019
40,
@@ -167,7 +166,7 @@ public void EncodeBaseline_WorksWithDiscontiguousBuffers<TPixel>(TestImageProvid
167166
[WithFile(TestImages.Png.BikeGrayscale, nameof(LuminanceEncodingSetups), PixelTypes.L8)]
168167
[WithFile(TestImages.Jpeg.Baseline.Cmyk, nameof(CmykEncodingSetups), PixelTypes.Rgb24)]
169168
[WithFile(TestImages.Jpeg.Baseline.Ycck, nameof(YcckEncodingSetups), PixelTypes.Rgb24)]
170-
public void EncodeProgressive_DefaultNumberOfScans<TPixel>(TestImageProvider<TPixel> provider, JpegEncodingColor colorType, int quality, float tolerance)
169+
public void EncodeProgressive_DefaultNumberOfScans<TPixel>(TestImageProvider<TPixel> provider, JpegColorType colorType, int quality, float tolerance)
171170
where TPixel : unmanaged, IPixel<TPixel>
172171
{
173172
using Image<TPixel> image = provider.GetImage();
@@ -192,7 +191,7 @@ public void EncodeProgressive_DefaultNumberOfScans<TPixel>(TestImageProvider<TPi
192191
[WithFile(TestImages.Png.BikeGrayscale, nameof(LuminanceEncodingSetups), PixelTypes.L8)]
193192
[WithFile(TestImages.Jpeg.Baseline.Cmyk, nameof(CmykEncodingSetups), PixelTypes.Rgb24)]
194193
[WithFile(TestImages.Jpeg.Baseline.Ycck, nameof(YcckEncodingSetups), PixelTypes.Rgb24)]
195-
public void EncodeProgressive_CustomNumberOfScans<TPixel>(TestImageProvider<TPixel> provider, JpegEncodingColor colorType, int quality, float tolerance)
194+
public void EncodeProgressive_CustomNumberOfScans<TPixel>(TestImageProvider<TPixel> provider, JpegColorType colorType, int quality, float tolerance)
196195
where TPixel : unmanaged, IPixel<TPixel>
197196
{
198197
using Image<TPixel> image = provider.GetImage();
@@ -220,9 +219,9 @@ public void EncodeProgressive_CustomNumberOfScans<TPixel>(TestImageProvider<TPix
220219
}
221220

222221
[Theory]
223-
[InlineData(JpegEncodingColor.YCbCrRatio420)]
224-
[InlineData(JpegEncodingColor.YCbCrRatio444)]
225-
public async Task Encode_IsCancellable(JpegEncodingColor colorType)
222+
[InlineData(JpegColorType.YCbCrRatio420)]
223+
[InlineData(JpegColorType.YCbCrRatio444)]
224+
public async Task Encode_IsCancellable(JpegColorType colorType)
226225
{
227226
CancellationTokenSource cts = new();
228227
using PausedStream pausedStream = new(new MemoryStream());

0 commit comments

Comments
 (0)