Mercurial > libavutil.hg
changeset 652:065d4a472bab libavutil
Ensure that the palette is set in data[1] for all 8bit formats.
Also document it.
author | michael |
---|---|
date | Fri, 06 Feb 2009 12:59:50 +0000 |
parents | 825b98750e38 |
children | 332a5b820330 |
files | avutil.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avutil.h Tue Feb 03 18:04:52 2009 +0000 +++ b/avutil.h Fri Feb 06 12:59:50 2009 +0000 @@ -76,6 +76,10 @@ * 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,