|
|
@ -166,20 +166,16 @@ namespace SixLabors.ImageSharp.PixelFormats |
|
|
/// Bulk operation that packs 3 seperate RGB channels to <paramref name="destination"/>.
|
|
|
/// Bulk operation that packs 3 seperate RGB channels to <paramref name="destination"/>.
|
|
|
/// The destination must have a padding of 3.
|
|
|
/// The destination must have a padding of 3.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="configuration">A <see cref="Configuration"/> to configure internal operations.</param>
|
|
|
|
|
|
/// <param name="redChannel">A <see cref="ReadOnlySpan{T}"/> to the red values.</param>
|
|
|
/// <param name="redChannel">A <see cref="ReadOnlySpan{T}"/> to the red values.</param>
|
|
|
/// <param name="greenChannel">A <see cref="ReadOnlySpan{T}"/> to the green values.</param>
|
|
|
/// <param name="greenChannel">A <see cref="ReadOnlySpan{T}"/> to the green values.</param>
|
|
|
/// <param name="blueChannel">A <see cref="ReadOnlySpan{T}"/> to the blue values.</param>
|
|
|
/// <param name="blueChannel">A <see cref="ReadOnlySpan{T}"/> to the blue values.</param>
|
|
|
/// <param name="destination">A <see cref="Span{T}"/> to the destination pixels.</param>
|
|
|
/// <param name="destination">A <see cref="Span{T}"/> to the destination pixels.</param>
|
|
|
internal virtual void PackFromRgbPlanes( |
|
|
internal virtual void PackFromRgbPlanes( |
|
|
Configuration configuration, |
|
|
|
|
|
ReadOnlySpan<byte> redChannel, |
|
|
ReadOnlySpan<byte> redChannel, |
|
|
ReadOnlySpan<byte> greenChannel, |
|
|
ReadOnlySpan<byte> greenChannel, |
|
|
ReadOnlySpan<byte> blueChannel, |
|
|
ReadOnlySpan<byte> blueChannel, |
|
|
Span<TPixel> destination) |
|
|
Span<TPixel> destination) |
|
|
{ |
|
|
{ |
|
|
Guard.NotNull(configuration, nameof(configuration)); |
|
|
|
|
|
|
|
|
|
|
|
int count = redChannel.Length; |
|
|
int count = redChannel.Length; |
|
|
GuardPackFromRgbPlanes(greenChannel, blueChannel, destination, count); |
|
|
GuardPackFromRgbPlanes(greenChannel, blueChannel, destination, count); |
|
|
|
|
|
|
|
|
|