diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-06 12:59:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-06 12:59:50 +0000 |
commit | 6337178b4f5c80e4dde5fda2b9a278ee1368b93a (patch) | |
tree | 74a2f1036123aa221a27c1365820eb5464ee69e0 /libavutil | |
parent | 9a77d59a89fd73d8ad1027da3b40b434a0708e6a (diff) | |
download | ffmpeg-6337178b4f5c80e4dde5fda2b9a278ee1368b93a.tar.gz |
Ensure that the palette is set in data[1] for all 8bit formats.
Also document it.
Originally committed as revision 17018 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/avutil.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 20735183c7..799e764f7f 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -76,6 +76,10 @@ unsigned avutil_version(void); * components stored in AVFrame.data[1] should be in the range 0..255. * This is important as many custom PAL8 video codecs that were designed * to run on the IBM VGA graphics adapter use 6-bit palette components. + * + * For all the 8bit per pixel formats, an RGB32 palette is in data[1] like + * for pal8. This palette is filled in automatically by the function + * allocating the picture. */ enum PixelFormat { PIX_FMT_NONE= -1, |