textoverlay: converted AYUV to use 'A OVER B' alpha compositing
authorLane Brooks <dirjud@gmail.com>
Tue, 11 Jan 2011 17:34:33 +0000 (10:34 -0700)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 1 Apr 2011 08:35:08 +0000 (10:35 +0200)
commite2150b11ff8a98a3b7081d8106bca496a91c6b2b
tree128fbc503b02f59f3a27e713182bb5d2a760aed3
parente73f293ee560379d3667c832be8165042a186877
textoverlay: converted AYUV to use 'A OVER B' alpha compositing

'A OVER B' compositing is explained at
http://en.wikipedia.org/wiki/Alpha_compositing.

Previously, overlaying text on a transparent background image left the
text overlay also transparent. This pipeline shows such an example:

gst-launch videotestsrc pattern=white ! video/x-raw-yuv,format=\(fourcc\)AYUV ! alpha alpha=0.0 ! textoverlay text=Testing auto-resize=False font-desc=60px ! videomixer ! ffmpegcolorspace ! autovideosink

With this patch, text is composited "OVER" the background image and
thus is visible regardless of the alpha of the background image. The
overlay in the above pipeline works after applying this patch.
ext/pango/gsttextoverlay.c