From 6337178b4f5c80e4dde5fda2b9a278ee1368b93a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Feb 2009 12:59:50 +0000 Subject: 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 --- libavutil/avutil.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavutil') 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, -- cgit v1.2.3