|
|
|
@ -19,6 +19,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public A8_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = A8.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -44,6 +46,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Argb32_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Argb32.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -69,6 +73,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Bgr24_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Bgr24.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -94,6 +100,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Bgr565_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Bgr565.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -119,6 +127,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Bgra32_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Bgra32.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -144,6 +154,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Bgra4444_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Bgra4444.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -169,6 +181,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Bgra5551_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Bgra5551.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -194,6 +208,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Byte4_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Byte4.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -219,6 +235,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public HalfSingle_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = HalfSingle.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -244,6 +262,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public HalfVector2_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = HalfVector2.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -269,6 +289,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public HalfVector4_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = HalfVector4.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -294,6 +316,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public L16_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = L16.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -319,6 +343,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public L8_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = L8.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -344,6 +370,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public La16_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = La16.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -369,6 +397,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public La32_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = La32.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -394,6 +424,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public NormalizedByte2_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = NormalizedByte2.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -419,6 +451,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public NormalizedByte4_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = NormalizedByte4.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -444,6 +478,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public NormalizedShort2_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = NormalizedShort2.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -469,6 +505,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public NormalizedShort4_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = NormalizedShort4.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -494,6 +532,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rg32_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rg32.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -519,6 +559,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rgb24_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rgb24.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -544,6 +586,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rgb48_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rgb48.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -569,6 +613,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rgba1010102_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rgba1010102.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -594,6 +640,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rgba32_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rgba32.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -619,6 +667,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Rgba64_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Rgba64.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -644,6 +694,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public RgbaVector_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = RgbaVector.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -669,6 +721,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Short2_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Short2.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -694,6 +748,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
public Short4_OperationsTests(ITestOutputHelper output) |
|
|
|
: base(output) |
|
|
|
{ |
|
|
|
var alphaRepresentation = Short4.PixelOperations.Instance.GetPixelTypeInfo().AlphaRepresentation; |
|
|
|
this.HasUnassociatedAlpha = alphaRepresentation == PixelAlphaRepresentation.Unassociated; |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
|