|
|
@ -1,4 +1,4 @@ |
|
|
// Copyright (c) Six Labors.
|
|
|
// Copyright (c) Six Labors.
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
|
// <auto-generated />
|
|
|
// <auto-generated />
|
|
|
@ -20,15 +20,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<A8> Operations => A8.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<A8.PixelOperations>(PixelOperations<A8>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = A8.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -40,15 +35,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Argb32> Operations => Argb32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Argb32.PixelOperations>(PixelOperations<Argb32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Argb32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -60,15 +50,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Abgr32> Operations => Abgr32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Abgr32.PixelOperations>(PixelOperations<Abgr32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Abgr32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -80,15 +65,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Bgr24> Operations => Bgr24.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Bgr24.PixelOperations>(PixelOperations<Bgr24>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Bgr24.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -100,15 +80,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Bgr565> Operations => Bgr565.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Bgr565.PixelOperations>(PixelOperations<Bgr565>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Bgr565.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -120,15 +95,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Bgra32> Operations => Bgra32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Bgra32.PixelOperations>(PixelOperations<Bgra32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Bgra32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -140,15 +110,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Bgra4444> Operations => Bgra4444.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Bgra4444.PixelOperations>(PixelOperations<Bgra4444>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Bgra4444.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -160,15 +125,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Bgra5551> Operations => Bgra5551.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Bgra5551.PixelOperations>(PixelOperations<Bgra5551>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Bgra5551.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -180,15 +140,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Byte4> Operations => Byte4.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Byte4.PixelOperations>(PixelOperations<Byte4>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Byte4.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -200,15 +155,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<HalfSingle> Operations => HalfSingle.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<HalfSingle.PixelOperations>(PixelOperations<HalfSingle>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = HalfSingle.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -220,15 +170,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<HalfVector2> Operations => HalfVector2.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<HalfVector2.PixelOperations>(PixelOperations<HalfVector2>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = HalfVector2.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -240,15 +185,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<HalfVector4> Operations => HalfVector4.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<HalfVector4.PixelOperations>(PixelOperations<HalfVector4>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = HalfVector4.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -260,15 +200,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<L16> Operations => L16.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<L16.PixelOperations>(PixelOperations<L16>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = L16.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -280,15 +215,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<L8> Operations => L8.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<L8.PixelOperations>(PixelOperations<L8>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = L8.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -300,15 +230,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<La16> Operations => La16.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<La16.PixelOperations>(PixelOperations<La16>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = La16.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -320,15 +245,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<La32> Operations => La32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<La32.PixelOperations>(PixelOperations<La32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = La32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -340,15 +260,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<NormalizedByte2> Operations => NormalizedByte2.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<NormalizedByte2.PixelOperations>(PixelOperations<NormalizedByte2>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = NormalizedByte2.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -360,15 +275,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<NormalizedByte4> Operations => NormalizedByte4.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<NormalizedByte4.PixelOperations>(PixelOperations<NormalizedByte4>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = NormalizedByte4.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -380,15 +290,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<NormalizedShort2> Operations => NormalizedShort2.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<NormalizedShort2.PixelOperations>(PixelOperations<NormalizedShort2>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = NormalizedShort2.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -400,15 +305,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<NormalizedShort4> Operations => NormalizedShort4.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<NormalizedShort4.PixelOperations>(PixelOperations<NormalizedShort4>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = NormalizedShort4.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -420,15 +320,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rg32> Operations => Rg32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rg32.PixelOperations>(PixelOperations<Rg32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rg32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -440,15 +335,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rgb24> Operations => Rgb24.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rgb24.PixelOperations>(PixelOperations<Rgb24>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rgb24.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -460,15 +350,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rgb48> Operations => Rgb48.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rgb48.PixelOperations>(PixelOperations<Rgb48>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rgb48.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -480,15 +365,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rgba1010102> Operations => Rgba1010102.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rgba1010102.PixelOperations>(PixelOperations<Rgba1010102>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rgba1010102.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -500,15 +380,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rgba32> Operations => Rgba32.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rgba32.PixelOperations>(PixelOperations<Rgba32>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rgba32.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -520,15 +395,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Rgba64> Operations => Rgba64.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Rgba64.PixelOperations>(PixelOperations<Rgba64>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Rgba64.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -540,15 +410,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<RgbaVector> Operations => RgbaVector.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<RgbaVector.PixelOperations>(PixelOperations<RgbaVector>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = RgbaVector.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -560,15 +425,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Short2> Operations => Short2.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Short2.PixelOperations>(PixelOperations<Short2>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Short2.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.None, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -580,15 +440,10 @@ public partial class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected override PixelOperations<Short4> Operations => Short4.PixelOperations.Instance; |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void IsSpecialImplementation() => Assert.IsType<Short4.PixelOperations>(PixelOperations<Short4>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
public void PixelTypeInfoHasCorrectAlphaRepresentation() |
|
|
{ |
|
|
{ |
|
|
var alphaRepresentation = this.Operations.GetPixelTypeInfo().AlphaRepresentation; |
|
|
var alphaRepresentation = Short4.GetPixelTypeInfo().AlphaRepresentation; |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
Assert.Equal(PixelAlphaRepresentation.Unassociated, alphaRepresentation); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|