mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
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:
parent
bb976aeff7
commit
bb183aa63d
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue