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

Nicolas George george at nsup.org
Fri Jul 21 16:51:07 EEST 2017

Le tridi 3 thermidor, an CCXXV, Carl Eugen Hoyos a écrit :
> alpha_value = x * 255 / width;
> or
> alpha_value = y * 255 / height;
> Sorry for being unclear, Carl Eugen

Oh, you mean a gradient on the alpha channel. It is not really possible
without making the code more complex and I think significantly slower.
A coarse gradient between the different vertical bands is easy, but the
alpha must be constant in each band, just like the color.

A gradient on the undulating diagonal line is possible and easy, OTOH,
since it already has a color gradient.

What do you think?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170721/9256c768/attachment.sig>

More information about the ffmpeg-devel mailing list