[FFmpeg-devel] [RFC]lavc/ffv1dec: Scale msb-packed output to full 16bit

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Nov 16 13:50:07 EET 2016


2016-11-16 12:38 GMT+01:00 Hendrik Leppkes <h.leppkes at gmail.com>:
> On Wed, Nov 16, 2016 at 12:15 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> Hi!
>>
>> Attached patch improves output for some ffv1 files imo.
>> Current slowdown for the existing decode-line timer is
>> 2%, I wonder if this can be improved through refactoring.
>>
>> Please comment, Carl Eugen
>>
>
> Isn't ffv1 lossless? How can it improve? Was it not lossless before,
> is it lossless now?

It was lossless before and is lossless after the patch but it
output the 16bit format that you don't like and of which you
claim it breaks with find_best_pix_fmt() - I still believe this
should be trivial to fix.

Currently white is gray, the patch tries to fix this.

Carl Eugen


More information about the ffmpeg-devel mailing list