kimgio: use TJPF_ARGB as pixel format in jpg plugin when the host is big-endian

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-20 23:02:04 +03:00
parent bb976aeff7
commit bb183aa63d

View file

@ -26,7 +26,11 @@
static const char* const s_jpgpluginformat = "jpg";
static const ushort s_peekbuffsize = 32;
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
static const TJPF s_jpegpf = TJPF_ARGB;
#else
static const TJPF s_jpegpf = TJPF_BGRA;
#endif
static const TJSAMP s_jpegsubsampling = TJSAMP_444;
static const int s_jpegflags = TJFLAG_FASTDCT;
// for reference: