[FFmpeg-devel] [PATCH] lavfi/testsrc2: fix completely transparent alpha.

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Jul 21 16:46:00 EEST 2017


2017-07-21 15:43 GMT+02:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:
> 2017-07-21 15:40 GMT+02:00 Nicolas George <george at nsup.org>:
>> Le tridi 3 thermidor, an CCXXV, Carl Eugen Hoyos a écrit :
>>> The default you suggest is of course much better than the original
>>> default but ideally, some kind of "banding" should be used to allow
>>> testing transparency in libswscale, encoders and decoders.
>>
>> Can you be a little more specific? I am not sure I understand what
>> you mean exactly.
>
> I meant value = width or value = height

alpha_value = x * 255 / width;
or
alpha_value = y * 255 / height;

Sorry for being unclear, Carl Eugen


More information about the ffmpeg-devel mailing list