NVIDIA DeepStream SDK API Reference

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