After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642116 - rsvgoverlay: add position/dimension parameters
rsvgoverlay: add position/dimension parameters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-11 17:05 UTC by Olivier Aubert
Modified: 2011-02-18 08:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implement position/dimension parameters (11.29 KB, patch)
2011-02-11 17:05 UTC, Olivier Aubert
committed Details | Review

Description Olivier Aubert 2011-02-11 17:05:04 UTC
Created attachment 180670 [details] [review]
Implement position/dimension parameters

This patch implements absolute and relative position and dimension parameters for the rsvgoverlay element. For convenience and backward compatibility, the fit-to-frame parameter has been preserved and modifies the new parameters appropriately.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-14 09:53:57 UTC
commit a96fb3b4722cbb441d56a2a29adc2915f7e39daa
Author: Olivier Aubert <olivier.aubert@liris.cnrs.fr>
Date:   Fri Feb 11 17:59:31 2011 +0100

    rsvgoverlay: implement x/y/width/height (absolute and relative) positioning and dimensioning
    
    Signed-off-by: Olivier Aubert <olivier.aubert@liris.cnrs.fr>
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-14 09:55:35 UTC
One more thought. Would it make sense to turn the data_sink into a request-pad (like in videomixer2) and have the x,y,width,height properties on a overlay-pad. This way one could overlay several svg images. You could pre-flatten them probably using cairo.
Comment 3 Laura Lucas Alday 2011-02-18 06:59:00 UTC
Another idea: allow negative values for x and y. This would allow to place an image with part of it falling outside the video frame and invisible, and part inside and visible. Use case: for face detection overlays, a tall hat over the detected face, with its top invisible outside the video frame. It still makes sense to show the bottom part even if the top is truncated.
Comment 4 Olivier Aubert 2011-02-18 08:48:26 UTC
Indeed. See bug 642658.