[FFmpeg-devel] [PATCH] HAM6/HAM8 support for IFF demuxer/decoder

Sebastian Vater cdgs.basty
Thu May 6 23:23:20 CEST 2010

Sebastian Vater a ?crit :
> So, here's a new patch, which removes the call of ff_cmap_read_palette
> from libavformat/iff.c completely and also removed prototype declaration
> it from libavcodec/iff.h and made it static with the ff_ prefix removed
> in libavcodec/iff.c
> There's no CODEC_ID_RAWVIDEO anymore and decoding the chunky PBM file is
> done within decode_frame_ilbm now.
> I should notice, however, I investigated the ASH.LBM file (which is a
> PBM, but byterun1 compressed).
> Looking at the demuxer shows me that it normally uses the ILBM code line
> except that decode_frame_byterun1 handles this special case which showed
> me that it's the same as decodeplane8 stuff just without calling
> decodeplane8 at all (so I assume that it's just chunky pixel data).
> I implemented the same behaviour in decode_frame_ilbm by just memcpy'ing
> each line into the output buffer.
> Please review that carefully!

Damn, I just forgot to add HAM decoding for PBM files, too...again, I
have no files to test, but it should do much the same as the
decodeplane8 and HAM decoding afterwards...the PBM HAM decoders just
take the chunky data and interpret it as HAM encoding.

So here's an updated patch, just forget the previous one.

Big sorry @ all!


Best regards,
                   :-) Basty/CDGS (-:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iff-ham-support.patch
Type: text/x-patch
Size: 20989 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100506/215e8411/attachment.bin>

More information about the ffmpeg-devel mailing list