Revision 1cee4eaf libavutil/pixfmt.h

View differences:

libavutil/pixfmt.h
120 120
};
121 121

  
122 122
#ifdef WORDS_BIGENDIAN
123
#   define PIX_FMT_NE(name) PIX_FMT_##name##BE
123
#   define PIX_FMT_NE(be, le) PIX_FMT_##be
124 124
#else
125
#   define PIX_FMT_NE(name) PIX_FMT_##name##LE
125
#   define PIX_FMT_NE(be, le) PIX_FMT_##le
126 126
#endif
127 127

  
128 128
#ifdef WORDS_BIGENDIAN
......
137 137
#define PIX_FMT_BGR32_1 PIX_FMT_ARGB
138 138
#endif
139 139

  
140
#define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16)
141
#define PIX_FMT_RGB48  PIX_FMT_NE(RGB48)
142
#define PIX_FMT_RGB565 PIX_FMT_NE(RGB565)
143
#define PIX_FMT_RGB555 PIX_FMT_NE(RGB555)
144
#define PIX_FMT_BGR565 PIX_FMT_NE(BGR565)
145
#define PIX_FMT_BGR555 PIX_FMT_NE(BGR555)
140
#define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE)
141
#define PIX_FMT_RGB48  PIX_FMT_NE(RGB48BE,  RGB48LE)
142
#define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE)
143
#define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE)
144
#define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
145
#define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
146 146

  
147 147
#endif /* AVUTIL_PIXFMT_H */

Also available in: Unified diff