1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavfilter
Marton Balint 498c90c708 avfilter/vf_overlay: fix alpha blending for planar formats with a transparent background
When the background had an alpha channel, the old code in blend_plane
calculated premultiplied alpha from the destination plane colors instead of the
destination alpha.

Also the calculation of the output alpha should only happen after the color
planes are already finished.

Fixes output of:
ffplay -f lavfi "testsrc2=alpha=32[a];color=black[b];[b][a]overlay[out0]"

Signed-off-by: Marton Balint <cus@passwd.hu>
2017-08-10 22:25:51 +02:00
..
2017-05-12 10:48:13 +02:00
2017-07-07 15:32:03 -04:00
2016-12-01 09:53:38 +01:00
2017-07-07 15:24:49 -04:00
2017-08-05 21:05:22 +02:00
2017-01-12 15:07:18 +01:00
2017-04-23 14:40:30 +07:00
2017-06-26 19:43:41 +02:00
2017-04-23 14:40:30 +07:00
2017-07-30 12:24:00 +02:00
2017-01-12 10:22:52 +01:00
2017-07-08 11:49:54 +02:00
2017-08-05 21:05:22 +02:00
2017-04-23 14:40:30 +07:00
2017-08-05 21:05:22 +02:00
2017-08-05 21:05:22 +02:00
2017-06-30 12:34:34 +02:00
2017-07-16 08:21:32 -04:00
2017-04-24 20:37:30 +02:00
2017-04-23 14:40:30 +07:00
2017-04-22 13:18:59 +02:00
2017-07-21 20:07:40 +02:00