@@ -200,11 +200,7 @@ public void TiffDecoder_CanDecode_12Bit_WithUnassociatedAlpha<TPixel>(TestImageP
200
200
[ Theory ]
201
201
[ WithFile ( Rgba3BitAssociatedAlpha , PixelTypes . Rgba32 ) ]
202
202
public void TiffDecoder_CanDecode_12Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
203
- where TPixel : unmanaged, IPixel < TPixel >
204
- {
205
-
206
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.264F ) ;
207
- }
203
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.264F ) ;
208
204
209
205
[ Theory ]
210
206
[ WithFile ( Flower14BitGray , PixelTypes . Rgba32 ) ]
@@ -249,11 +245,7 @@ public void TiffDecoder_CanDecode_20Bit_WithUnassociatedAlpha<TPixel>(TestImageP
249
245
[ WithFile ( Rgba5BitAssociatedAlpha , PixelTypes . Rgba32 ) ]
250
246
public void TiffDecoder_CanDecode_20Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
251
247
252
- where TPixel : unmanaged, IPixel < TPixel >
253
- {
254
-
255
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.376F ) ;
256
- }
248
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.376F ) ;
257
249
258
250
[ Theory ]
259
251
[ WithFile ( FlowerRgb888Contiguous , PixelTypes . Rgba32 ) ]
@@ -268,11 +260,7 @@ public void TiffDecoder_CanDecode_24Bit_WithUnassociatedAlpha<TPixel>(TestImageP
268
260
[ Theory ]
269
261
[ WithFile ( Rgba6BitAssociatedAlpha , PixelTypes . Rgba32 ) ]
270
262
public void TiffDecoder_CanDecode_24Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
271
- where TPixel : unmanaged, IPixel < TPixel >
272
- {
273
-
274
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.405F ) ;
275
- }
263
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.405F ) ;
276
264
277
265
[ Theory ]
278
266
[ WithFile ( Flower24BitGray , PixelTypes . Rgba32 ) ]
@@ -362,12 +350,8 @@ public void TiffDecoder_CanDecode_32Bit_WithUnassociatedAlpha<TPixel>(TestImageP
362
350
[ Theory ]
363
351
[ WithFile ( Rgba8BitAssociatedAlpha , PixelTypes . Rgba32 ) ]
364
352
public void TiffDecoder_CanDecode_32Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
365
- where TPixel : unmanaged, IPixel < TPixel >
366
- {
367
-
368
353
// Note: Using tolerant comparer here, because there is a small difference to the reference decoder probably due to floating point rounding issues.
369
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.004F ) ;
370
- }
354
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.004F ) ;
371
355
372
356
[ Theory ]
373
357
[ WithFile ( Flower32BitGrayPredictorBigEndian , PixelTypes . Rgba32 ) ]
@@ -395,11 +379,7 @@ public void TiffDecoder_CanDecode_40Bit_WithUnassociatedAlpha<TPixel>(TestImageP
395
379
[ WithFile ( Rgba10BitAssociatedAlphaBigEndian , PixelTypes . Rgba32 ) ]
396
380
[ WithFile ( Rgba10BitAssociatedAlphaLittleEndian , PixelTypes . Rgba32 ) ]
397
381
public void TiffDecoder_CanDecode_40Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
398
- where TPixel : unmanaged, IPixel < TPixel >
399
- {
400
-
401
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.247F ) ;
402
- }
382
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.247F ) ;
403
383
404
384
[ Theory ]
405
385
[ WithFile ( FlowerRgb141414Contiguous , PixelTypes . Rgba32 ) ]
@@ -426,11 +406,7 @@ public void TiffDecoder_CanDecode_48Bit_WithUnassociatedAlpha<TPixel>(TestImageP
426
406
[ WithFile ( Rgba12BitAssociatedAlphaBigEndian , PixelTypes . Rgba32 ) ]
427
407
[ WithFile ( Rgba12BitAssociatedAlphaLittleEndian , PixelTypes . Rgba32 ) ]
428
408
public void TiffDecoder_CanDecode_48Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
429
- where TPixel : unmanaged, IPixel < TPixel >
430
- {
431
-
432
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.118F ) ;
433
- }
409
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.118F ) ;
434
410
435
411
[ Theory ]
436
412
[ WithFile ( FlowerRgb161616PredictorBigEndian , PixelTypes . Rgba32 ) ]
@@ -448,11 +424,7 @@ public void TiffDecoder_CanDecode_56Bit_WithUnassociatedAlpha<TPixel>(TestImageP
448
424
[ WithFile ( Rgba14BitAssociatedAlphaBigEndian , PixelTypes . Rgba32 ) ]
449
425
[ WithFile ( Rgba14BitAssociatedAlphaLittleEndian , PixelTypes . Rgba32 ) ]
450
426
public void TiffDecoder_CanDecode_56Bit_WithAssociatedAlpha < TPixel > ( TestImageProvider < TPixel > provider )
451
- where TPixel : unmanaged, IPixel < TPixel >
452
- {
453
-
454
- TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.075F ) ;
455
- }
427
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider , useExactComparer : false , compareTolerance : 0.075F ) ;
456
428
457
429
[ Theory ]
458
430
[ WithFile ( FlowerRgb242424Contiguous , PixelTypes . Rgba32 ) ]
@@ -686,6 +658,12 @@ public void TiffDecoder_ThrowsException_WithTooManyDirectories<TPixel>(TestImage
686
658
public void TiffDecoder_CanDecode_Fax4CompressedWithStrips < TPixel > ( TestImageProvider < TPixel > provider )
687
659
where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider ) ;
688
660
661
+ // https://github.com/SixLabors/ImageSharp/issues/2435
662
+ [ Theory ]
663
+ [ WithFile ( Issues2435 , PixelTypes . Rgba32 ) ]
664
+ public void TiffDecoder_CanDecode_TiledWithNonEqualWidthAndHeight < TPixel > ( TestImageProvider < TPixel > provider )
665
+ where TPixel : unmanaged, IPixel < TPixel > => TestTiffDecoder ( provider ) ;
666
+
689
667
[ Theory ]
690
668
[ WithFileCollection ( nameof ( MultiframeTestImages ) , PixelTypes . Rgba32 ) ]
691
669
public void DecodeMultiframe < TPixel > ( TestImageProvider < TPixel > provider )
0 commit comments