How to use metadata in gstreamer plugin nvvivafilter

Hi and good time
Hope you are feeling well
I wana use nvivafilter and nvsample for a processing application
In the sample you have wrote a funcation named
static void add_metadata(void ** usrptr)

And in the iva_metadata.h file is defined some metadata varible

typedef struct _location_t Location;

struct _location_t
int x1, y1;
int x2, y2;

typedef struct _bbox_t BBOX;

struct _bbox_t {
unsigned int framecnt;
unsigned int objectcnt;
Location location_list[NUM_LOCATIONS];

Right now,i wanna know how i can use the metadata in the gstreamer Main looper
For example ,how can i get the metadata in main gsteramer loop launcher??
May you help me??
Thank you for your time
Appreciate that
Best regards.

Moved to the Jetson forum

Which platform and JetPack you’re using? Thanks

The callback function is for private usage and not open for public. A possible solution is to use global variables. Please refer to this topic:
New Features for nvivafilter - #8 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.