diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-23 23:01:11 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-23 23:01:11 +0000 |
commit | 77544e5b910d4497c4de6755c6cd5cecf1634361 (patch) | |
tree | 6c6afb15ccbd0f9f8c9829f92f8e19c0be3875d4 /libavutil | |
parent | 1cee4eafa33c149429fa380bb87cd53b84dc0c07 (diff) | |
download | ffmpeg-77544e5b910d4497c4de6755c6cd5cecf1634361.tar.gz |
Use PIX_FMT_NE() for defining the PIX_FMT_RGB32 variants macros.
Originally committed as revision 18174 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pixfmt.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 0a761ee172..21a72a8451 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -125,17 +125,10 @@ enum PixelFormat { # define PIX_FMT_NE(be, le) PIX_FMT_##le #endif -#ifdef WORDS_BIGENDIAN -#define PIX_FMT_RGB32 PIX_FMT_ARGB -#define PIX_FMT_RGB32_1 PIX_FMT_RGBA -#define PIX_FMT_BGR32 PIX_FMT_ABGR -#define PIX_FMT_BGR32_1 PIX_FMT_BGRA -#else -#define PIX_FMT_RGB32 PIX_FMT_BGRA -#define PIX_FMT_RGB32_1 PIX_FMT_ABGR -#define PIX_FMT_BGR32 PIX_FMT_RGBA -#define PIX_FMT_BGR32_1 PIX_FMT_ARGB -#endif +#define PIX_FMT_RGB32 PIX_FMT_NE(ARGB, BGRA) +#define PIX_FMT_RGB32_1 PIX_FMT_NE(RGBA, ABGR) +#define PIX_FMT_BGR32 PIX_FMT_NE(ABGR, RGBA) +#define PIX_FMT_BGR32_1 PIX_FMT_NE(BGRA, ARGB) #define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE) #define PIX_FMT_RGB48 PIX_FMT_NE(RGB48BE, RGB48LE) |