[FFmpeg-devel] [PATCH] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

Mats Peterson matsp888 at yahoo.com
Sat Feb 6 05:05:21 CET 2016


This patch removes the monowhite switching code for 1 bpp raw AVI 
without a palette. I don't see any reason to keep it, since it's 
semantically incorrect to use monowhite for palettized data in my book, 
it adds unnecessary noise to the code, and it's inconsistent with the 
rest of the code in FFmpeg.

Regarding not being able to produce a working nut file with "ffmpeg -i 
in.avi -vcodec rawvideo out.nut", it's no more of a regression than not 
being able to produce a working nut file with the same command line from 
a 2, 4 or 8 bpp file, since nut currently doesn't have a pal8 mode.

In order to produce a working nut file from a 1, 2, 4 or 8 bpp AVI or 
QuickTime file, force the pixel format with "-pix_fmt rgb24" or similar. 
For black & white files in order to save space, use "-pix_fmt monow" or 
"-pix_fmt monob".

I have also updated the 1 bpp FATE test files (once again).

Mats
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-rawdec-Remove-monowhite-switching-code-for-1-bp.patch
Type: text/x-patch
Size: 4763 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160206/457e0b3e/attachment.bin>


More information about the ffmpeg-devel mailing list