NVIDIA DeepStream SDK API Reference

9.1 Release
sources/apps/apps-common/includes/deepstream_config_yaml.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-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_YAML_H_
19 #define _NVGSTDS_STREAMMUX_YAML_H_
20 
21 
22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wreturn-type"
24 #include <yaml-cpp/yaml.h>
25 #pragma GCC diagnostic pop
26 
27 #include <gst/gst.h>
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 #include "deepstream_streammux.h"
36 #include "deepstream_osd.h"
37 #include "deepstream_segvisual.h"
38 #include "deepstream_image_save.h"
39 #include "deepstream_c2d_msg.h"
40 #include "deepstream_sinks.h"
41 #include "deepstream_sources.h"
42 #include "deepstream_tracker.h"
43 #include "deepstream_replay.h"
44 #include "deepstream_gie.h"
45 #include "deepstream_preprocess.h"
46 #include "deepstream_dewarper.h"
47 #include "deepstream_dsanalytics.h"
48 #include "deepstream_dsexample.h"
49 
50 #define _MAX_STR_LENGTH 1024
51 
52 std::vector<std::string> split_string (std::string input);
53 
54 gboolean
56  const gchar * cfg_file_path, const gchar * file_path,
57  char *abs_path_str);
58 
59 gboolean
60 parse_streammux_yaml (NvDsStreammuxConfig *config, gchar *cfg_file_path);
61 
62 gboolean
63 parse_tiled_display_yaml (NvDsTiledDisplayConfig *config, gchar *cfg_file_path);
64 
65 gboolean
66 parse_osd_yaml (NvDsOSDConfig *config, gchar *cfg_file_path);
67 
68 gboolean
69 parse_segvisual_yaml (NvDsSegVisualConfig *config, gchar *cfg_file_path);
70 
71 gboolean
72 parse_image_save_yaml (NvDsImageSave *config, gchar *cfg_file_path);
73 
74 gboolean
75 parse_msgconsumer_yaml (NvDsMsgConsumerConfig *config, std::string group, gchar *cfg_file_path);
76 
77 gboolean
78 parse_msgconv_yaml (NvDsSinkMsgConvBrokerConfig *config, std::string group, gchar *cfg_file_path);
79 
80 gboolean
81 parse_sink_yaml (NvDsSinkSubBinConfig *config, std::string group, gchar * cfg_file_path);
82 
83 gboolean
84 parse_source_yaml (NvDsSourceConfig *config, std::vector<std::string> headers,
85  std::vector<std::string> source_values, gchar *cfg_file_path);
86 
87 gboolean
88 parse_tracker_yaml (NvDsTrackerConfig *config, gchar *cfg_file_path);
89 
90 gboolean
91 parse_replay_yaml (NvDsReplayConfig *config, gchar *cfg_file_path);
92 
93 gboolean
94 parse_gie_yaml (NvDsGieConfig *config, std::string group, gchar *cfg_file_path);
95 
96 gboolean
97 parse_preprocess_yaml (NvDsPreProcessConfig *config, gchar* cfg_file_path);
98 
99 gboolean
100 parse_dewarper_yaml (NvDsDewarperConfig * config, std::string group_str, gchar *cfg_file_path);
101 
102 gboolean
103 parse_dsexample_yaml (NvDsDsExampleConfig *config, gchar *cfg_file_path);
104 
105 gboolean
106 parse_dsanalytics_yaml (NvDsDsAnalyticsConfig *config, gchar* cfg_file_path);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif /* _NVGSTDS_DSEXAMPLE_H_ */
parse_dsanalytics_yaml
gboolean parse_dsanalytics_yaml(NvDsDsAnalyticsConfig *config, gchar *cfg_file_path)
deepstream_gie.h
deepstream_replay.h
parse_msgconsumer_yaml
gboolean parse_msgconsumer_yaml(NvDsMsgConsumerConfig *config, std::string group, gchar *cfg_file_path)
deepstream_c2d_msg.h
NvDsPreProcessConfig
Definition: sources/apps/apps-common/includes/deepstream_preprocess.h:28
deepstream_tiled_display.h
parse_osd_yaml
gboolean parse_osd_yaml(NvDsOSDConfig *config, gchar *cfg_file_path)
deepstream_image_save.h
NvDsSinkSubBinConfig
Definition: sources/apps/apps-common/includes/deepstream_sinks.h:136
parse_preprocess_yaml
gboolean parse_preprocess_yaml(NvDsPreProcessConfig *config, gchar *cfg_file_path)
parse_image_save_yaml
gboolean parse_image_save_yaml(NvDsImageSave *config, gchar *cfg_file_path)
deepstream_streammux.h
NvDsImageSave
Definition: sources/apps/apps-common/includes/deepstream_image_save.h:26
NvDsSegVisualConfig
Definition: sources/apps/apps-common/includes/deepstream_segvisual.h:38
NvDsDsExampleConfig
Definition: sources/apps/apps-common/includes/deepstream_dsexample.h:28
parse_tiled_display_yaml
gboolean parse_tiled_display_yaml(NvDsTiledDisplayConfig *config, gchar *cfg_file_path)
NvDsSinkMsgConvBrokerConfig
Definition: sources/apps/apps-common/includes/deepstream_sinks.h:110
parse_dsexample_yaml
gboolean parse_dsexample_yaml(NvDsDsExampleConfig *config, gchar *cfg_file_path)
split_string
std::vector< std::string > split_string(std::string input)
deepstream_sources.h
deepstream_tracker.h
NvDsDsAnalyticsConfig
Definition: sources/apps/apps-common/includes/deepstream_dsanalytics.h:28
parse_sink_yaml
gboolean parse_sink_yaml(NvDsSinkSubBinConfig *config, std::string group, gchar *cfg_file_path)
NvDsSourceConfig
Definition: sources/apps/apps-common/includes/deepstream_sources.h:43
deepstream_preprocess.h
deepstream_dsexample.h
deepstream_dewarper.h
parse_source_yaml
gboolean parse_source_yaml(NvDsSourceConfig *config, std::vector< std::string > headers, std::vector< std::string > source_values, gchar *cfg_file_path)
parse_gie_yaml
gboolean parse_gie_yaml(NvDsGieConfig *config, std::string group, gchar *cfg_file_path)
NvDsTiledDisplayConfig
Definition: sources/apps/apps-common/includes/deepstream_tiled_display.h:49
get_absolute_file_path_yaml
gboolean get_absolute_file_path_yaml(const gchar *cfg_file_path, const gchar *file_path, char *abs_path_str)
parse_streammux_yaml
gboolean parse_streammux_yaml(NvDsStreammuxConfig *config, gchar *cfg_file_path)
NvDsStreammuxConfig
Definition: sources/apps/apps-common/includes/deepstream_streammux.h:28
deepstream_osd.h
deepstream_segvisual.h
parse_segvisual_yaml
gboolean parse_segvisual_yaml(NvDsSegVisualConfig *config, gchar *cfg_file_path)
deepstream_sinks.h
NvDsGieConfig
Definition: sources/apps/apps-common/includes/deepstream_gie.h:40
NvDsReplayConfig
Definition: sources/apps/apps-common/includes/deepstream_replay.h:30
deepstream_dsanalytics.h
parse_msgconv_yaml
gboolean parse_msgconv_yaml(NvDsSinkMsgConvBrokerConfig *config, std::string group, gchar *cfg_file_path)
NvDsTrackerConfig
Definition: sources/apps/apps-common/includes/deepstream_tracker.h:30
NvDsMsgConsumerConfig
Definition: sources/apps/apps-common/includes/deepstream_c2d_msg.h:40
parse_replay_yaml
gboolean parse_replay_yaml(NvDsReplayConfig *config, gchar *cfg_file_path)
NvDsOSDConfig
Definition: sources/apps/apps-common/includes/deepstream_osd.h:40
parse_dewarper_yaml
gboolean parse_dewarper_yaml(NvDsDewarperConfig *config, std::string group_str, gchar *cfg_file_path)
parse_tracker_yaml
gboolean parse_tracker_yaml(NvDsTrackerConfig *config, gchar *cfg_file_path)
NvDsDewarperConfig
Definition: sources/apps/apps-common/includes/deepstream_dewarper.h:40