Mercurial > libavutil.hg
comparison avutil.h @ 670:69e93bca7fd3 libavutil
Add note about big vs. little endian.
author | michael |
---|---|
date | Sun, 22 Feb 2009 13:48:25 +0000 |
parents | d832fcef8bb8 |
children | e847c4a1d29a |
comparison
equal
deleted
inserted
replaced
669:d832fcef8bb8 | 670:69e93bca7fd3 |
---|---|
78 * to run on the IBM VGA graphics adapter use 6-bit palette components. | 78 * to run on the IBM VGA graphics adapter use 6-bit palette components. |
79 * | 79 * |
80 * For all the 8bit per pixel formats, an RGB32 palette is in data[1] like | 80 * For all the 8bit per pixel formats, an RGB32 palette is in data[1] like |
81 * for pal8. This palette is filled in automatically by the function | 81 * for pal8. This palette is filled in automatically by the function |
82 * allocating the picture. | 82 * allocating the picture. |
83 * | |
84 * Note, make sure that all newly added big endian formats have pix_fmt&1==1 | |
85 * and that all newly added little endian formats have pix_fmt&1==0 | |
86 * this allows simpler detection of big vs little endian. | |
83 */ | 87 */ |
84 enum PixelFormat { | 88 enum PixelFormat { |
85 PIX_FMT_NONE= -1, | 89 PIX_FMT_NONE= -1, |
86 PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) | 90 PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) |
87 PIX_FMT_YUYV422, ///< packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr | 91 PIX_FMT_YUYV422, ///< packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr |