NVIDIA DeepStream SDK API Reference

7.1 Release
includes/gst-nvdscommonconfig.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef _GST_NVDSCOMMON_CONFIG_H_
14 #define _GST_NVDSCOMMON_CONFIG_H_
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <gst/gst.h>
21 
22 typedef enum
23 {
28 
29 typedef enum
30 {
35 
36 typedef enum
37 {
41 
42 typedef enum
43 {
48 
49 typedef enum
50 {
55 
56 typedef enum
57 {
61 
62 typedef struct _NvDsSensorInfo
63 {
64  guint source_id;
65  gchar const* uri;
66  gchar const* sensor_id;
67  gchar const* sensor_name;
69 
70 typedef struct _NvDsRtspAttemptsInfo
71 {
72  gboolean attempt_exceeded;
73  guint source_id;
75 
76 typedef struct _GstDsNvUriSrcConfig
77 {
79  gboolean loop;
80  gchar *uri;
81  gchar *sei_uuid;
82  gint latency;
84  gchar *smart_rec_dir_path;
85  gchar *smart_rec_file_prefix;
90  guint gpu_id;
91  gint source_id;
93  guint num_extra_surfaces;
95  guint cuda_memory_type;
96  guint drop_frame_interval;
97  gboolean low_latency_mode;
98  gboolean extract_sei_type5_data;
101  gint num_rtsp_reconnects;
102  guint udp_buffer_size;
103  gchar *sensorId;
104  gboolean disable_passthrough;
105  gchar *sensorName;
106  gboolean disable_audio;
107  gboolean drop_on_latency;
108  gboolean ipc_buffer_timestamp_copy;
109  gchar *ipc_socket_path;
111  guint64 ipc_connection_interval;
113 
114 typedef struct
115 {
116  // Struct members to store config / properties for the element
117 
118  //mandatory configs when using legacy nvstreammux
119  gint pipeline_width;
120  gint pipeline_height;
121  gint batched_push_timeout;
122 
123  //not mandatory; auto configured
124  gint batch_size;
125 
126  //not mandatory; defaults will be used
127  gint buffer_pool_size;
128  gint compute_hw;
129  gint num_surfaces_per_frame;
130  gint interpolation_method;
131  guint gpu_id;
132  guint nvbuf_memory_type;
133  gboolean live_source;
134  gboolean enable_padding;
135  gboolean attach_sys_ts_as_ntp;
136  gchar* config_file_path;
137  gboolean sync_inputs;
138  guint64 max_latency;
139  gboolean frame_num_reset_on_eos;
140  gboolean frame_num_reset_on_stream_reset;
141 
142  guint64 frame_duration;
143  guint maxBatchSize;
144  gboolean async_process;
145  gboolean no_pipeline_eos;
146  gboolean extract_sei_type5_data;
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif
_GstDsNvUriSrcConfig::smart_rec_container
NvDsUriSrcBinSRCont smart_rec_container
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:86
NvDsUriSrcBinSRMode
NvDsUriSrcBinSRMode
Definition: includes/gst-nvdscommonconfig.h:49
_GstDsNvUriSrcConfig::extract_sei_type5_data
gboolean extract_sei_type5_data
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:98
SMART_REC_AUDIO_ONLY
@ SMART_REC_AUDIO_ONLY
Definition: includes/gst-nvdscommonconfig.h:53
_GstDsNvUriSrcConfig
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:76
_GstDsNvUriSrcConfig::disable_audio
gboolean disable_audio
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:106
_NvDsRtspAttemptsInfo::source_id
guint source_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:73
NvDsRtspAttemptsInfo
struct _NvDsRtspAttemptsInfo NvDsRtspAttemptsInfo
GstDsNvUriSrcConfig
struct _GstDsNvUriSrcConfig GstDsNvUriSrcConfig
_NvDsSensorInfo::source_id
guint source_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:64
_GstDsNvUriSrcConfig::src_type
NvDsUriSrcBinType src_type
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:78
_GstDsNvUriSrcConfig::smart_record
NvDsUriSrcBinSRType smart_record
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:83
_GstDsNvUriSrcConfig::udp_buffer_size
guint udp_buffer_size
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:102
NvDsUriSrcBinSRCont
NvDsUriSrcBinSRCont
Definition: includes/gst-nvdscommonconfig.h:56
SMART_REC_VIDEO_ONLY
@ SMART_REC_VIDEO_ONLY
Definition: includes/gst-nvdscommonconfig.h:52
_GstDsNvUriSrcConfig::uri
gchar * uri
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:80
_GstDsNvUriSrcConfig::ipc_connection_interval
guint64 ipc_connection_interval
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:111
_GstDsNvUriSrcConfig::drop_on_latency
gboolean drop_on_latency
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:107
NvDsUriSrcBinRtpProtocol
NvDsUriSrcBinRtpProtocol
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:36
SMART_REC_MP4
@ SMART_REC_MP4
Definition: includes/gst-nvdscommonconfig.h:58
_GstDsNvUriSrcConfig::disable_passthrough
gboolean disable_passthrough
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:104
_GstDsNvUriSrcConfig::ipc_socket_path
gchar * ipc_socket_path
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:109
_GstDsNvUriSrcConfig::sensorId
gchar * sensorId
unique Sensor ID string
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:103
SOURCE_TYPE_AUTO
@ SOURCE_TYPE_AUTO
Definition: includes/gst-nvdscommonconfig.h:24
_NvDsRtspAttemptsInfo
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:70
_GstDsNvUriSrcConfig::smart_rec_file_prefix
gchar * smart_rec_file_prefix
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:85
_NvDsSensorInfo::sensor_name
gchar const * sensor_name
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:67
NvDsUriSrcBinSRType
NvDsUriSrcBinSRType
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:42
DEC_SKIP_FRAMES_TYPE_KEY_FRAME_ONLY
@ DEC_SKIP_FRAMES_TYPE_KEY_FRAME_ONLY
Definition: includes/gst-nvdscommonconfig.h:33
SMART_REC_MKV
@ SMART_REC_MKV
Definition: includes/gst-nvdscommonconfig.h:59
RTP_PROTOCOL_MULTI
@ RTP_PROTOCOL_MULTI
Definition: includes/gst-nvdscommonconfig.h:38
_NvDsSensorInfo::sensor_id
gchar const * sensor_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:66
NvDsUriSrcBinType
NvDsUriSrcBinType
Definition: includes/gst-nvdscommonconfig.h:22
_GstDsNvUriSrcConfig::drop_frame_interval
guint drop_frame_interval
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:96
_GstDsNvUriSrcConfig::sensorName
gchar * sensorName
Sensor Name string; could be NULL.
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:105
NvDsUriSrcBinDecSkipFrame
NvDsUriSrcBinDecSkipFrame
Definition: includes/gst-nvdscommonconfig.h:29
_GstDsNvUriSrcConfig::gpu_id
guint gpu_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:90
DEC_SKIP_FRAMES_TYPE_NONREF
@ DEC_SKIP_FRAMES_TYPE_NONREF
Definition: includes/gst-nvdscommonconfig.h:32
SMART_REC_CLOUD
@ SMART_REC_CLOUD
Definition: includes/gst-nvdscommonconfig.h:45
_GstDsNvUriSrcConfig::smart_rec_def_duration
guint smart_rec_def_duration
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:88
_GstDsNvUriSrcConfig::smart_rec_cache_size
guint smart_rec_cache_size
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:89
_GstDsNvUriSrcConfig::low_latency_mode
gboolean low_latency_mode
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:97
RTP_PROTOCOL_TCP
@ RTP_PROTOCOL_TCP
Definition: includes/gst-nvdscommonconfig.h:39
SMART_REC_AUDIO_VIDEO
@ SMART_REC_AUDIO_VIDEO
Definition: includes/gst-nvdscommonconfig.h:51
_GstDsNvUriSrcConfig::num_rtsp_reconnects
gint num_rtsp_reconnects
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:101
NvDsUriSrcBinDecSkipFrame
NvDsUriSrcBinDecSkipFrame
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:29
_GstDsNvUriSrcConfig::smart_rec_dir_path
gchar * smart_rec_dir_path
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:84
SMART_REC_DISABLE
@ SMART_REC_DISABLE
Definition: includes/gst-nvdscommonconfig.h:44
NvDsUriSrcBinSRCont
NvDsUriSrcBinSRCont
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:56
NvDsUriSrcBinSRMode
NvDsUriSrcBinSRMode
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:49
SMART_REC_MULTI
@ SMART_REC_MULTI
Definition: includes/gst-nvdscommonconfig.h:46
_NvDsSensorInfo
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:62
_GstDsNvUriSrcConfig::cuda_memory_type
guint cuda_memory_type
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:95
NvDsUriSrcBinSRType
NvDsUriSrcBinSRType
Definition: includes/gst-nvdscommonconfig.h:42
_GstDsNvUriSrcConfig::smart_rec_mode
NvDsUriSrcBinSRMode smart_rec_mode
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:87
DEC_SKIP_FRAMES_TYPE_NONE
@ DEC_SKIP_FRAMES_TYPE_NONE
Definition: includes/gst-nvdscommonconfig.h:31
_GstDsNvUriSrcConfig::latency
gint latency
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:82
_GstDsNvUriSrcConfig::loop
gboolean loop
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:79
_GstDsNvUriSrcConfig::rtp_protocol
NvDsUriSrcBinRtpProtocol rtp_protocol
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:92
_GstDsNvUriSrcConfig::num_extra_surfaces
guint num_extra_surfaces
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:93
_GstDsNvUriSrcConfig::sei_uuid
gchar * sei_uuid
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:81
_GstDsNvUriSrcConfig::source_id
gint source_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:91
NvDsUriSrcBinRtpProtocol
NvDsUriSrcBinRtpProtocol
Definition: includes/gst-nvdscommonconfig.h:36
GstDsNvStreammuxConfig
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:114
SOURCE_TYPE_RTSP
@ SOURCE_TYPE_RTSP
Definition: includes/gst-nvdscommonconfig.h:26
_GstDsNvUriSrcConfig::skip_frames_type
NvDsUriSrcBinDecSkipFrame skip_frames_type
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:94
_GstDsNvUriSrcConfig::rtsp_reconnect_interval_sec
gint rtsp_reconnect_interval_sec
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:99
SOURCE_TYPE_URI
@ SOURCE_TYPE_URI
Definition: includes/gst-nvdscommonconfig.h:25
_GstDsNvUriSrcConfig::ipc_connection_attempts
gint ipc_connection_attempts
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:110
NvDsUriSrcBinType
NvDsUriSrcBinType
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:22
_NvDsSensorInfo::uri
gchar const * uri
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:65
NvDsSensorInfo
struct _NvDsSensorInfo NvDsSensorInfo
_GstDsNvUriSrcConfig::ipc_buffer_timestamp_copy
gboolean ipc_buffer_timestamp_copy
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:108
_GstDsNvUriSrcConfig::rtsp_reconnect_attempts
gint rtsp_reconnect_attempts
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:100
_NvDsRtspAttemptsInfo::attempt_exceeded
gboolean attempt_exceeded
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:72