comparison pixfmt.h @ 811:c08dd82b122e libavutil

Make sure we do not export incorrect _NE pixformat descriptions by either including config.h if available or not defining them if it isn't.
author reimar
date Sun, 17 Jan 2010 14:17:03 +0000
parents 196996ad1fc9
children 8f2141bc8fc4
comparison
equal deleted inserted replaced
810:121e47f833b4 811:c08dd82b122e
125 PIX_FMT_YUV444P16BE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian 125 PIX_FMT_YUV444P16BE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
126 PIX_FMT_VDPAU_MPEG4, ///< MPEG4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers 126 PIX_FMT_VDPAU_MPEG4, ///< MPEG4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
127 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 127 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
128 }; 128 };
129 129
130 #ifdef HAVE_AV_CONFIG_H
131 #include "config.h"
130 #if HAVE_BIGENDIAN 132 #if HAVE_BIGENDIAN
131 # define PIX_FMT_NE(be, le) PIX_FMT_##be 133 # define PIX_FMT_NE(be, le) PIX_FMT_##be
132 #else 134 #else
133 # define PIX_FMT_NE(be, le) PIX_FMT_##le 135 # define PIX_FMT_NE(be, le) PIX_FMT_##le
134 #endif 136 #endif
146 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE) 148 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
147 149
148 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE) 150 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
149 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE) 151 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
150 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE) 152 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
153 #endif
151 154
152 #endif /* AVUTIL_PIXFMT_H */ 155 #endif /* AVUTIL_PIXFMT_H */