mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
SIMD Convert. fix RGBa → RGBA conversion on AVX2
This commit is contained in:
parent
f888dbe1cc
commit
95a68340c9
|
@ -598,7 +598,10 @@ rgba2rgbA(UINT8* out, const UINT8* in, int xsize)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (; x < xsize; x++, in+=4) {
|
in = &in[x * 4];
|
||||||
|
out = &out[x * 4];
|
||||||
|
|
||||||
|
for (; x < xsize; x++, in += 4) {
|
||||||
alpha = in[3];
|
alpha = in[3];
|
||||||
if (alpha == 255 || alpha == 0) {
|
if (alpha == 255 || alpha == 0) {
|
||||||
*out++ = in[0];
|
*out++ = in[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user