NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_dsanalytics.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-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 _NVGSTDS_DSANALYTICS_H_
24 #define _NVGSTDS_DSANALYTICS_H_
25 
26 #include <gst/gst.h>
27 
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32 
33 typedef struct
34 {
35  // Create a bin for the element only if enabled
36  gboolean enable;
37  guint unique_id;
38  // Config file path having properties for the element
41 
42 // Struct to store references to the bin and elements
43 typedef struct
44 {
45  GstElement *bin;
46  GstElement *queue;
47  GstElement *elem_dsanalytics;
49 
50 // Function to create the bin and set properties
51 gboolean
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* _NVGSTDS_DSANALYTICS_H_ */
NvDsDsAnalyticsConfig::unique_id
guint unique_id
Definition: deepstream_dsanalytics.h:37
create_dsanalytics_bin
gboolean create_dsanalytics_bin(NvDsDsAnalyticsConfig *config, NvDsDsAnalyticsBin *bin)
NvDsDsAnalyticsBin::elem_dsanalytics
GstElement * elem_dsanalytics
Definition: deepstream_dsanalytics.h:47
NvDsDsAnalyticsBin
Definition: deepstream_dsanalytics.h:43
NvDsDsAnalyticsBin::queue
GstElement * queue
Definition: deepstream_dsanalytics.h:46
NvDsDsAnalyticsConfig
Definition: deepstream_dsanalytics.h:33
NvDsDsAnalyticsConfig::config_file_path
gchar * config_file_path
Definition: deepstream_dsanalytics.h:39
NvDsDsAnalyticsConfig::enable
gboolean enable
Definition: deepstream_dsanalytics.h:36
NvDsDsAnalyticsBin::bin
GstElement * bin
Definition: deepstream_dsanalytics.h:45