NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_streammux.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef _NVGSTDS_STREAMMUX_H_
24 #define _NVGSTDS_STREAMMUX_H_
25 
26 #include <gst/gst.h>
27 
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32 
33 typedef struct
34 {
35  // Struct members to store config / properties for the element
39  gint batch_size;
41  gint compute_hw;
44  guint64 frame_duration;
45  guint gpu_id;
47  gboolean live_source;
48  gboolean enable_padding;
49  gboolean is_parsed;
52  gboolean sync_inputs;
53  guint64 max_latency;
56  gboolean async_process;
57  gboolean no_pipeline_eos;
60 
61 // Function to create the bin and set properties
62 gboolean
63 set_streammux_properties (NvDsStreammuxConfig *config, GstElement *streammux);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* _NVGSTDS_DSEXAMPLE_H_ */
NvDsStreammuxConfig::is_parsed
gboolean is_parsed
Definition: deepstream_streammux.h:49
NvDsStreammuxConfig::interpolation_method
gint interpolation_method
Definition: deepstream_streammux.h:43
NvDsStreammuxConfig::pipeline_height
gint pipeline_height
Definition: deepstream_streammux.h:37
NvDsStreammuxConfig::num_surface_per_frame
gint num_surface_per_frame
Definition: deepstream_streammux.h:42
set_streammux_properties
gboolean set_streammux_properties(NvDsStreammuxConfig *config, GstElement *streammux)
NvDsStreammuxConfig::max_latency
guint64 max_latency
Definition: deepstream_streammux.h:53
NvDsStreammuxConfig::use_nvmultiurisrcbin
gboolean use_nvmultiurisrcbin
Definition: deepstream_streammux.h:58
NvDsStreammuxConfig::enable_padding
gboolean enable_padding
Definition: deepstream_streammux.h:48
NvDsStreammuxConfig::live_source
gboolean live_source
Definition: deepstream_streammux.h:47
NvDsStreammuxConfig::frame_duration
guint64 frame_duration
Definition: deepstream_streammux.h:44
NvDsStreammuxConfig::async_process
gboolean async_process
Definition: deepstream_streammux.h:56
NvDsStreammuxConfig::batched_push_timeout
gint batched_push_timeout
Definition: deepstream_streammux.h:40
NvDsStreammuxConfig::batch_size
gint batch_size
Definition: deepstream_streammux.h:39
NvDsStreammuxConfig::no_pipeline_eos
gboolean no_pipeline_eos
Definition: deepstream_streammux.h:57
NvDsStreammuxConfig
Definition: deepstream_streammux.h:33
NvDsStreammuxConfig::frame_num_reset_on_eos
gboolean frame_num_reset_on_eos
Definition: deepstream_streammux.h:54
NvDsStreammuxConfig::buffer_pool_size
gint buffer_pool_size
Definition: deepstream_streammux.h:38
NvDsStreammuxConfig::nvbuf_memory_type
guint nvbuf_memory_type
Definition: deepstream_streammux.h:46
NvDsStreammuxConfig::pipeline_width
gint pipeline_width
Definition: deepstream_streammux.h:36
NvDsStreammuxConfig::frame_num_reset_on_stream_reset
gboolean frame_num_reset_on_stream_reset
Definition: deepstream_streammux.h:55
NvDsStreammuxConfig::sync_inputs
gboolean sync_inputs
Definition: deepstream_streammux.h:52
NvDsStreammuxConfig::config_file_path
gchar * config_file_path
Definition: deepstream_streammux.h:51
NvDsStreammuxConfig::compute_hw
gint compute_hw
Definition: deepstream_streammux.h:41
NvDsStreammuxConfig::attach_sys_ts_as_ntp
gboolean attach_sys_ts_as_ntp
Definition: deepstream_streammux.h:50
NvDsStreammuxConfig::gpu_id
guint gpu_id
Definition: deepstream_streammux.h:45