encapsulating cairooverlay in custom plugin

tom via gstreamer-devel <[email protected]> Fri, 20 Sep 2024 23:12:49 +1000
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAHwX21opA2XSPw1T9Dpi=WybonC8X9-++O4P5zZdo64_z6Z9zQ@mail.gmail.com>
--000000000000e39fe006228ccd41
Content-Type: text/plain; charset="UTF-8"

I see the example of the cairooverlay at

https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/cairo/cairo_overlay.c

and I would like to encapsulate this example in a plugin, which type would
be the best ?

so i could do :
gst-launch-1.0 videotestsrc pattern=13 ! mycairoencapsulation !
autovideosink

I tried to do it in a GST_BIN but the pad's don't get connected.
i tried to do it in a GST_TYPE_VIDEO_FILTER but the output is completely
messed up.

Is there an example that already has this encapsulated with a simple draw
function ?
or if there isn't which direction should i go in ?

Thanks,
Tom

--000000000000e39fe006228ccd41
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=
=3D"gmail_signature">I see the example of the cairooverlay at<br><br><a hre=
f=3D"https://github.com/GStreamer/gst-plugins-good/blob/master/tests/exampl=
es/cairo/cairo_overlay.c">https://github.com/GStreamer/gst-plugins-good/blo=
b/master/tests/examples/cairo/cairo_overlay.c</a><br><br>and I would like t=
o encapsulate this example in a plugin, which type would be the best ?<br><=
br>so i could do :<br>gst-launch-1.0 videotestsrc pattern=3D13 ! mycairoenc=
apsulation ! autovideosink<br><br>I tried to do it in a GST_BIN but the pad=
&#39;s don&#39;t get connected.<br>i tried to do it in a GST_TYPE_VIDEO_FIL=
TER but the output is completely messed up.<br><br>Is there an example that=
 already has this encapsulated with a simple draw function ?<br>or if there=
 isn&#39;t which direction should i go in ?<br><br>Thanks,</div><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature">Tom</div></div>

--000000000000e39fe006228ccd41--