i have a question about the dsexample


i added ‘[ds-example]’ option to the config file and run deepstream-app, it’s run pretty


i want to know where is function(“gst_dsexample_transform_ip”) call

i found a function(“create_dsexample_bin”) in the “deepstream_app.c”,
but couldn’t find call function(“gst_dsexample_transform_ip”) anywhere

how to find it?

help me please~

this place, sources/gst-plugins/gst-dsexample/gstdsexample.cpp

hi amycao

already i know that “gst_dsexample_transform_ip” is at “sources/gst-plugins/gst-dsexample/gstdsexample.cpp”

The question I’m curious about is…

How to call “gst_dsexample_transform_ip” from “deepstream_app”.

(I wonder how “gst_dsexample_transform_ip” works in “deepstream_app”.)

thank to your answer~

Deepstream is based on gstreamer framework, data flow between elments, and this function Called when element recieves an input buffer from upstream element, suggest you familiar with gstreamer first. here some link, https://gstreamer.freedesktop.org/documentation/tutorials/basic/concepts.html?gi-language=c#

i’m studying about to “gstreamer” now from your recommend.

now i understand basic flow about to gstreamer pipeline.

i did effort for find how to run “dsexample functions(start, stop, transform_ip…)” from “gstreamer”,

but i didn’t find anythings in “deepstream_app.c, deepstream_dsexample.c”

how can i find that
“this function Called when element recieves an input buffer from upstream element”
in deepstream_app source code?

thanks your kind

As stated before, data flow between elments, from deepstream_app.c you can see create_dsexample_bin, it will
create dsexample elements, it also create source streammux gie tracker tiler etc. elements, and linked them, please be
familar with gstreamer framework first.

Okay I’ll more study that

thank you amycao

++ i found Macro (‘G_DEFINE_TYPE(TN, t_n, T_P)’), all questions have been solved