[FFmpeg-devel] [PATCH 5/5] lavc/rawdec: Use AV_PIX_FMT_PAL8 for raw 1 bpp video in AVI

Mats Peterson matsp888 at yahoo.com
Thu Jan 28 06:19:28 CET 2016


 From 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318229%28v=vs.85%29.aspx:

"If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the 
bitmap has a color table immediatelly following the BITMAPINFOHEADER 
structure. The color table consists of an array of RGBQUAD values. The 
size of the array is given by the biClrUsed member. If biClrUsed is 
zero, the array contains the maximum number of colors for the given 
bitdepth; that is, 2^biBitCount colors."

Nothing about "monochrome" here. Unfortunately, pal8 to monow conversion 
seems a bit flaky, but that's another story.

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-lavc-rawdec-Use-AV_PIX_FMT_PAL8-for-raw-1-bit-video-.patch
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160128/b08b2583/attachment.bin>


More information about the ffmpeg-devel mailing list