@@ -14,7 +14,6 @@ public partial class JpegEncoderTests
14
14
{
15
15
private static JpegEncoder JpegEncoder => new ( ) ;
16
16
17
- public static readonly TheoryData < JpegEncodingColor , int , float > NonSubsampledEncodingSetups = new ( )
18
17
private static readonly TheoryData < int > TestQualities = new ( )
19
18
{
20
19
40 ,
@@ -167,7 +166,7 @@ public void EncodeBaseline_WorksWithDiscontiguousBuffers<TPixel>(TestImageProvid
167
166
[ WithFile ( TestImages . Png . BikeGrayscale , nameof ( LuminanceEncodingSetups ) , PixelTypes . L8 ) ]
168
167
[ WithFile ( TestImages . Jpeg . Baseline . Cmyk , nameof ( CmykEncodingSetups ) , PixelTypes . Rgb24 ) ]
169
168
[ 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 )
171
170
where TPixel : unmanaged, IPixel < TPixel >
172
171
{
173
172
using Image < TPixel > image = provider . GetImage ( ) ;
@@ -192,7 +191,7 @@ public void EncodeProgressive_DefaultNumberOfScans<TPixel>(TestImageProvider<TPi
192
191
[ WithFile ( TestImages . Png . BikeGrayscale , nameof ( LuminanceEncodingSetups ) , PixelTypes . L8 ) ]
193
192
[ WithFile ( TestImages . Jpeg . Baseline . Cmyk , nameof ( CmykEncodingSetups ) , PixelTypes . Rgb24 ) ]
194
193
[ 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 )
196
195
where TPixel : unmanaged, IPixel < TPixel >
197
196
{
198
197
using Image < TPixel > image = provider . GetImage ( ) ;
@@ -220,9 +219,9 @@ public void EncodeProgressive_CustomNumberOfScans<TPixel>(TestImageProvider<TPix
220
219
}
221
220
222
221
[ 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 )
226
225
{
227
226
CancellationTokenSource cts = new ( ) ;
228
227
using PausedStream pausedStream = new ( new MemoryStream ( ) ) ;
0 commit comments