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

Mats Peterson matsp888 at yahoo.com
Mon Jan 25 02:01:38 CET 2016

On 01/25/2016 01:57 AM, Michael Niedermayer wrote:
> do you have a link to these 1bpp palette docs ?

Note the following regarding 1-bit mode:

"The bitmap is monochrome, and the bmiColors member of BITMAPINFO 
contains two entries. Each bit in the bitmap array represents a pixel. 
If the bit is clear, the pixel is displayed with the color of the first 
entry in the bmiColors table; if the bit is set, the pixel has the color 
of the second entry in the table."

Monochrome doesn't mean black & white here, merely bi-level, as for PNG, 
TIFF and QuickTime.


More information about the ffmpeg-devel mailing list