[FFmpeg-devel] [PATCH v4] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette
Mats Peterson
matsp888 at yahoo.com
Wed Feb 10 02:41:25 CET 2016
Fixed the stride for odd widths. This patch should be applied after your
recent PAL8 changes for nut, Michael. Description follows:
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.
For black & white AVI or QuickTime files, in order to produce a
monochrome nut file, force the pixel format with "-pix_fmt monow" or
"-pix_fmt monob".
Unfortunately, there seems to be some dithering going on when converting
from pal8 to monow. A better way is to use "ffmpeg -i 1bpp.avi -vcodec
copy -vtag B1W0 1bpp.nut". The "-vtag" option is currently needed,
otherwise FFmpeg will use a RGB[15] codec tag for some reason.
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: 6140 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160210/7966510f/attachment.bin>
More information about the ffmpeg-devel
mailing list