aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-21 22:48:48 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-21 22:48:48 +0000
commita1a05abebda959c7a49b5c3f03c0562def2ee2ef (patch)
tree057eef683ff7a3bdbed867e5ed7e7952516169ae /libavutil
parentd89f692f0ea078867be00397b2f8229510400325 (diff)
downloadffmpeg-a1a05abebda959c7a49b5c3f03c0562def2ee2ef.tar.gz
Implement PIX_FMT_NE() macro.
Originally committed as revision 18131 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pixfmt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index 5c54e3430c..6a7034c1d6 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