NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/apps/apps-common/includes/deepstream_streammux.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_STREAMMUX_H_
19 #define _NVGSTDS_STREAMMUX_H_
20 
21 #include <gst/gst.h>
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
28 typedef struct
29 {
30  // Struct members to store config / properties for the element
31  gint pipeline_width;
32  gint pipeline_height;
33  gint buffer_pool_size;
34  gint batch_size;
35  gint batched_push_timeout;
36  gint compute_hw;
37  gboolean sort_batch;
38  gboolean buffer_cache;
39  gint buffer_cache_timeout;
40  gint num_surface_per_frame;
41  gint interpolation_method;
42  guint64 frame_duration;
43  guint gpu_id;
44  guint nvbuf_memory_type;
45  gboolean live_source;
46  gboolean enable_padding;
47  gboolean is_parsed;
48  gboolean attach_sys_ts_as_ntp;
49  gchar* config_file_path;
50  gboolean sync_inputs;
51  guint64 max_latency;
52  gboolean frame_num_reset_on_eos;
53  gboolean frame_num_reset_on_stream_reset;
54  gboolean async_process;
55  gboolean no_pipeline_eos;
56  gboolean use_nvmultiurisrcbin;
57  gboolean extract_sei_type5_data;
58  gboolean extract_sei_sim_time;
59  gboolean align_first_buffer;
60  guint sync_inputs_ntp;
61  guint failsafe_flush_count;
62  gboolean drop_backward_sei;
64 
65 // Function to create the bin and set properties
66 gboolean
67 set_streammux_properties (NvDsStreammuxConfig *config, GstElement *streammux);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* _NVGSTDS_DSEXAMPLE_H_ */
set_streammux_properties
gboolean set_streammux_properties(NvDsStreammuxConfig *config, GstElement *streammux)
NvDsStreammuxConfig
Definition: sources/apps/apps-common/includes/deepstream_streammux.h:28