|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System; |
|
|
|
@ -34,7 +34,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
/// <param name="sourceVectors">The <see cref="Span{T}"/> to the source vectors.</param>
|
|
|
|
/// <param name="destPixels">The <see cref="Span{T}"/> to the destination colors.</param>
|
|
|
|
/// <param name="modifiers">The <see cref="PixelConversionModifiers"/> to apply during the conversion</param>
|
|
|
|
internal virtual void FromVector4Destructive( |
|
|
|
public virtual void FromVector4Destructive( |
|
|
|
Configuration configuration, |
|
|
|
Span<Vector4> sourceVectors, |
|
|
|
Span<TPixel> destPixels, |
|
|
|
@ -56,8 +56,11 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
/// <param name="configuration">A <see cref="Configuration"/> to configure internal operations</param>
|
|
|
|
/// <param name="sourceVectors">The <see cref="Span{T}"/> to the source vectors.</param>
|
|
|
|
/// <param name="destPixels">The <see cref="Span{T}"/> to the destination colors.</param>
|
|
|
|
internal void FromVector4Destructive(Configuration configuration, Span<Vector4> sourceVectors, Span<TPixel> destPixels) => |
|
|
|
this.FromVector4Destructive(configuration, sourceVectors, destPixels, PixelConversionModifiers.None); |
|
|
|
public void FromVector4Destructive( |
|
|
|
Configuration configuration, |
|
|
|
Span<Vector4> sourceVectors, |
|
|
|
Span<TPixel> destPixels) |
|
|
|
=> this.FromVector4Destructive(configuration, sourceVectors, destPixels, PixelConversionModifiers.None); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Bulk version of <see cref="IPixel.ToVector4()"/> converting 'sourceColors.Length' pixels into 'destinationVectors'.
|
|
|
|
@ -66,7 +69,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
/// <param name="sourcePixels">The <see cref="Span{T}"/> to the source colors.</param>
|
|
|
|
/// <param name="destVectors">The <see cref="Span{T}"/> to the destination vectors.</param>
|
|
|
|
/// <param name="modifiers">The <see cref="PixelConversionModifiers"/> to apply during the conversion</param>
|
|
|
|
internal virtual void ToVector4( |
|
|
|
public virtual void ToVector4( |
|
|
|
Configuration configuration, |
|
|
|
ReadOnlySpan<TPixel> sourcePixels, |
|
|
|
Span<Vector4> destVectors, |
|
|
|
@ -83,11 +86,11 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
/// <param name="configuration">A <see cref="Configuration"/> to configure internal operations</param>
|
|
|
|
/// <param name="sourcePixels">The <see cref="Span{T}"/> to the source colors.</param>
|
|
|
|
/// <param name="destVectors">The <see cref="Span{T}"/> to the destination vectors.</param>
|
|
|
|
internal virtual void ToVector4( |
|
|
|
public void ToVector4( |
|
|
|
Configuration configuration, |
|
|
|
ReadOnlySpan<TPixel> sourcePixels, |
|
|
|
Span<Vector4> destVectors) => |
|
|
|
this.ToVector4(configuration, sourcePixels, destVectors, PixelConversionModifiers.None); |
|
|
|
Span<Vector4> destVectors) |
|
|
|
=> this.ToVector4(configuration, sourcePixels, destVectors, PixelConversionModifiers.None); |
|
|
|
|
|
|
|
internal virtual void From<TSourcePixel>( |
|
|
|
Configuration configuration, |
|
|
|
|