[FFmpeg-devel] [PATCH] XWD decoder and encoder
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Jan 19 22:23:16 CET 2012
On Thu, Jan 19, 2012 at 05:43:25AM +0000, Paul B Mahol wrote:
> + cmap = bytestream_get_be32(&buf);
> + buf += hsize - 80;
Supposedly the rest contains the window name.
Would make sense to export that as metadata IMO.
> + buf += 4;
> + red = bytestream_get_be16(&buf) >> 8;
> + green = bytestream_get_be16(&buf) >> 8;
> + blue = bytestream_get_be16(&buf) >> 8;
> + buf += 2;
I guess you could just pick out the right bytes directly, like
red = buf[4];
red = buf[6];
red = buf[8];
buf += 10;
I am also completely unclear on whether the "flags" should be
respected, in which case it should be something along the lines of
red = buf[9] & 1 ? buf[4] : 0;
etc.
More information about the ffmpeg-devel
mailing list