Browse Source
"less ceremony"
Co-authored-by: Günther Foidl <gue@korporal.at>
pull/1773/head
Anton Firszov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Formats/Jpeg/Components/Decoder/ColorConverters/JpegColorConverter.FromYccKVector8.cs
|
|
|
@ -34,8 +34,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.ColorConverters |
|
|
|
// Walking 8 elements at one step:
|
|
|
|
nint n = values.Component0.Length / 8; |
|
|
|
|
|
|
|
var scale = new Vector<float>(1 / (this.MaximumValue * this.MaximumValue)); |
|
|
|
var max = new Vector<float>(this.MaximumValue); |
|
|
|
var scale = new Vector<float>(1f) / (max * max); |
|
|
|
|
|
|
|
for (nint i = 0; i < n; i++) |
|
|
|
{ |
|
|
|
|