NVIDIA DeepStream SDK API Reference

9.1 Release
sources/apps/sample_apps/deepstream-nmos/deepstream_nmos_config_parser.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 __DEEPSTREAM_NMOS_CONFIG_PARSER_H__
19 #define __DEEPSTREAM_NMOS_CONFIG_PARSER_H__
20 
21 #include "deepstream_nmos_app.h"
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
28 #define CONFIG_GROUP_APP "application"
29 #define CONFIG_GROUP_APP_SEED "seed"
30 #define CONFIG_GROUP_APP_HOST_NAME "host-name"
31 #define CONFIG_GROUP_APP_HTTP_PORT "http-port"
32 #define CONFIG_GROUP_RECEIVER "receiver"
33 #define CONFIG_GROUP_SENDER "sender"
34 #define CONFIG_GROUP_PGIE "primary-gie"
35 #define CONFIG_GROUP_PGIE_CONFIG_FILE "config-file"
36 #define CONFIG_GROUP_ENABLE "enable"
37 #define CONFIG_GROUP_PLUGIN_TYPE "plugin-type"
38 #define CONFIG_GROUP_TYPE "type"
39 #define CONFIG_GROUP_SDPFILE "sdp-file"
40 #define CONFIG_GROUP_SINK_SDPFILE "sink-sdp-file"
41 #define CONFIG_GROUP_SINK_TYPE "sink-type"
42 #define CONFIG_GROUP_SINK_PAYLOAD_SIZE "payload-size"
43 #define CONFIG_GROUP_SINK_PACKET_PER_LINE "packets-per-line"
44 #define CONFIG_GROUP_SINK_SRT_MODE "srt-mode"
45 #define CONFIG_GROUP_SINK_SRT_LATENCY "srt-latency"
46 #define CONFIG_GROUP_SINK_SRT_PASSPHRASE "srt-passphrase"
47 #define CONFIG_GROUP_SINK_SRT_URI "srt-uri"
48 #define CONFIG_GROUP_SINK_ENCODE_BITRATE "bitrate"
49 #define CONFIG_GROUP_SINK_ENCODE_IFRAMEINTERVAL "iframeinterval"
50 #define CONFIG_GROUP_SINK_ENCODE_CAPSFILTER "encode-caps"
51 #define CONFIG_GROUP_SINK_FLIP_METHOD "flip-method"
52 
53 gboolean parse_config_file (NvDsNmosAppCtx *appCtx, gchar *cfgFilePath);
54 
55 gboolean
56 parse_gie (NvDsNmosAppConfig *appConfig, GKeyFile *keyFile, gchar *group,
57  gchar *cfgFilePath);
58 
59 gboolean
60 parse_app (NvDsNmosAppConfig *appConfig, GKeyFile *keyFile, gchar *group,
61  gchar *cfgFilePath);
62 
63 gboolean
64 parse_sender (NvDsNmosSinkConfig *sinkConfig, GKeyFile *keyFile, gchar *group,
65  gchar *cfgFilePath);
66 
67 gboolean
68 parse_receiver (NvDsNmosSrcConfig *srcConfig, GKeyFile *keyFile, gchar *group,
69  gchar *cfgFilePath);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 #endif
NvDsNmosAppCtx
Definition: sources/apps/sample_apps/deepstream-nmos/deepstream_nmos_app.h:127
deepstream_nmos_app.h
parse_receiver
gboolean parse_receiver(NvDsNmosSrcConfig *srcConfig, GKeyFile *keyFile, gchar *group, gchar *cfgFilePath)
NvDsNmosAppConfig
Definition: sources/apps/sample_apps/deepstream-nmos/deepstream_nmos_app.h:91
NvDsNmosSinkConfig
Definition: sources/apps/sample_apps/deepstream-nmos/deepstream_nmos_app.h:79
NvDsNmosSrcConfig
Definition: sources/apps/sample_apps/deepstream-nmos/deepstream_nmos_app.h:55
parse_app
gboolean parse_app(NvDsNmosAppConfig *appConfig, GKeyFile *keyFile, gchar *group, gchar *cfgFilePath)
parse_config_file
gboolean parse_config_file(NvDsNmosAppCtx *appCtx, gchar *cfgFilePath)
parse_gie
gboolean parse_gie(NvDsNmosAppConfig *appConfig, GKeyFile *keyFile, gchar *group, gchar *cfgFilePath)
parse_sender
gboolean parse_sender(NvDsNmosSinkConfig *sinkConfig, GKeyFile *keyFile, gchar *group, gchar *cfgFilePath)