NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/apps/common/includes/deepstream_gie.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __NVGSTDS_GIE_H__
19 #define __NVGSTDS_GIE_H__
20 
21 #include <gst/gst.h>
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
28 #include "gstnvdsmeta.h"
29 #include "gstnvdsinfer.h"
30 #include "deepstream_config.h"
31 
32 typedef enum
33 {
40 
41 typedef struct
42 {
43  gboolean enable;
44 
45  gchar *config_file_path;
46 
47  gboolean input_tensor_meta;
48 
49  gboolean override_colors;
50 
51  gint operate_on_gie_id;
52  gboolean is_operate_on_gie_id_set;
53  gint operate_on_classes;
54 
55  gint num_operate_on_class_ids;
56  gint *list_operate_on_class_ids;
57 
58  gboolean have_bg_color;
59  NvOSD_ColorParams bbox_bg_color;
60  NvOSD_ColorParams bbox_border_color;
61 
62  GHashTable *bbox_border_color_table;
63  GHashTable *bbox_bg_color_table;
64 
65  guint batch_size;
66  gboolean is_batch_size_set;
67 
68  guint interval;
69  gboolean is_interval_set;
70  guint unique_id;
71  gboolean is_unique_id_set;
72  guint gpu_id;
73  gboolean is_gpu_id_set;
74  guint nvbuf_memory_type;
75  gchar *model_engine_file_path;
76 
77  gchar *audio_transform;
78  guint frame_size;
79  gboolean is_frame_size_set;
80  guint hop_size;
81  gboolean is_hop_size_set;
82  guint input_audio_rate;
83 
84  gchar *label_file_path;
85  guint n_labels;
86  guint *n_label_outputs;
87  gchar ***labels;
88 
89  gchar *raw_output_directory;
90  gulong file_write_frame_num;
91 
92  gchar *tag;
93 
94  NvDsGiePluginType plugin_type;
95 
96  // Vision encoder specific fields (when plugin_type == NV_DS_GIE_PLUGIN_VISION_ENCODER)
97  gchar *model_variant;
98  gchar *device;
99  guint min_crop_size;
100  gboolean is_min_crop_size_set;
101  guint verbose;
102  gchar *backend; // "transformers" or "triton"
103  gchar *triton_url; // Triton gRPC endpoint (host:port)
104  gchar *triton_model; // Model name in Triton repository
105 } NvDsGieConfig;
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif
deepstream_config.h
NV_DS_GIE_PLUGIN_VISION_ENCODER
@ NV_DS_GIE_PLUGIN_VISION_ENCODER
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:37
NvDsGiePluginType
NvDsGiePluginType
Definition: sources/apps/common/includes/deepstream_gie.h:32
NV_DS_GIE_PLUGIN_INFER_SERVER
@ NV_DS_GIE_PLUGIN_INFER_SERVER
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:35
NV_DS_GIE_PLUGIN_VIDEO_TEMPLATE
@ NV_DS_GIE_PLUGIN_VIDEO_TEMPLATE
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:36
NvDsGieConfig
Definition: sources/apps/common/includes/deepstream_gie.h:41
NV_DS_GIE_PLUGIN_INFER
@ NV_DS_GIE_PLUGIN_INFER
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:34
_NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
Definition: includes/nvll_osd_struct.h:86
NV_DS_GIE_PLUGIN_MULTIMODEL
@ NV_DS_GIE_PLUGIN_MULTIMODEL
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:38
NvDsGiePluginType
NvDsGiePluginType
Definition: 9.2/sources/apps/common/includes/deepstream_gie.h:32