Browse Source
Merge branch 'master' into dl/remove-duplicate
af/merge-core
Anton Firsov
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with
466 additions and
517 deletions
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Argb32.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Argb32.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Bgr24.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Bgr24.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Bgra32.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Bgra32.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Gray16.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Gray16.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Gray8.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Gray8.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgb24.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgb24.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgb48.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgb48.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgba32.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgba32.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgba64.PixelOperations.Generated.cs
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/Rgba64.PixelOperations.Generated.tt
-
src/ImageSharp/PixelFormats/PixelImplementations/Generated/_Common.ttinclude
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Argb32> |
|
|
internal class PixelOperations : PixelOperations<Argb32> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromArgb32(Configuration configuration, ReadOnlySpan<Argb32> source, Span<Argb32> destPixels) |
|
|
internal override void FromArgb32(Configuration configuration, ReadOnlySpan<Argb32> source, Span<Argb32> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -42,7 +41,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Argb32> destPixels) |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Argb32> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -237,7 +235,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromArgb32(sp); |
|
|
dp.FromArgb32(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Argb32> |
|
|
internal class PixelOperations : PixelOperations<Argb32> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Argb32"); #> |
|
|
GenerateAllDefaultConversionMethods("Argb32"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Bgr24> |
|
|
internal class PixelOperations : PixelOperations<Bgr24> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromBgr24(Configuration configuration, ReadOnlySpan<Bgr24> source, Span<Bgr24> destPixels) |
|
|
internal override void FromBgr24(Configuration configuration, ReadOnlySpan<Bgr24> source, Span<Bgr24> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -42,7 +41,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Bgr24> destPixels) |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Bgr24> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -211,7 +209,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromBgr24(sp); |
|
|
dp.FromBgr24(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Bgr24> |
|
|
internal class PixelOperations : PixelOperations<Bgr24> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Bgr24"); #> |
|
|
GenerateAllDefaultConversionMethods("Bgr24"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Bgra32> |
|
|
internal class PixelOperations : PixelOperations<Bgra32> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromBgra32(Configuration configuration, ReadOnlySpan<Bgra32> source, Span<Bgra32> destPixels) |
|
|
internal override void FromBgra32(Configuration configuration, ReadOnlySpan<Bgra32> source, Span<Bgra32> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -42,7 +41,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Bgra32> destPixels) |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Bgra32> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -237,7 +235,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromBgra32(sp); |
|
|
dp.FromBgra32(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Bgra32> |
|
|
internal class PixelOperations : PixelOperations<Bgra32> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Bgra32"); #> |
|
|
GenerateAllDefaultConversionMethods("Bgra32"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Gray16> |
|
|
internal class PixelOperations : PixelOperations<Gray16> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromGray16(Configuration configuration, ReadOnlySpan<Gray16> source, Span<Gray16> destPixels) |
|
|
internal override void FromGray16(Configuration configuration, ReadOnlySpan<Gray16> source, Span<Gray16> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -186,7 +185,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromGray16(sp); |
|
|
dp.FromGray16(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Gray16> |
|
|
internal class PixelOperations : PixelOperations<Gray16> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Gray16"); #> |
|
|
GenerateAllDefaultConversionMethods("Gray16"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Gray8> |
|
|
internal class PixelOperations : PixelOperations<Gray8> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromGray8(Configuration configuration, ReadOnlySpan<Gray8> source, Span<Gray8> destPixels) |
|
|
internal override void FromGray8(Configuration configuration, ReadOnlySpan<Gray8> source, Span<Gray8> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -186,7 +185,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromGray8(sp); |
|
|
dp.FromGray8(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Gray8> |
|
|
internal class PixelOperations : PixelOperations<Gray8> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Gray8"); #> |
|
|
GenerateAllDefaultConversionMethods("Gray8"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Rgb24> |
|
|
internal class PixelOperations : PixelOperations<Rgb24> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromRgb24(Configuration configuration, ReadOnlySpan<Rgb24> source, Span<Rgb24> destPixels) |
|
|
internal override void FromRgb24(Configuration configuration, ReadOnlySpan<Rgb24> source, Span<Rgb24> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -42,7 +41,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
sourcePixels.CopyTo(destPixels); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Rgb24> destPixels) |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<Rgb24> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -211,7 +209,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromRgb24(sp); |
|
|
dp.FromRgb24(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Rgb24> |
|
|
internal class PixelOperations : PixelOperations<Rgb24> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Rgb24"); #> |
|
|
GenerateAllDefaultConversionMethods("Rgb24"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Rgb48> |
|
|
internal class PixelOperations : PixelOperations<Rgb48> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromRgb48(Configuration configuration, ReadOnlySpan<Rgb48> source, Span<Rgb48> destPixels) |
|
|
internal override void FromRgb48(Configuration configuration, ReadOnlySpan<Rgb48> source, Span<Rgb48> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -186,7 +185,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromRgb48(sp); |
|
|
dp.FromRgb48(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Rgb48> |
|
|
internal class PixelOperations : PixelOperations<Rgb48> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Rgb48"); #> |
|
|
GenerateAllDefaultConversionMethods("Rgb48"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal partial class PixelOperations : PixelOperations<Rgba32> |
|
|
internal partial class PixelOperations : PixelOperations<Rgba32> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromRgba32(Configuration configuration, ReadOnlySpan<Rgba32> source, Span<Rgba32> destPixels) |
|
|
internal override void FromRgba32(Configuration configuration, ReadOnlySpan<Rgba32> source, Span<Rgba32> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -212,7 +211,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromRgba32(sp); |
|
|
dp.FromRgba32(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal partial class PixelOperations : PixelOperations<Rgba32> |
|
|
internal partial class PixelOperations : PixelOperations<Rgba32> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Rgba32"); #> |
|
|
GenerateAllDefaultConversionMethods("Rgba32"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -23,7 +23,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal class PixelOperations : PixelOperations<Rgba64> |
|
|
internal class PixelOperations : PixelOperations<Rgba64> |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
internal override void FromRgba64(Configuration configuration, ReadOnlySpan<Rgba64> source, Span<Rgba64> destPixels) |
|
|
internal override void FromRgba64(Configuration configuration, ReadOnlySpan<Rgba64> source, Span<Rgba64> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -186,7 +185,6 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
dp.FromRgba64(sp); |
|
|
dp.FromRgba64(sp); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -13,10 +13,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
internal class PixelOperations : PixelOperations<Rgba64> |
|
|
internal class PixelOperations : PixelOperations<Rgba64> |
|
|
{ |
|
|
{ |
|
|
<# |
|
|
<# GenerateAllDefaultConversionMethods("Rgba64"); #> |
|
|
GenerateAllDefaultConversionMethods("Rgba64"); |
|
|
|
|
|
#> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -25,7 +25,6 @@ using System.Runtime.InteropServices; |
|
|
void GenerateDefaultSelfConversionMethods(string pixelType) |
|
|
void GenerateDefaultSelfConversionMethods(string pixelType) |
|
|
{ |
|
|
{ |
|
|
#> |
|
|
#> |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
internal override void From<#=pixelType#>(Configuration configuration, ReadOnlySpan<<#=pixelType#>> source, Span<<#=pixelType#>> destPixels) |
|
|
internal override void From<#=pixelType#>(Configuration configuration, ReadOnlySpan<<#=pixelType#>> source, Span<<#=pixelType#>> destPixels) |
|
|
{ |
|
|
{ |
|
|
@ -111,7 +110,6 @@ using System.Runtime.InteropServices; |
|
|
void GenerateRgba32CompatibleVector4ConversionMethods(string pixelType) |
|
|
void GenerateRgba32CompatibleVector4ConversionMethods(string pixelType) |
|
|
{ |
|
|
{ |
|
|
#> |
|
|
#> |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<<#=pixelType#>> destPixels) |
|
|
internal override void FromVector4(Configuration configuration, ReadOnlySpan<Vector4> sourceVectors, Span<<#=pixelType#>> destPixels) |
|
|
{ |
|
|
{ |
|
|
|