|
|
|
@ -29,7 +29,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieLab> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieLab> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieLch> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieLch> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -93,7 +93,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieLchuv> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieLchuv> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -125,7 +125,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieLuv> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieLuv> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -157,7 +157,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieXyy> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieXyy> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -192,7 +192,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<CieXyz> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<CieXyz> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -224,7 +224,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<Cmyk> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<Cmyk> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -256,7 +256,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<Hsl> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<Hsl> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -288,7 +288,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<Hsv> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<Hsv> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -320,7 +320,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<LinearRgb> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<LinearRgb> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -352,7 +352,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<Lms> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<Lms> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -384,7 +384,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<Rgb> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<Rgb> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
@ -416,7 +416,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion |
|
|
|
/// <param name="source">The span to the source colors</param>
|
|
|
|
/// <param name="destination">The span to the destination colors</param>
|
|
|
|
/// <param name="count">The number of colors to convert.</param>
|
|
|
|
public void Convert(Span<YCbCr> source, Span<HunterLab> destination, int count) |
|
|
|
public void Convert(ReadOnlySpan<YCbCr> source, Span<HunterLab> destination, int count) |
|
|
|
{ |
|
|
|
Guard.SpansMustBeSizedAtLeast(source, nameof(source), destination, nameof(destination), count); |
|
|
|
|
|
|
|
|