|
|
@ -14,7 +14,6 @@ |
|
|
void GeneratePackFromMethods(string pixelType, string tempPixelType, string assignToTempCode) |
|
|
void GeneratePackFromMethods(string pixelType, string tempPixelType, string assignToTempCode) |
|
|
{ |
|
|
{ |
|
|
#> |
|
|
#> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// Converts 'count' elements in 'source` span of <see cref="<#=pixelType#>"/> data to a span of <typeparamref name="TPixel"/>-s. |
|
|
/// Converts 'count' elements in 'source` span of <see cref="<#=pixelType#>"/> data to a span of <typeparamref name="TPixel"/>-s. |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
@ -57,7 +56,6 @@ |
|
|
void GenerateToDestFormatMethods(string pixelType) |
|
|
void GenerateToDestFormatMethods(string pixelType) |
|
|
{ |
|
|
{ |
|
|
#> |
|
|
#> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
|
/// Converts 'count' pixels in 'sourcePixels` span to a span of <see cref="<#=pixelType#>"/>-s. |
|
|
/// Converts 'count' pixels in 'sourcePixels` span to a span of <see cref="<#=pixelType#>"/>-s. |
|
|
/// Bulk version of <see cref="IPixel.To<#=pixelType#>(ref <#=pixelType#>)"/>. |
|
|
/// Bulk version of <see cref="IPixel.To<#=pixelType#>(ref <#=pixelType#>)"/>. |
|
|
@ -107,8 +105,8 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
using System.Runtime.InteropServices; |
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
|
public partial class PixelOperations<TPixel> |
|
|
public partial class PixelOperations<TPixel> |
|
|
{ |
|
|
{<# |
|
|
<# |
|
|
|
|
|
GeneratePackFromMethods("Rgba64", "Rgba64", "temp = Unsafe.Add(ref sourceRef, i);"); |
|
|
GeneratePackFromMethods("Rgba64", "Rgba64", "temp = Unsafe.Add(ref sourceRef, i);"); |
|
|
GenerateToDestFormatMethods("Rgba64"); |
|
|
GenerateToDestFormatMethods("Rgba64"); |
|
|
|
|
|
|
|
|
@ -129,8 +127,5 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
|
GeneratePackFromMethods("Argb32", "Argb32", "temp = Unsafe.Add(ref sourceRef, i);"); |
|
|
GeneratePackFromMethods("Argb32", "Argb32", "temp = Unsafe.Add(ref sourceRef, i);"); |
|
|
GenerateToDestFormatMethods("Argb32"); |
|
|
GenerateToDestFormatMethods("Argb32"); |
|
|
#> |
|
|
#> } |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |