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:
David Schleef 2003-11-05 03:59:53 +00:00
parent cd484eb01a
commit 8a6efa6f05

View file

@ -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