[Ffmpeg-devel] PIX_FMT_RGB555 and alpha channel

Alex Beregszaszi alex
Mon Oct 30 02:48:06 CET 2006


Hi,

> > I will elaborate.  Alex and I are implementing FLC/FLX and DTA
> > encoding  into ffmpeg.  We are a little way from having stuff ready
> > to submit, but  there is a problem with compression when the Alpha
> > bit is set in an  RGB555 pixel, for the FLX format.  It means we
> > have to mask every pixel  coming in, to take the spurious alpha bit
> > out, or that bit prevents run  length compression from being
> > effective.  The format is really wanting  to use RGB555, without
> > alpha, so that black is 0x0000 and not 0x8000 but 
> 
> why does RLE compression not work with the alpha bit set?
> and why exactly is the alpha bit set at all? if imgconvert.c sets it,
> IMO fix imgconvert.c so it doesnt

Attached is a patch which fixes it, and adds the old behaviour as
RGBA555.

-- 
Alex Beregszaszi | alex at fsn.hu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgba555.diff
Type: text/x-patch
Size: 5909 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061030/9c703143/attachment.bin>



More information about the ffmpeg-devel mailing list