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

Mats Peterson matsp888 at yahoo.com
Tue Jan 26 11:43:24 CET 2016


Michael, the 'test1.bmp' file in the 'bmp' directory in the FATE test 
suite contains a palette with green and blue colors, and when opening it 
in Paint in Windows XP, it will be displayed with the colors in the 
palette, not just black & white. This leads me to believe we should use 
pal8 and not monow for raw 1 bpp video in AVI after all.

Please see the attached "test suite", it contains a README file with 
further information.

This patch can't be applied until the raw yuv420p output differences 
between using monow and pal8 as the source (output values being 0x10 and 
0xEB for pal8, and 0x00 and 0xFF for monow) are solved. Or if you just 
rewrite the 1 bpp test in some way.

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-raw-1bpp-avi.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160126/a8ae301a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixfmt-test-v3.tar.gz
Type: application/x-gzip
Size: 207483 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160126/a8ae301a/attachment-0001.bin>


More information about the ffmpeg-devel mailing list