[Bug 761251] textoverlay: Expose text rendering dimensions to applications and remove absolute positioning limit

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 10 11:47:06 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=761251

--- Comment #20 from Lubosz Sarnecki <lubosz at gmail.com> ---
Created attachment 323609
  --> https://bugzilla.gnome.org/attachment.cgi?id=323609&action=edit
basetextoverlay: Add new alignment type for unclamped positions

Maintains original behavior of GST_BASE_TEXT_OVERLAY_*ALIGN_POS
and introduces GST_BASE_TEXT_OVERLAY_*ALIGN_ABSOLUTE for unclamped positioning.

Maps absolute coordinates to be exactly inside of canvas for [0,0] - [1,1].

This means values [0.8,0.8] - [1.0,1.0] do not map to the same position
anymore.

[0,0]: Text Top Left is aligned to Video Top Left
[0.5,0.5]: Both centers are aligned
[1,1]: Bottom rights are aligned

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list