basetextoverlay: Add new properties and alignment type for unclamped absolute positions
authorLubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>
Tue, 8 Mar 2016 18:22:34 +0000 (19:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 11 Mar 2016 13:20:26 +0000 (13:20 +0000)
commit8a443784c47431f41fe8dc5726cb2977e33fea9b
tree5bb3c363a86aeddecb0ebf426d1ad49295f7d4e2
parent241fcaa64567489ab592f391da66af71528ce373
basetextoverlay: Add new properties and alignment type for unclamped absolute positions

Introduces [x-absolute, y-absolute] properties
for positioning in +/- MAX_DOUBLE range.

Adds new (h/v)alignment type "absolute" where coordinates
map the text area to be exactly inside of video canvas for [0, 0] - [1, 1]:

[0, 0]: Top-Lefts of video and text are aligned
[0.5, 0.5]: Centers are aligned
[1, 1]: Bottom-Rights are aligned

https://bugzilla.gnome.org/show_bug.cgi?id=761251
ext/pango/gstbasetextoverlay.c
ext/pango/gstbasetextoverlay.h