From a1a05abebda959c7a49b5c3f03c0562def2ee2ef Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 21 Mar 2009 22:48:48 +0000 Subject: [PATCH] Implement PIX_FMT_NE() macro. Originally committed as revision 18131 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/pixfmt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 5c54e34..6a7034c 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -113,6 +113,12 @@ enum PixelFormat { }; #ifdef WORDS_BIGENDIAN +# define PIX_FMT_NE(name) PIX_FMT_##name##BE +#else +# define PIX_FMT_NE(name) PIX_FMT_##name##LE +#endif + +#ifdef WORDS_BIGENDIAN #define PIX_FMT_RGBA PIX_FMT_RGB32_1 #define PIX_FMT_BGRA PIX_FMT_BGR32_1 #define PIX_FMT_ARGB PIX_FMT_RGB32 -- 2.7.4