|
|
@ -26,7 +26,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.ColorConverters |
|
|
// Used for the color conversion
|
|
|
// Used for the color conversion
|
|
|
var scale = Vector256.Create(1 / this.MaximumValue); |
|
|
var scale = Vector256.Create(1 / this.MaximumValue); |
|
|
|
|
|
|
|
|
nint n = values.Component0.Length / 8; |
|
|
nint n = values.Component0.Length / Vector256<float>.Count; |
|
|
for (nint i = 0; i < n; i++) |
|
|
for (nint i = 0; i < n; i++) |
|
|
{ |
|
|
{ |
|
|
ref Vector256<float> c0 = ref Unsafe.Add(ref c0Base, i); |
|
|
ref Vector256<float> c0 = ref Unsafe.Add(ref c0Base, i); |
|
|
|