[FFmpeg-devel] [PATCH v4] lavc/rawdec: Use AV_PIX_FMT_PAL8 for 1-bit raw QuickTime video

Michael Niedermayer michael at niedermayer.cc
Mon Jan 18 12:23:17 CET 2016


On Mon, Jan 18, 2016 at 12:06:17PM +0100, Mats Peterson wrote:
> On 01/18/2016 12:02 PM, Michael Niedermayer wrote:
> >the decoder should check the palette, and if it differs from
> >black+white use PAL8
> >users quite possible could complain if monochrome raw files suddenly
> >become 8 times as large when its not needed
> 
> Well, there were no problems using pal8 all over for 1 bpp video in
> lavc/qtrle, so why should it matter now? The fact is 1 bpp video in
> QuickTime is NEVER monochrome, it is always palettized, even if the
> palette is only 2 colors of black & white.

1bpp could be used by qtrle too if the palette allows it

but then qtrle implies mov (with a possible palette)
raw does not imply mov so its possible that it is not intended to be
paletted

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160118/4c0ddb8e/attachment.sig>


More information about the ffmpeg-devel mailing list