Mercurial > libavcodec.hg
comparison avcodec.h @ 1464:51239e385475 libavcodec
final word on RGBA byte order
author | tmmm |
---|---|
date | Sat, 13 Sep 2003 02:31:03 +0000 |
parents | eabd6b8f83ed |
children | dcb784544ec6 |
comparison
equal
deleted
inserted
replaced
1463:ca24abf4af22 | 1464:51239e385475 |
---|---|
113 CODEC_TYPE_VIDEO, | 113 CODEC_TYPE_VIDEO, |
114 CODEC_TYPE_AUDIO, | 114 CODEC_TYPE_AUDIO, |
115 }; | 115 }; |
116 | 116 |
117 /** | 117 /** |
118 * Pixel format. | 118 * Pixel format. Notes: |
119 * | |
120 * PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA | |
121 * color is put together as: | |
122 * (A << 24) | (R << 16) | (G << 8) | B | |
123 * This is stored as BGRA on little endian CPU architectures and ARGB on | |
124 * big endian CPUs. | |
125 * | |
126 * When the pixel format is palettized RGB (PIX_FMT_PAL8), the palettized | |
127 * image data is stored in AVFrame.data[0]. The palette is transported in | |
128 * AVFrame.data[1] and, is 1024 bytes long (256 4-byte entries) and is | |
129 * formatted the same as in PIX_FMT_RGBA32 described above (i.e., it is | |
130 * also endian-specific). | |
119 */ | 131 */ |
120 enum PixelFormat { | 132 enum PixelFormat { |
121 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) | 133 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) |
122 PIX_FMT_YUV422, | 134 PIX_FMT_YUV422, |
123 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... | 135 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... |
124 PIX_FMT_BGR24, ///< Packed pixel, 3 bytes per pixel, BGRBGR... | 136 PIX_FMT_BGR24, ///< Packed pixel, 3 bytes per pixel, BGRBGR... |
125 PIX_FMT_YUV422P, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) | 137 PIX_FMT_YUV422P, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) |
126 PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) | 138 PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) |
127 PIX_FMT_RGBA32, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... | 139 PIX_FMT_RGBA32, ///< Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness |
128 PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) | 140 PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
129 PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) | 141 PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) |
130 PIX_FMT_RGB565, ///< always stored in cpu endianness | 142 PIX_FMT_RGB565, ///< always stored in cpu endianness |
131 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 | 143 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 |
132 PIX_FMT_GRAY8, | 144 PIX_FMT_GRAY8, |