mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Make the PIX_FMT_NE() macro more generic.
Originally committed as revision 18173 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3c32bac898
commit
1cee4eafa3
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user