[Bug 739566] gdkpixbufoverlay: Fix relative-x/y and widen their range

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Nov 3 07:01:17 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=739566
  GStreamer | gst-plugins-good | git

--- Comment #2 from Lazar Claudiu <lazar.claudiu.florin at gmail.com> 2014-11-03 15:01:11 UTC ---
Right now "xpos" tries to center the text and CLAMPs it :

      *xpos = (gint) (overlay->width * overlay->xpos) - width / 2;
      *xpos = CLAMP (*xpos, 0, overlay->width - width);

This conflicts with GstController usage mostly because of the CLAMP but also
because it doesn't offer precise positioning since text width is variable


I propose we add a "center-on-xpos" property that makes xpos behave like it
does now but when set to FALSE it removes the CLAMP and just sets xpos to
"overlay->width * overlay->xpos"

Same should be done for ypos and for gdkpixbufoverlay's relative-x/y

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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