NVIDIA DeepStream SDK API Reference

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