|
|
|
@ -2,24 +2,26 @@ |
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
// <auto-generated />
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
{ |
|
|
|
using System; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
/// <content>
|
|
|
|
/// Provides optimized overrides for bulk operations.
|
|
|
|
/// </content>
|
|
|
|
public partial struct Bgr24 |
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Provides optimized overrides for bulk operations.
|
|
|
|
/// </summary>
|
|
|
|
internal class PixelOperations : PixelOperations<Bgr24> |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
internal override void FromBgr24(ReadOnlySpan<Bgr24> source, Span<Bgr24> destPixels, int count) |
|
|
|
{ |
|
|
|
GuardSpans(source, nameof(source), destPixels, nameof(destPixels), count); |
|
|
|
@ -35,7 +37,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
sourcePixels.Slice(0, count).CopyTo(destPixels); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
internal override void ToArgb32(ReadOnlySpan<Bgr24> sourcePixels, Span<Argb32> destPixels, int count) |
|
|
|
{ |
|
|
|
@ -43,7 +45,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Argb32 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -60,7 +62,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Bgra32 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -77,7 +79,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Gray8 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -94,7 +96,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Gray16 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -111,7 +113,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Rgb24 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -128,7 +130,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Rgba32 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -145,7 +147,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Rgb48 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
@ -162,7 +164,7 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
|
|
|
|
|
ref Bgr24 sourceRef = ref MemoryMarshal.GetReference(sourcePixels); |
|
|
|
ref Rgba64 destRef = ref MemoryMarshal.GetReference(destPixels); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) |
|
|
|
{ |
|
|
|
ref Bgr24 sp = ref Unsafe.Add(ref sourceRef, i); |
|
|
|
|