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

Mats Peterson matsp888 at yahoo.com
Fri Feb 12 11:26:02 CET 2016


Now handles non-standard 8 bpp raw AVI files created with "-vcodec 
rawvideo" that contain the palette at the end of each frame, like nut.

8 bpp raw QuickTime files created with "-vcodec rawvideo" won't work 
quite right, because they contain a palette both in the video sample 
description and at the end of each frame, which currently causes the 
stride to be calculated incorrectly. They are hugely non-standard anyway.

Original 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".

Another 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

-- 
Mats Peterson
http://matsp888.no-ip.org/~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: 7744 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160212/1a2de485/attachment.bin>


More information about the ffmpeg-devel mailing list