NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/apps/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 {
39 
40 typedef struct
41 {
42  gboolean enable;
43 
44  gchar *config_file_path;
45 
46  gboolean input_tensor_meta;
47 
48  gboolean override_colors;
49 
50  gint operate_on_gie_id;
51  gboolean is_operate_on_gie_id_set;
52  gint operate_on_classes;
53 
54  gint num_operate_on_class_ids;
55  gint *list_operate_on_class_ids;
56 
57  gboolean have_bg_color;
58  NvOSD_ColorParams bbox_bg_color;
59  NvOSD_ColorParams bbox_border_color;
60 
61  GHashTable *bbox_border_color_table;
62  GHashTable *bbox_bg_color_table;
63 
64  guint batch_size;
65  gboolean is_batch_size_set;
66 
67  guint interval;
68  gboolean is_interval_set;
69  guint unique_id;
70  gboolean is_unique_id_set;
71  guint gpu_id;
72  gboolean is_gpu_id_set;
73  guint nvbuf_memory_type;
74  gchar *model_engine_file_path;
75 
76  gchar *audio_transform;
77  guint frame_size;
78  gboolean is_frame_size_set;
79  guint hop_size;
80  gboolean is_hop_size_set;
81  guint input_audio_rate;
82 
83  gchar *label_file_path;
84  guint n_labels;
85  guint *n_label_outputs;
86  gchar ***labels;
87 
88  gchar *raw_output_directory;
89  gulong file_write_frame_num;
90 
91  gchar *tag;
92 
93  NvDsGiePluginType plugin_type;
94 
95  // Vision encoder specific fields (when plugin_type == NV_DS_GIE_PLUGIN_VISION_ENCODER)
96  gchar *model_variant;
97  gchar *device;
98  guint min_crop_size;
99  gboolean is_min_crop_size_set;
100  guint verbose;
101  gchar *backend; // "transformers" or "triton"
102  gchar *triton_url; // Triton gRPC endpoint (host:port)
103  gchar *triton_model; // Model name in Triton repository
104 } NvDsGieConfig;
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif
NV_DS_GIE_PLUGIN_VISION_ENCODER
@ NV_DS_GIE_PLUGIN_VISION_ENCODER
Definition: 9.1/sources/apps/apps-common/includes/deepstream_gie.h:37
NV_DS_GIE_PLUGIN_INFER_SERVER
@ NV_DS_GIE_PLUGIN_INFER_SERVER
Definition: 9.1/sources/apps/apps-common/includes/deepstream_gie.h:35
deepstream_config.h
NvDsGiePluginType
NvDsGiePluginType
Definition: sources/apps/apps-common/includes/deepstream_gie.h:32
NV_DS_GIE_PLUGIN_INFER
@ NV_DS_GIE_PLUGIN_INFER
Definition: 9.1/sources/apps/apps-common/includes/deepstream_gie.h:34
NvDsGieConfig
Definition: sources/apps/apps-common/includes/deepstream_gie.h:40
_NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
Definition: sources/includes/nvll_osd_struct.h:86
NvDsGiePluginType
NvDsGiePluginType
Definition: 9.1/sources/apps/apps-common/includes/deepstream_gie.h:32
NV_DS_GIE_PLUGIN_VIDEO_TEMPLATE
@ NV_DS_GIE_PLUGIN_VIDEO_TEMPLATE
Definition: 9.1/sources/apps/apps-common/includes/deepstream_gie.h:36