pixfmt.h
Go to the documentation of this file.
1 /*
2  * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
3  *
4  * This file is part of Libav.
5  *
6  * Libav is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * Libav is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with Libav; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVUTIL_PIXFMT_H
22 #define AVUTIL_PIXFMT_H
23 
30 #include "libavutil/avconfig.h"
31 
91 
96 
109 
114 
119 
123 
132 
161 };
162 
163 #if AV_HAVE_BIGENDIAN
164 # define PIX_FMT_NE(be, le) PIX_FMT_##be
165 #else
166 # define PIX_FMT_NE(be, le) PIX_FMT_##le
167 #endif
168 
169 #define PIX_FMT_RGB32 PIX_FMT_NE(ARGB, BGRA)
170 #define PIX_FMT_RGB32_1 PIX_FMT_NE(RGBA, ABGR)
171 #define PIX_FMT_BGR32 PIX_FMT_NE(ABGR, RGBA)
172 #define PIX_FMT_BGR32_1 PIX_FMT_NE(BGRA, ARGB)
173 
174 #define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE)
175 #define PIX_FMT_RGB48 PIX_FMT_NE(RGB48BE, RGB48LE)
176 #define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE)
177 #define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE)
178 #define PIX_FMT_RGB444 PIX_FMT_NE(RGB444BE, RGB444LE)
179 #define PIX_FMT_BGR48 PIX_FMT_NE(BGR48BE, BGR48LE)
180 #define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
181 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
182 #define PIX_FMT_BGR444 PIX_FMT_NE(BGR444BE, BGR444LE)
183 
184 #define PIX_FMT_YUV420P9 PIX_FMT_NE(YUV420P9BE , YUV420P9LE)
185 #define PIX_FMT_YUV422P9 PIX_FMT_NE(YUV422P9BE , YUV422P9LE)
186 #define PIX_FMT_YUV444P9 PIX_FMT_NE(YUV444P9BE , YUV444P9LE)
187 #define PIX_FMT_YUV420P10 PIX_FMT_NE(YUV420P10BE, YUV420P10LE)
188 #define PIX_FMT_YUV422P10 PIX_FMT_NE(YUV422P10BE, YUV422P10LE)
189 #define PIX_FMT_YUV444P10 PIX_FMT_NE(YUV444P10BE, YUV444P10LE)
190 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
191 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
192 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
193 
194 #define PIX_FMT_GBRP9 PIX_FMT_NE(GBRP9BE , GBRP9LE)
195 #define PIX_FMT_GBRP10 PIX_FMT_NE(GBRP10BE, GBRP10LE)
196 #define PIX_FMT_GBRP16 PIX_FMT_NE(GBRP16BE, GBRP16LE)
197 
198 #endif /* AVUTIL_PIXFMT_H */