You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grayscale code can be simd'ified via avx VPMOVZXBD aka Avx2.ConvertToVector256Int32 & VCVTDQ2PS aka Avx.ConvertToVector256Single commands. Rgb encoder is a bit trickier as it would involve shuffles - needs further benchmarking.
Anyway, this is fairly straightforward so it's a 'good first issue' issue.
The text was updated successfully, but these errors were encountered:
Current rgb and grayscale encoders use scalar code to cast data from byte to float:
ImageSharp/src/ImageSharp/Formats/Jpeg/Components/Encoder/LuminanceForwardConverter{TPixel}.cs
Lines 52 to 56 in 2b85b55
ImageSharp/src/ImageSharp/Formats/Jpeg/Components/Encoder/RgbForwardConverter{TPixel}.cs
Lines 104 to 111 in 2b85b55
Grayscale code can be simd'ified via avx
VPMOVZXBD
akaAvx2.ConvertToVector256Int32
&VCVTDQ2PS
akaAvx.ConvertToVector256Single
commands. Rgb encoder is a bit trickier as it would involve shuffles - needs further benchmarking.Anyway, this is fairly straightforward so it's a 'good first issue' issue.
The text was updated successfully, but these errors were encountered: