[FFmpeg-devel] [PATCH v3] lavc/rawdec: Use 16-byte line alignment for B1W0 and B0W1 video in nut

Mats Peterson matsp888 at yahoo.com
Fri Feb 5 16:54:21 CET 2016


On 02/05/2016 04:52 PM, Mats Peterson wrote:
>> patch applied, but i think theres more that needs fixing than pal8
>> in nut.
>> Most important is that the code which chooses the pixel format for
>> encoding end up choosing monowhite if the inut is PAL8 with 2 matching
>> colors.
>> Then decoders could output PAL8 but encoders would receve monow if
>> they support it and no changes would be needed per codec
>>
> I don't agree that monowhite should be used at all for palettized
> formats like AVI and QuickTime. This is the umpteenth time I say this.
> You don't seem to care about 2- or 4-bit files being converted to pal8,
> so what's the big deal with 1-bit files? And don't give me the "file
> explosion" thing again. Furthermore, everything else that concerns
> palettized 1 bpp data in FFmpeg (QuickTime raw/RLE and BMP) is currently
> (correctly) converted to pal8
>
> Mats
>

For formats like TIFF or nut B1W0/B0W1 which use BLACK & WHITE 
EXPLICITLY, monowhite or monoblack is justified, otherwise not.

Mats



More information about the ffmpeg-devel mailing list