aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-23 22:57:55 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-23 22:57:55 +0000
commit1cee4eafa33c149429fa380bb87cd53b84dc0c07 (patch)
tree38f0f169a55d829e49067177d93e5ccce4896cee /libavutil
parent3c32bac89834d904a789c5f2b4380434d0a88644 (diff)
downloadffmpeg-1cee4eafa33c149429fa380bb87cd53b84dc0c07.tar.gz
Make the PIX_FMT_NE() macro more generic.
Originally committed as revision 18173 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pixfmt.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index 31e3be1ffc..0a761ee172 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -120,9 +120,9 @@ enum PixelFormat {
};
#ifdef WORDS_BIGENDIAN
-# define PIX_FMT_NE(name) PIX_FMT_##name##BE
+# define PIX_FMT_NE(be, le) PIX_FMT_##be
#else
-# define PIX_FMT_NE(name) PIX_FMT_##name##LE
+# define PIX_FMT_NE(be, le) PIX_FMT_##le
#endif
#ifdef WORDS_BIGENDIAN
@@ -137,11 +137,11 @@ enum PixelFormat {
#define PIX_FMT_BGR32_1 PIX_FMT_ARGB
#endif
-#define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16)
-#define PIX_FMT_RGB48 PIX_FMT_NE(RGB48)
-#define PIX_FMT_RGB565 PIX_FMT_NE(RGB565)
-#define PIX_FMT_RGB555 PIX_FMT_NE(RGB555)
-#define PIX_FMT_BGR565 PIX_FMT_NE(BGR565)
-#define PIX_FMT_BGR555 PIX_FMT_NE(BGR555)
+#define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE)
+#define PIX_FMT_RGB48 PIX_FMT_NE(RGB48BE, RGB48LE)
+#define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE)
+#define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE)
+#define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
+#define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
#endif /* AVUTIL_PIXFMT_H */