Dynamic Imxg2dcompositor
Tim Müller
tim at centricular.com
Sat Oct 28 10:51:51 UTC 2017
On Thu, 2017-10-26 at 01:57 -0700, chrisplus3 wrote:
Hi Chris,
> So how can I "convert" the gst-launch command to C/C++ code
Can't help you with that, sorry :) I'm sure you can find code examples
using "compositor" or "glvideomixer" somewhere though.
> to be able to (e.g.) change the position of every element during
> runtime ?
You can do that in code by
1) getting the input/sink pad from the mixer:
pad = gst_element_get_static_pad (mixer, "sink_0");
...
gst_object_unref (pad);
2) It has properties for position/zorder/alpha:
g_object_set (pad, "xpos", 10, "ypos", 10, NULL);
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list