NVIDIA DeepStream SDK API Reference

7.0 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 _GstDsNvUriSrcConfig
71 {
73  gboolean loop;
74  gchar *uri;
75  gchar *sei_uuid;
76  gint latency;
78  gchar *smart_rec_dir_path;
79  gchar *smart_rec_file_prefix;
84  guint gpu_id;
85  gint source_id;
87  guint num_extra_surfaces;
89  guint cuda_memory_type;
90  guint drop_frame_interval;
91  gboolean low_latency_mode;
92  gboolean extract_sei_type5_data;
96  guint udp_buffer_size;
97  gchar *sensorId;
98  gboolean disable_passthrough;
99  gchar *sensorName;
100  gboolean disable_audio;
101  int sock_fd;
103 
104 typedef struct
105 {
106  // Struct members to store config / properties for the element
107 
108  //mandatory configs when using legacy nvstreammux
109  gint pipeline_width;
110  gint pipeline_height;
111  gint batched_push_timeout;
112 
113  //not mandatory; auto configured
114  gint batch_size;
115 
116  //not mandatory; defaults will be used
117  gint buffer_pool_size;
118  gint compute_hw;
119  gint num_surfaces_per_frame;
120  gint interpolation_method;
121  guint gpu_id;
122  guint nvbuf_memory_type;
123  gboolean live_source;
124  gboolean enable_padding;
125  gboolean attach_sys_ts_as_ntp;
126  gchar* config_file_path;
127  gboolean sync_inputs;
128  guint64 max_latency;
129  gboolean frame_num_reset_on_eos;
130  gboolean frame_num_reset_on_stream_reset;
131 
132  guint64 frame_duration;
133  guint maxBatchSize;
134  gboolean async_process;
135  gboolean no_pipeline_eos;
136  gboolean extract_sei_type5_data;
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif
_GstDsNvUriSrcConfig::smart_rec_container
NvDsUriSrcBinSRCont smart_rec_container
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:80
NvDsUriSrcBinSRMode
NvDsUriSrcBinSRMode
Definition: includes/gst-nvdscommonconfig.h:49
_GstDsNvUriSrcConfig::extract_sei_type5_data
gboolean extract_sei_type5_data
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:92
SMART_REC_AUDIO_ONLY
@ SMART_REC_AUDIO_ONLY
Definition: includes/gst-nvdscommonconfig.h:53
_GstDsNvUriSrcConfig
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:70
_GstDsNvUriSrcConfig::disable_audio
gboolean disable_audio
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:100
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:72
_GstDsNvUriSrcConfig::smart_record
NvDsUriSrcBinSRType smart_record
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:77
_GstDsNvUriSrcConfig::udp_buffer_size
guint udp_buffer_size
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:96
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:74
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:98
_GstDsNvUriSrcConfig::sensorId
gchar * sensorId
unique Sensor ID string
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:97
SOURCE_TYPE_AUTO
@ SOURCE_TYPE_AUTO
Definition: includes/gst-nvdscommonconfig.h:24
_GstDsNvUriSrcConfig::smart_rec_file_prefix
gchar * smart_rec_file_prefix
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:79
_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:90
_GstDsNvUriSrcConfig::sensorName
gchar * sensorName
Sensor Name string; could be NULL.
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:99
NvDsUriSrcBinDecSkipFrame
NvDsUriSrcBinDecSkipFrame
Definition: includes/gst-nvdscommonconfig.h:29
_GstDsNvUriSrcConfig::gpu_id
guint gpu_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:84
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:82
_GstDsNvUriSrcConfig::smart_rec_cache_size
guint smart_rec_cache_size
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:83
_GstDsNvUriSrcConfig::low_latency_mode
gboolean low_latency_mode
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:91
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:95
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:78
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
_GstDsNvUriSrcConfig::sock_fd
int sock_fd
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:101
_NvDsSensorInfo
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:62
_GstDsNvUriSrcConfig::cuda_memory_type
guint cuda_memory_type
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:89
NvDsUriSrcBinSRType
NvDsUriSrcBinSRType
Definition: includes/gst-nvdscommonconfig.h:42
_GstDsNvUriSrcConfig::smart_rec_mode
NvDsUriSrcBinSRMode smart_rec_mode
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:81
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:76
_GstDsNvUriSrcConfig::loop
gboolean loop
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:73
_GstDsNvUriSrcConfig::rtp_protocol
NvDsUriSrcBinRtpProtocol rtp_protocol
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:86
_GstDsNvUriSrcConfig::num_extra_surfaces
guint num_extra_surfaces
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:87
_GstDsNvUriSrcConfig::sei_uuid
gchar * sei_uuid
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:75
_GstDsNvUriSrcConfig::source_id
gint source_id
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:85
NvDsUriSrcBinRtpProtocol
NvDsUriSrcBinRtpProtocol
Definition: includes/gst-nvdscommonconfig.h:36
GstDsNvStreammuxConfig
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:104
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:88
_GstDsNvUriSrcConfig::rtsp_reconnect_interval_sec
gint rtsp_reconnect_interval_sec
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:93
SOURCE_TYPE_URI
@ SOURCE_TYPE_URI
Definition: includes/gst-nvdscommonconfig.h:25
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::rtsp_reconnect_attempts
gint rtsp_reconnect_attempts
Definition: libs/gstnvdscustomhelper/gst-nvdscommonconfig.h:94