Commit 9da00d87 authored by stefano's avatar stefano

Implement PIX_FMT_NE() macro.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18131 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 19cab246
...@@ -112,6 +112,12 @@ enum PixelFormat { ...@@ -112,6 +112,12 @@ enum PixelFormat {
PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
}; };
#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 #ifdef WORDS_BIGENDIAN
#define PIX_FMT_RGBA PIX_FMT_RGB32_1 #define PIX_FMT_RGBA PIX_FMT_RGB32_1
#define PIX_FMT_BGRA PIX_FMT_BGR32_1 #define PIX_FMT_BGRA PIX_FMT_BGR32_1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment