NVIDIA DeepStream SDK API Reference

6.0.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvdsmeta.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  *
10  */
11 
27 #ifndef _NVDSMETA_NEW_H_
28 #define _NVDSMETA_NEW_H_
29 
30 #include <stdbool.h>
31 
32 #include "glib.h"
33 #include "gmodule.h"
34 #include "nvll_osd_struct.h"
35 #include "nvds_roi_meta.h"
36 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
44 #define MAX_USER_FIELDS 4
45 
46 #define MAX_RESERVED_FIELDS 4
47 
48 #define MAX_LABEL_SIZE 128
49 
51 #define MAX_ELEMENTS_IN_DISPLAY_META 16
52 
53 #define UNTRACKED_OBJECT_ID 0xFFFFFFFFFFFFFFFF
54 
55 typedef GList NvDsFrameMetaList;
56 typedef GList NvDsUserMetaList;
57 typedef GList NvDsObjectMetaList;
58 typedef GList NvDisplayMetaList;
59 typedef GList NvDsClassifierMetaList;
60 typedef GList NvDsLabelInfoList;
61 typedef GList NvDsMetaList;
62 typedef void NvDsElementMeta;
63 
64 /* In the following doc comment:
65  * @param[in] user_data A pointer to user-specific data. For internal use
66  * only; in applications it must be set to NULL.
67  */
78 typedef gpointer (*NvDsMetaCopyFunc) (gpointer data, gpointer user_data);
79 
90 typedef void (*NvDsMetaReleaseFunc) (gpointer data, gpointer user_data);
91 
99 typedef enum {
165  NVDS_FORCE32_META = 0x7FFFFFFF
166 } NvDsMetaType;
167 
172 typedef struct _NvDsComp_BboxInfo
173 {
176 
180 typedef struct _NvDsMetaPool {
186  NvDsMetaList * empty_list;
187  NvDsMetaList * full_list;
190 }NvDsMetaPool;
191 
195 typedef struct _NvDsBaseMeta {
201  void * uContext;
209 } NvDsBaseMeta;
210 
221 typedef struct _NvDsBatchMeta {
249  NvDsFrameMetaList *frame_meta_list;
252  NvDsUserMetaList *batch_user_meta_list;
255  GRecMutex meta_mutex;
260 } NvDsBatchMeta;
261 
265 typedef struct _NvDsFrameMeta {
270  guint pad_index;
274  guint batch_id;
276  gint frame_num;
278  guint64 buf_pts;
280  guint64 ntp_timestamp;
283  guint source_id;
287  /* Holds the width of the frame at input to Gst-streammux. */
289  /* Holds the height of the frame at input to Gst-streammux. */
291  /* Holds the surface type of the subframe, required in case of
292  multiple surfaces in the frame. */
294  /* Holds the surface index of tje subframe, required in case of
295  multiple surfaces in the frame. */
300  gboolean bInferDone;
303  NvDsObjectMetaList *obj_meta_list;
306  NvDisplayMetaList *display_meta_list;
309  NvDsUserMetaList *frame_user_meta_list;
312  /* Holds the width of the frame at output of Gst-streammux. */
314  /* Holds the height of the frame at output of Gst-streammux. */
318 } NvDsFrameMeta;
319 
323 typedef struct _NvDsObjectMeta {
333  gint class_id;
336  guint64 object_id;
348  gfloat confidence;
369  NvDsClassifierMetaList *classifier_meta_list;
371  NvDsUserMetaList *obj_user_meta_list;
377 
381 typedef struct _NvDsClassifierMeta {
384  guint num_labels;
388  NvDsLabelInfoList *label_info_list;
390  const gchar *classifier_type;
392 
396 typedef struct _NvDsLabelInfo {
399  guint num_classes;
407  guint label_id;
409  gfloat result_prob;
410 } NvDsLabelInfo;
411 
415 typedef struct NvDsDisplayMeta {
418  guint num_rects;
420  guint num_labels;
422  guint num_lines;
424  guint num_arrows;
426  guint num_circles;
448 
452 typedef struct _NvDsUserMeta {
457 } NvDsUserMeta;
458 
465 void nvds_acquire_meta_lock (NvDsBatchMeta *batch_meta);
466 
472 void nvds_release_meta_lock (NvDsBatchMeta *batch_meta);
473 
480 NvDsBatchMeta *nvds_create_batch_meta(guint max_batch_size);
481 
489 gboolean nvds_destroy_batch_meta(NvDsBatchMeta *batch_meta);
490 
502 
512  NvDsFrameMeta * frame_meta);
513 
523  NvDsFrameMeta * frame_meta);
524 
536 
549 void nvds_add_obj_meta_to_frame(NvDsFrameMeta * frame_meta,
550  NvDsObjectMeta *obj_meta, NvDsObjectMeta *obj_parent);
551 
561  NvDsObjectMeta *obj_meta);
562 
576  NvDsBatchMeta *batch_meta);
577 
591  NvDsClassifierMeta * classifier_meta);
592 
602  NvDsClassifierMeta *classifier_meta);
603 
617  NvDsClassifierMeta * classifier_meta);
618 
628  NvDsClassifierMeta *classifier_meta);
629 
641  NvDsBatchMeta *batch_meta);
642 
655  NvDsDisplayMeta * display_meta);
656 
666  NvDsDisplayMeta *display_meta);
667 
681  NvDsBatchMeta *batch_meta);
682 
692  NvDsClassifierMeta *classifier_meta, NvDsLabelInfo * label_info_meta);
693 
703  NvDsClassifierMeta *classifier_meta, NvDsLabelInfo *label_info_meta);
704 
714  NvDsUserMeta * user_meta);
715 
725  NvDsUserMeta * user_meta);
726 
735 void nvds_add_user_meta_to_roi(NvDsRoiMeta * roi_meta,
736  NvDsUserMeta * user_meta);
737 
747  NvDsUserMeta * user_meta);
748 
760 
772  NvDsUserMeta * user_meta);
773 
783  NvDsUserMeta * user_meta);
784 
794  NvDsUserMeta * user_meta);
795 
805  NvDsUserMeta * user_meta);
806 
815 gboolean nvds_get_current_metadata_info(NvDsBatchMeta *batch_meta);
816 
826 gpointer nvds_batch_meta_copy_func (gpointer data, gpointer user_data);
827 
835 void nvds_batch_meta_release_func(gpointer data, gpointer user_data);
836 
845 NvDsFrameMeta *nvds_get_nth_frame_meta (NvDsFrameMetaList *frame_meta_list,
846  guint index);
847 
856  NvDsFrameMetaList *meta_list);
857 
865 void nvds_clear_obj_meta_list(NvDsFrameMeta *frame_meta,
866  NvDsObjectMetaList *meta_list);
867 
877  NvDsClassifierMetaList *meta_list);
878 
888  NvDsLabelInfoList *meta_list);
889 
898  NvDisplayMetaList *meta_list);
899 
909  NvDsUserMetaList *meta_list);
910 
919  NvDsUserMetaList *meta_list);
920 
929  NvDsUserMetaList *meta_list);
930 
940 NvDsMetaList *nvds_clear_meta_list(NvDsBatchMeta *batch_meta,
941  NvDsMetaList *meta_list, NvDsMetaPool *meta_pool);
942 
949 void nvds_copy_frame_meta(NvDsFrameMeta *src_frame_meta,
950  NvDsFrameMeta *dst_frame_meta);
951 
958 void nvds_copy_obj_meta(NvDsObjectMeta *src_object_meta,
959  NvDsObjectMeta *dst_object_meta);
960 
967 void nvds_copy_classifier_meta(NvDsClassifierMeta *src_classifier_meta,
968  NvDsClassifierMeta *dst_classifier_meta);
969 
976 void nvds_copy_label_info_meta(NvDsLabelInfo *src_label_info,
977  NvDsLabelInfo *dst_label_info);
978 
985 void nvds_copy_display_meta(NvDsDisplayMeta *src_display_meta,
986  NvDsDisplayMeta *dst_display_meta);
987 
995 void nvds_copy_batch_user_meta_list(NvDsUserMetaList *src_user_meta_list,
996  NvDsBatchMeta *dst_batch_meta);
997 
1005 void nvds_copy_frame_user_meta_list(NvDsUserMetaList *src_user_meta_list,
1006  NvDsFrameMeta *dst_frame_meta);
1007 
1015 void nvds_copy_obj_user_meta_list(NvDsUserMetaList *src_user_meta_list,
1016  NvDsObjectMeta *dst_object_meta);
1017 
1025 void nvds_copy_display_meta_list(NvDisplayMetaList *src_display_meta_list,
1026  NvDsFrameMeta *dst_frame_meta);
1027 
1035 void nvds_copy_frame_meta_list (NvDsFrameMetaList *src_frame_meta_list,
1036  NvDsBatchMeta *dst_batch_meta);
1037 
1045 void nvds_copy_obj_meta_list(NvDsObjectMetaList *src_obj_meta_list,
1046  NvDsFrameMeta *dst_frame_meta);
1047 
1057 void nvds_copy_classification_list(NvDsClassifierMetaList *src_classifier_meta_list,
1058  NvDsObjectMeta *dst_object_meta);
1059 
1069 void nvds_copy_label_info_list(NvDsLabelInfoList *src_label_info_list,
1070  NvDsClassifierMeta *dst_classifier_meta);
1071 
1081 NvDsMetaType nvds_get_user_meta_type(gchar *meta_descriptor);
1082 
1083 #ifdef __cplusplus
1084 }
1085 #endif
1086 #endif
1087 
NvOSD_ArrowParams arrow_params[MAX_ELEMENTS_IN_DISPLAY_META]
Holds an array of arrow parameters that the user can use to draw arrows in the frame.
Definition: nvdsmeta.h:439
Specifies metadata type for segmentation model output attached by Gst-nvinfer.
Definition: nvdsmeta.h:128
gchar * pResult_label
Holds a pointer to the result label if its length exceeds MAX_LABEL_SIZE bytes.
Definition: nvdsmeta.h:403
Holds metadata for a frame in a batch.
Definition: nvdsmeta.h:265
guint element_size
Definition: nvdsmeta.h:183
NvDsMetaList * nvds_clear_meta_list(NvDsBatchMeta *batch_meta, NvDsMetaList *meta_list, NvDsMetaPool *meta_pool)
Removes all of the metadata elements attached to a metadata list.
Specifies metadata type for a payload generated by a message converter.
Definition: nvdsmeta.h:116
Specifies metadata type for display.
Definition: nvdsmeta.h:108
NvDsMetaList * full_list
Definition: nvdsmeta.h:187
NvDsMetaReleaseFunc release_func
Holds a user-defined release function.
Definition: nvdsmeta.h:208
gint64 reserved[MAX_RESERVED_FIELDS]
For internal use.
Definition: nvdsmeta.h:317
Copyright (c) 2021, NVIDIA CORPORATION.
Holds unclipped positional bounding box coordinates of the object processed by the component...
Definition: nvdsmeta.h:172
struct _NvDsClassifierMeta NvDsClassifierMeta
Holds classifier metadata for an object.
gint num_surfaces_per_frame
Holds the number of surfaces in the frame, required in case of multiple surfaces in the frame...
Definition: nvdsmeta.h:286
guint64 object_id
Holds a unique ID for tracking the object.
Definition: nvdsmeta.h:336
Holds information about base metadata of a given metadata type.
Definition: nvdsmeta.h:195
guint num_full_elements
Definition: nvdsmeta.h:185
NvDsMetaList * empty_list
Definition: nvdsmeta.h:186
NvBbox_Coords org_bbox_coords
Definition: nvdsmeta.h:174
NvOSD_TextParams text_params[MAX_ELEMENTS_IN_DISPLAY_META]
Holds an array of text parameters for user-defined strings that can be overlayed using this structure...
Definition: nvdsmeta.h:433
NvDisplayMetaList * display_meta_list
Holds a pointer to a list of pointers of type NvDsDisplayMeta in use for the frame.
Definition: nvdsmeta.h:306
gchar result_label[MAX_LABEL_SIZE]
Holds an string describing the label of the classified object.
Definition: nvdsmeta.h:401
Specifies metadata type for a label assigned by a classifier.
Definition: nvdsmeta.h:112
void nvds_remove_user_meta_from_roi(NvDsRoiMeta *obj_meta, NvDsUserMeta *user_meta)
Removes a user meta from an roi meta to which it is attached.
void nvds_remove_user_meta_from_frame(NvDsFrameMeta *frame_meta, NvDsUserMeta *user_meta)
Removes a user meta from a frame meta to which it is attached.
NvDsMetaCopyFunc copy_func
Holds a user-defined copy function.
Definition: nvdsmeta.h:205
GList NvDisplayMetaList
Definition: nvdsmeta.h:58
gint class_id
Holds the index of the object class inferred by the primary detector/classifier.
Definition: nvdsmeta.h:333
NvDsClassifierMeta * nvds_acquire_classifier_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires a classifier meta from a batch meta's classifier meta pool.
Specifies metadata type for raw inference output attached by Gst-nvinfer.
Definition: nvdsmeta.h:125
void nvds_clear_obj_user_meta_list(NvDsObjectMeta *object_meta, NvDsUserMetaList *meta_list)
Removes all of the user metadata attached to an object meta.
guint num_lines
Holds the number of lines described.
Definition: nvdsmeta.h:422
void nvds_remove_user_meta_from_batch(NvDsBatchMeta *batch_meta, NvDsUserMeta *user_meta)
Removes a user meta from a batch meta to which it is attached.
struct _NvDsLabelInfo NvDsLabelInfo
Holds label metadata for the classifier.
NvOSD_TextParams text_params
Holds text describing the object.
Definition: nvdsmeta.h:365
guint label_id
Holds the label ID in case there are multiple label classifiers.
Definition: nvdsmeta.h:407
void nvds_copy_obj_user_meta_list(NvDsUserMetaList *src_user_meta_list, NvDsObjectMeta *dst_object_meta)
Makes a deep copy of a source user meta list to the user meta list in a specified object meta...
gint unique_component_id
Holds a unique component ID for the classifier metadata.
Definition: nvdsmeta.h:386
void nvds_add_user_meta_to_batch(NvDsBatchMeta *batch_meta, NvDsUserMeta *user_meta)
Add a user meta to a batch meta.
struct _NvDsMetaPool NvDsMetaPool
Holds information about a given metadata pool.
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:397
Reserved field.
Definition: nvdsmeta.h:147
void nvds_remove_user_meta_from_object(NvDsObjectMeta *obj_meta, NvDsUserMeta *user_meta)
Removes a user meta from an object meta to which it is attached.
void nvds_remove_classifier_meta_from_obj(NvDsObjectMeta *obj_meta, NvDsClassifierMeta *classifier_meta)
Removes a classifier meta from the object meta to which it is attached.
gint64 misc_osd_data[MAX_USER_FIELDS]
Holds an array of user-defined OSD metadata.
Definition: nvdsmeta.h:444
Holds label metadata for the classifier.
Definition: nvdsmeta.h:396
void nvds_copy_classifier_meta(NvDsClassifierMeta *src_classifier_meta, NvDsClassifierMeta *dst_classifier_meta)
Makes a deep copy of a classifier meta to another classifier meta.
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:416
guint num_rects
Holds the number of rectangles described.
Definition: nvdsmeta.h:418
guint num_arrows
Holds the number of arrows described.
Definition: nvdsmeta.h:424
Specifies metadata type for an optical flow.
Definition: nvdsmeta.h:120
Holds unclipped bounding box coordinates of the object.
void nvds_copy_frame_meta(NvDsFrameMeta *src_frame_meta, NvDsFrameMeta *dst_frame_meta)
Makes a deep copy of a frame meta to another frame meta.
struct _NvDsObjectMeta * parent
Holds a pointer to the parent NvDsObjectMeta.
Definition: nvdsmeta.h:327
gboolean bInferDone
Holds a Boolean indicating whether inference is performed on the frame.
Definition: nvdsmeta.h:300
void nvds_clear_frame_user_meta_list(NvDsFrameMeta *frame_meta, NvDsUserMetaList *meta_list)
Removes all of the user metadata attached to the frame meta.
NvDsDisplayMeta * nvds_acquire_display_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires a display meta from a batch meta's display meta pool.
NvDsMetaReleaseFunc release_func
Definition: nvdsmeta.h:189
Holds user metadata.
Definition: nvdsmeta.h:452
struct _NvDsComp_BboxInfo NvDsComp_BboxInfo
Holds unclipped positional bounding box coordinates of the object processed by the component...
Holds the box parameters of the box to be overlayed.
#define MAX_USER_FIELDS
Defines the number of additional fields available to the user in the metadata structure.
Definition: nvdsmeta.h:44
guint max_frames_in_batch
Holds the maximum number of frames in the batch.
Definition: nvdsmeta.h:224
NvDsBaseMeta base_meta
Holds the base metadata for the frame.
Definition: nvdsmeta.h:267
NvDsMetaPool * obj_meta_pool
Holds a pointer to a pool of pointers of type NvDsObjMeta, representing a pool of object metas...
Definition: nvdsmeta.h:232
void * uContext
Holds a pointer to a user context.
Definition: nvdsmeta.h:201
gint64 misc_obj_info[MAX_USER_FIELDS]
Holds additional user-defined object information.
Definition: nvdsmeta.h:373
NvDsFrameMeta * nvds_acquire_frame_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires a frame meta from a batch's frame meta pool.
guint num_labels
Holds the number of outputs/labels produced by the classifier.
Definition: nvdsmeta.h:384
NvOSD_MaskParams mask_params
Holds mask parameters for the object.
Definition: nvdsmeta.h:362
gint64 misc_batch_info[MAX_USER_FIELDS]
Holds an array of user-specific batch information.
Definition: nvdsmeta.h:257
guint batch_id
Holds the location of the frame in the batch.
Definition: nvdsmeta.h:274
void nvds_copy_frame_meta_list(NvDsFrameMetaList *src_frame_meta_list, NvDsBatchMeta *dst_batch_meta)
Makes a deep copy of a source frame meta list to the frame meta list in a specified batch meta...
NvDsUserMeta * nvds_acquire_user_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires a user meta from a batch meta's user meta pool.
void nvds_add_display_meta_to_frame(NvDsFrameMeta *frame_meta, NvDsDisplayMeta *display_meta)
Adds a display meta to the appropriate frame meta.
Specifies metadata type for a detected object.
Definition: nvdsmeta.h:106
struct _NvDsFrameMeta NvDsFrameMeta
Holds metadata for a frame in a batch.
Holds circle parameters to be overlayed.
gboolean nvds_destroy_batch_meta(NvDsBatchMeta *batch_meta)
Destroys a batch metadata structure.
void nvds_clear_frame_meta_list(NvDsBatchMeta *batch_meta, NvDsFrameMetaList *meta_list)
Removes all of the frame metadata attached to a batch meta.
Holds the mask parameters of the segment to be overlayed.
GList NvDsLabelInfoList
Definition: nvdsmeta.h:60
void nvds_copy_batch_user_meta_list(NvDsUserMetaList *src_user_meta_list, NvDsBatchMeta *dst_batch_meta)
Makes a deep copy of a user meta list to the user meta list in a specified batch meta.
void nvds_remove_obj_meta_from_frame(NvDsFrameMeta *frame_meta, NvDsObjectMeta *obj_meta)
Removes an object meta from the frame meta to which it is attached.
Specifies metadata type for preprocess scale&converted ROIs attached by Gst-nvdspreprocess.
Definition: nvdsmeta.h:140
Holds information about a given metadata pool.
Definition: nvdsmeta.h:180
Holds information about a formed batch containing frames from different sources.
Definition: nvdsmeta.h:221
void nvds_copy_display_meta(NvDsDisplayMeta *src_display_meta, NvDsDisplayMeta *dst_display_meta)
Makes a deep copy of a display meta to another display meta.
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:453
Holds arrow parameters to be overlaid.
void nvds_remove_display_meta_from_frame(NvDsFrameMeta *frame_meta, NvDsDisplayMeta *display_meta)
Removes a display meta from the frame meta to which it is attached.
Holds Information about ROI Metadata.
Definition: nvds_roi_meta.h:79
NvDsMetaPool * label_info_meta_pool
Holds a pointer to a pool of pointers of type NvDsLabelInfo, representing a pool of label metas...
Definition: nvdsmeta.h:244
Specifies metadata type for preprocess batch level attached by Gst-nvdspreprocess.
Definition: nvdsmeta.h:143
NvDsLabelInfoList * label_info_list
Holds a pointer to a list of pointers of type NvDsLabelInfo.
Definition: nvdsmeta.h:388
NvDsMetaPool * display_meta_pool
Holds a pointer to a pool of pointers of type NvDsDisplayMeta, representing a pool of display metas...
Definition: nvdsmeta.h:238
void nvds_remove_classifier_meta_from_roi(NvDsRoiMeta *roi_meta, NvDsClassifierMeta *classifier_meta)
Removes a classifier meta from the roi meta to which it is attached.
void nvds_clear_display_meta_list(NvDsFrameMeta *frame_meta, NvDisplayMetaList *meta_list)
Removes all of the display metadata attached to a frame meta.
NvDsMetaType nvds_get_user_meta_type(gchar *meta_descriptor)
Generates a unique user metadata type from a specified string describing user-specific metadata...
GRecMutex meta_mutex
Holds a lock to be set before accessing metadata to avoid simultaneous update by multiple components...
Definition: nvdsmeta.h:255
NvDsLabelInfo * nvds_acquire_label_info_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires a label info meta from a batch meta's label info meta pool.
struct _NvDsBaseMeta NvDsBaseMeta
Holds information about base metadata of a given metadata type.
void nvds_clear_classifier_meta_list(NvDsObjectMeta *obj_meta, NvDsClassifierMetaList *meta_list)
Removes all of the classifier metadata attached to an object meta.
Reserved for internal use.
Definition: nvdsmeta.h:114
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:382
guint result_class_id
Holds the class UD of the best result.
Definition: nvdsmeta.h:405
gpointer(* NvDsMetaCopyFunc)(gpointer data, gpointer user_data)
Defines the type of a callback to copy metadata.
Definition: nvdsmeta.h:78
void nvds_acquire_meta_lock(NvDsBatchMeta *batch_meta)
Acquires a lock before updating metadata.
Holds classifier metadata for an object.
Definition: nvdsmeta.h:381
void nvds_add_classifier_meta_to_roi(NvDsRoiMeta *roi_meta, NvDsClassifierMeta *classifier_meta)
Adds a classifier meta to the appropriate roi meta.
Specifies user defined custom message blob to be part of payload generated.
Definition: nvdsmeta.h:145
void nvds_add_classifier_meta_to_object(NvDsObjectMeta *obj_meta, NvDsClassifierMeta *classifier_meta)
Adds a classifier meta to the appropriate object meta.
void nvds_copy_obj_meta_list(NvDsObjectMetaList *src_obj_meta_list, NvDsFrameMeta *dst_frame_meta)
Makes a deep copy of a source object meta list to the object meta list in a specified frame meta...
guint64 ntp_timestamp
Holds the ntp timestamp.
Definition: nvdsmeta.h:280
NvDsObjectMetaList * obj_meta_list
Holds a pointer to a list of pointers of type NvDsObjectMeta in use for the frame.
Definition: nvdsmeta.h:303
void nvds_release_meta_lock(NvDsBatchMeta *batch_meta)
Releases the lock after updating metadata.
void nvds_copy_display_meta_list(NvDisplayMetaList *src_display_meta_list, NvDsFrameMeta *dst_frame_meta)
Makes a deep copy of a source display meta list to the display meta list in a specified frame meta...
void NvDsElementMeta
Definition: nvdsmeta.h:62
GList NvDsUserMetaList
Definition: nvdsmeta.h:56
void nvds_clear_batch_user_meta_list(NvDsBatchMeta *batch_meta, NvDsUserMetaList *meta_list)
Removes all of the user metadata attached to the batch meta.
guint max_elements_in_pool
Definition: nvdsmeta.h:182
NvDsMetaPool * classifier_meta_pool
Holds a pointer to a pool of pointers of type NvDsClassifierMeta, representing a pool of classifier m...
Definition: nvdsmeta.h:235
NvOSD_RectParams rect_params[MAX_ELEMENTS_IN_DISPLAY_META]
Holds an array of positional parameters for rectangles.
Definition: nvdsmeta.h:430
gint64 reserved[MAX_RESERVED_FIELDS]
For internal use.
Definition: nvdsmeta.h:375
metadata type to be set for tracking previous frames
Definition: nvdsmeta.h:133
GList NvDsFrameMetaList
Definition: nvdsmeta.h:55
Holds metadata for an object in the frame.
Definition: nvdsmeta.h:323
void nvds_remove_frame_meta_from_batch(NvDsBatchMeta *batch_meta, NvDsFrameMeta *frame_meta)
Removes a frame meta from a batch meta.
Specifies metadata type for an object classifier.
Definition: nvdsmeta.h:110
void nvds_copy_classification_list(NvDsClassifierMetaList *src_classifier_meta_list, NvDsObjectMeta *dst_object_meta)
Makes a deep copy of a source classifier meta list to the classifier meta list in a specified object ...
void nvds_copy_frame_user_meta_list(NvDsUserMetaList *src_user_meta_list, NvDsFrameMeta *dst_frame_meta)
Makes a deep copy of a source user meta list to the user meta list in a specified frame meta...
gint64 reserved[MAX_RESERVED_FIELDS]
For internal use.
Definition: nvdsmeta.h:446
Holds the box parameters of a line to be overlayed.
void nvds_add_label_info_meta_to_classifier(NvDsClassifierMeta *classifier_meta, NvDsLabelInfo *label_info_meta)
Adds a label info meta to a classifier meta.
gfloat result_prob
Holds the probability of best result.
Definition: nvdsmeta.h:409
gpointer nvds_batch_meta_copy_func(gpointer data, gpointer user_data)
Copies or transforms meta data from one buffer to another.
gfloat tracker_confidence
Holds a confidence value for the object set by nvdcf_tracker.
Definition: nvdsmeta.h:351
struct _NvDsObjectMeta NvDsObjectMeta
Holds metadata for an object in the frame.
NvDsMetaPool * user_meta_pool
Holds a pointer to a pool of pointers of type NvDsUserMeta, representing a pool of user metas...
Definition: nvdsmeta.h:241
void nvds_add_user_meta_to_obj(NvDsObjectMeta *obj_meta, NvDsUserMeta *user_meta)
Add a user meta user to an object meta.
void nvds_batch_meta_release_func(gpointer data, gpointer user_data)
Releases metadata from a batch meta.
gint frame_num
Holds the current frame number of the source.
Definition: nvdsmeta.h:276
Specifies metadata type for JPEG-encoded object crops.
Definition: nvdsmeta.h:131
guint pad_index
Holds the pad or port index of the Gst-streammux plugin for the frame in the batch.
Definition: nvdsmeta.h:270
NVIDIA Multimedia Utilities: On-Screen Display Manager
Holds parameters of text to be overlayed.
NvDsFrameMeta * nvds_get_nth_frame_meta(NvDsFrameMetaList *frame_meta_list, guint index)
Returns a pointer to a specified frame meta in the frame meta list.
void nvds_add_user_meta_to_frame(NvDsFrameMeta *frame_meta, NvDsUserMeta *user_meta)
Add a user meta to a frame meta.
guint num_labels
Holds the number of labels (strings) described.
Definition: nvdsmeta.h:420
guint source_frame_height
Definition: nvdsmeta.h:290
NvDsUserMetaList * obj_user_meta_list
Holds a pointer to a list of pointers of type NvDsUserMeta.
Definition: nvdsmeta.h:371
guint surface_index
Definition: nvdsmeta.h:296
void nvds_clear_label_info_meta_list(NvDsClassifierMeta *classifier_meta, NvDsLabelInfoList *meta_list)
Removes all of the label info metadata attached to a classifier meta.
NvDsClassifierMetaList * classifier_meta_list
Holds a pointer to a list of pointers of type NvDsClassifierMeta.
Definition: nvdsmeta.h:369
guint pipeline_height
Definition: nvdsmeta.h:315
guint num_classes
Holds the number of classes of the given label.
Definition: nvdsmeta.h:399
Specifies metadata type for a latency measurement.
Definition: nvdsmeta.h:122
NvOSD_RectParams rect_params
Holds a structure containing positional parameters of the object processed by the last component that...
Definition: nvdsmeta.h:359
Specifies metadata type for formed audio batch.
Definition: nvdsmeta.h:135
guint surface_type
Definition: nvdsmeta.h:293
Specifies metadata type for a payload generated by a message broker.
Definition: nvdsmeta.h:118
guint num_frames_in_batch
Holds the number of frames now in the batch.
Definition: nvdsmeta.h:226
void nvds_copy_label_info_list(NvDsLabelInfoList *src_label_info_list, NvDsClassifierMeta *dst_classifier_meta)
Makes a deep copy of a source label info meta list to the label info meta list in a specified classif...
struct _NvDsBatchMeta NvDsBatchMeta
Holds information about a formed batch containing frames from different sources.
guint source_id
Holds the source IDof the frame in the batch, e.g.
Definition: nvdsmeta.h:283
gint64 reserved[MAX_RESERVED_FIELDS]
For internal use.
Definition: nvdsmeta.h:259
gfloat confidence
Holds a confidence value for the object, set by the inference component.
Definition: nvdsmeta.h:348
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:324
Specifies metadata type for audio frame.
Definition: nvdsmeta.h:137
const gchar * classifier_type
Holds the type of the classifier.
Definition: nvdsmeta.h:390
struct _NvDsUserMeta NvDsUserMeta
Holds user metadata.
NvDsMetaType meta_type
Definition: nvdsmeta.h:181
void nvds_add_obj_meta_to_frame(NvDsFrameMeta *frame_meta, NvDsObjectMeta *obj_meta, NvDsObjectMeta *obj_parent)
Adds an object meta to a frame meta.
Specifies metadata type for formed batch.
Definition: nvdsmeta.h:102
void * user_meta_data
Holds a pointer to user data to be attached.
Definition: nvdsmeta.h:456
#define MAX_ELEMENTS_IN_DISPLAY_META
Defines the maximum number of elements that a given display meta can hold.
Definition: nvdsmeta.h:51
guint num_empty_elements
Definition: nvdsmeta.h:184
gint64 misc_frame_info[MAX_USER_FIELDS]
Holds additional user-defined frame information.
Definition: nvdsmeta.h:311
NvDsComp_BboxInfo tracker_bbox_info
Holds a structure containing bounding box coordinates of the object when processed by tracker...
Definition: nvdsmeta.h:342
guint64 buf_pts
Holds the presentation timestamp (PTS) of the frame.
Definition: nvdsmeta.h:278
NvDsFrameMetaList * frame_meta_list
Holds a pointer to a list of pointers of type NvDsFrameMeta or NvDsAudioFrameMeta (when the batch rep...
Definition: nvdsmeta.h:249
NvDsMetaPool * frame_meta_pool
Holds a pointer to a pool of pointers of type NvDsFrameMeta, representing a pool of frame metas...
Definition: nvdsmeta.h:229
void nvds_clear_obj_meta_list(NvDsFrameMeta *frame_meta, NvDsObjectMetaList *meta_list)
Removes all the object metadata attached to a frame meta.
Start adding user specific meta types from here.
Definition: nvdsmeta.h:164
void(* NvDsMetaReleaseFunc)(gpointer data, gpointer user_data)
Defines the type of a callback to free metadata.
Definition: nvdsmeta.h:90
gint unique_component_id
Holds a unique component ID that identifies the metadata in this structure.
Definition: nvdsmeta.h:330
void nvds_remove_label_info_meta_from_classifier(NvDsClassifierMeta *classifier_meta, NvDsLabelInfo *label_info_meta)
Removes a label info meta from the classifier meta to which it is attached.
#define MAX_LABEL_SIZE
Defines the maximum size of an array for storing a text result.
Definition: nvdsmeta.h:48
GList NvDsMetaList
Definition: nvdsmeta.h:61
Specifies the start of a range of enum values that represent types of NVIDIA-defined Gst metas...
Definition: nvdsmeta.h:153
NvDsUserMetaList * batch_user_meta_list
Holds a pointer to a list of pointers of type NvDsUserMeta, representing user metas in the current ba...
Definition: nvdsmeta.h:252
NvDsObjectMeta * nvds_acquire_obj_meta_from_pool(NvDsBatchMeta *batch_meta)
Acquires an object meta from a batch meta's object meta pool.
NvDsMetaCopyFunc copy_func
Definition: nvdsmeta.h:188
void nvds_copy_label_info_meta(NvDsLabelInfo *src_label_info, NvDsLabelInfo *dst_label_info)
Makes a deep copy of a label info meta to another label info meta.
#define MAX_RESERVED_FIELDS
Definition: nvdsmeta.h:46
NvDsMetaType
Specifies the type of metadata.
Definition: nvdsmeta.h:99
guint source_frame_width
Definition: nvdsmeta.h:288
NvDsUserMetaList * frame_user_meta_list
Holds a pointer to a list of pointers of type NvDsUserMeta in use for the frame.
Definition: nvdsmeta.h:309
struct NvDsDisplayMeta NvDsDisplayMeta
Holds display metadata that the user can specify in the frame.
Specifies metadata type for frame.
Definition: nvdsmeta.h:104
NvDsComp_BboxInfo detector_bbox_info
Holds a structure containing bounding box parameters of the object when detected by detector...
Definition: nvdsmeta.h:339
GList NvDsClassifierMetaList
Definition: nvdsmeta.h:59
void nvds_copy_obj_meta(NvDsObjectMeta *src_object_meta, NvDsObjectMeta *dst_object_meta)
Makes a deep copy of an object meta to another object meta.
NvOSD_CircleParams circle_params[MAX_ELEMENTS_IN_DISPLAY_META]
Holds an array of circle parameters that the user can use to draw circles in the frame.
Definition: nvdsmeta.h:442
GList NvDsObjectMetaList
Definition: nvdsmeta.h:57
void nvds_add_frame_meta_to_batch(NvDsBatchMeta *batch_meta, NvDsFrameMeta *frame_meta)
Adds a frame meta to a batch meta.
void nvds_add_user_meta_to_roi(NvDsRoiMeta *roi_meta, NvDsUserMeta *user_meta)
Add a user meta user to an roi meta.
NvDsMetaType meta_type
Holds the metadata type of this metadata element.
Definition: nvdsmeta.h:199
NvDsBaseMeta base_meta
Definition: nvdsmeta.h:222
struct _NvDsBatchMeta * batch_meta
Holds a pointer to batch_meta NvDsBatchMeta.
Definition: nvdsmeta.h:197
NvOSD_LineParams line_params[MAX_ELEMENTS_IN_DISPLAY_META]
Holds an array of line parameters that the user can use to draw polygons in the frame, e.g.
Definition: nvdsmeta.h:436
guint num_obj_meta
Holds the number of object meta elements attached to current frame.
Definition: nvdsmeta.h:298
gchar obj_label[MAX_LABEL_SIZE]
Holds a string describing the class of the detected object.
Definition: nvdsmeta.h:367
NvDsBatchMeta * nvds_create_batch_meta(guint max_batch_size)
Creates a batch metadata structure for a batch of specified size.
gboolean nvds_get_current_metadata_info(NvDsBatchMeta *batch_meta)
A debugging function; prints current metadata information available after inference.
guint pipeline_width
Definition: nvdsmeta.h:313
guint num_circles
Holds the number of circles described.
Definition: nvdsmeta.h:426
Holds display metadata that the user can specify in the frame.
Definition: nvdsmeta.h:415