vc_copylineABGRtoRGB: fixed wrong shifts

actually was for BGRA
This commit is contained in:
Martin Pulec
2024-07-02 16:04:30 +02:00
parent 0d3a15d7b1
commit 17dfd6eb86

View File

@@ -785,9 +785,9 @@ void vc_copylineABGRtoRGB(unsigned char * __restrict dst, const unsigned char *
UNUSED(gshift);
UNUSED(bshift);
enum {
SRC_RSHIFT = 16,
SRC_GSHIFT = 8,
SRC_BSHIFT = 0,
SRC_RSHIFT = 24,
SRC_GSHIFT = 16,
SRC_BSHIFT = 8,
};
#ifdef __SSSE3__
__m128i shuf = _mm_setr_epi8(3, 2, 1, 7, 6, 5, 11, 10, 9, 15, 14, 13, 0xff, 0xff, 0xff, 0xff);