[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:52:11 CET 2016


On 02/05/2016 03:43 PM, Michael Niedermayer wrote:
> On Fri, Feb 05, 2016 at 03:29:36AM +0100, Mats Peterson wrote:
>> On 02/05/2016 03:04 AM, Mats Peterson wrote:
>>> Yes, it could (regarding stride being zero). Here's an updated patch.
>>
>>
>> If you think it's extremely important to use monow for the case of
>> raw 1 bpp AVI without a palette, I can remove the "Temporary
>> solution" comments. But remember this will only be for AVI.
>
> 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



More information about the ffmpeg-devel mailing list