GNOME Bugzilla – Bug 642116
rsvgoverlay: add position/dimension parameters
Last modified: 2011-02-18 08:48:26 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.
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>
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.
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.
Indeed. See bug 642658.