Mercurial > libavutil.hg
comparison pixfmt.h @ 776:0c82f8789664 libavutil
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars T¸«£uber <lars <dot> taeuber <at> gmx <dot> net>.
author | ramiro |
---|---|
date | Sat, 05 Sep 2009 23:33:25 +0000 |
parents | 22a58fc2125d |
children | 196996ad1fc9 |
comparison
equal
deleted
inserted
replaced
775:dff358ec2041 | 776:0c82f8789664 |
---|---|
115 | 115 |
116 PIX_FMT_VAAPI_MOCO, ///< HW acceleration through VA API at motion compensation entry-point, Picture.data[3] contains a vaapi_render_state struct which contains macroblocks as well as various fields extracted from headers | 116 PIX_FMT_VAAPI_MOCO, ///< HW acceleration through VA API at motion compensation entry-point, Picture.data[3] contains a vaapi_render_state struct which contains macroblocks as well as various fields extracted from headers |
117 PIX_FMT_VAAPI_IDCT, ///< HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state struct which contains fields extracted from headers | 117 PIX_FMT_VAAPI_IDCT, ///< HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state struct which contains fields extracted from headers |
118 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 | 118 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 |
119 | 119 |
120 PIX_FMT_YUV420PLE, ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian | 120 PIX_FMT_YUV420P16LE, ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian |
121 PIX_FMT_YUV420PBE, ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian | 121 PIX_FMT_YUV420P16BE, ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian |
122 PIX_FMT_YUV422PLE, ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian | 122 PIX_FMT_YUV422P16LE, ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian |
123 PIX_FMT_YUV422PBE, ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian | 123 PIX_FMT_YUV422P16BE, ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian |
124 PIX_FMT_YUV444PLE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian | 124 PIX_FMT_YUV444P16LE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian |
125 PIX_FMT_YUV444PBE, ///< 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_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 | 126 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 }; | 127 }; |
128 | 128 |
129 #if HAVE_BIGENDIAN | 129 #if HAVE_BIGENDIAN |
130 # define PIX_FMT_NE(be, le) PIX_FMT_##be | 130 # define PIX_FMT_NE(be, le) PIX_FMT_##be |
142 #define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE) | 142 #define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE) |
143 #define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE) | 143 #define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE) |
144 #define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE) | 144 #define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE) |
145 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE) | 145 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE) |
146 | 146 |
147 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420PBE, YUV420PLE) | 147 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE) |
148 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422PBE, YUV422PLE) | 148 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE) |
149 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444PBE, YUV444PLE) | 149 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE) |
150 | 150 |
151 #endif /* AVUTIL_PIXFMT_H */ | 151 #endif /* AVUTIL_PIXFMT_H */ |