mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
Fix endianness issues manifested in pngenc. Fixes #125932
Original commit message from CVS: Fix endianness issues manifested in pngenc. Fixes #125932
This commit is contained in:
parent
cd484eb01a
commit
8a6efa6f05
1 changed files with 0 additions and 14 deletions
|
@ -23,8 +23,6 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||
|
||||
#define R_MASK_32 0xff000000
|
||||
#define G_MASK_32 0x00ff0000
|
||||
#define B_MASK_32 0x0000ff00
|
||||
|
@ -33,18 +31,6 @@
|
|||
#define G_MASK_24 0x00ff00
|
||||
#define B_MASK_24 0x0000ff
|
||||
|
||||
#else
|
||||
|
||||
#define R_MASK_32 0x000000ff
|
||||
#define G_MASK_32 0x0000ff00
|
||||
#define B_MASK_32 0x00ff0000
|
||||
|
||||
#define R_MASK_24 0x0000ff
|
||||
#define G_MASK_24 0x00ff00
|
||||
#define B_MASK_24 0xff0000
|
||||
|
||||
#endif
|
||||
|
||||
#define R_MASK_16 0xf800
|
||||
#define G_MASK_16 0x07e0
|
||||
#define B_MASK_16 0x001f
|
||||
|
|
Loading…
Reference in a new issue