comparison pixfmt.h @ 705:da8296e7a4d6 libavutil

Implement PIX_FMT_NE() macro.
author stefano
date Sat, 21 Mar 2009 22:48:48 +0000
parents bb17c851dfde
children 40979c781a28
comparison
equal deleted inserted replaced
704:8555f3376a56 705:da8296e7a4d6
111 PIX_FMT_VAAPI_VLD, ///< HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers 111 PIX_FMT_VAAPI_VLD, ///< HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
112 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 112 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
113 }; 113 };
114 114
115 #ifdef WORDS_BIGENDIAN 115 #ifdef WORDS_BIGENDIAN
116 # define PIX_FMT_NE(name) PIX_FMT_##name##BE
117 #else
118 # define PIX_FMT_NE(name) PIX_FMT_##name##LE
119 #endif
120
121 #ifdef WORDS_BIGENDIAN
116 #define PIX_FMT_RGBA PIX_FMT_RGB32_1 122 #define PIX_FMT_RGBA PIX_FMT_RGB32_1
117 #define PIX_FMT_BGRA PIX_FMT_BGR32_1 123 #define PIX_FMT_BGRA PIX_FMT_BGR32_1
118 #define PIX_FMT_ARGB PIX_FMT_RGB32 124 #define PIX_FMT_ARGB PIX_FMT_RGB32
119 #define PIX_FMT_ABGR PIX_FMT_BGR32 125 #define PIX_FMT_ABGR PIX_FMT_BGR32
120 #define PIX_FMT_GRAY16 PIX_FMT_GRAY16BE 126 #define PIX_FMT_GRAY16 PIX_FMT_GRAY16BE