NVIDIA DeepStream SDK API Reference

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