[FFmpeg-devel] [PATCH] IFF: Add grayscale support to decoder
Mon May 10 17:35:38 CEST 2010
Sebastian Vater a ?crit :
> Here's a patch which adds grayscale support to IFF decoder.
> According to IFF standard, a grayscale palette should be created, when
> no CMAP chunk has been found.
> Therefore I added creating a grayscale table according to the IFF standard.
> You can easily test this patch, when you replace (in lavf/iff.c):
> #define ID_CMAP MKTAG('C','M','A','P')
> to sth. like:
> #define ID_CMAP MKTAG('C','M','A','p')
> So the IFF demuxer doesn't find the CMAP chunk anymore...
> Please note that this patch requires:
> [PATCH] IFF: Handle palette underflows correctly in decoder
> The reason is that I have to check if count == 0 which the FFMIN does in
> the handle palette underflow (actually a color map with length of zero
> is threatened as palette underflow by a decoder w/o this patch).
Now the reindentation patch...
:-) Basty/CDGS (-:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 771 bytes
Desc: not available
More information about the ffmpeg-devel