NVIDIA DeepStream SDK API Reference

7.0 Release
deepstream_dsexample.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef _NVGSTDS_DSEXAMPLE_H_
14 #define _NVGSTDS_DSEXAMPLE_H_
15 
16 #include <gst/gst.h>
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 typedef struct
24 {
25  // Create a bin for the element only if enabled
26  gboolean enable;
27  // Struct members to store config / properties for the element
28  gboolean full_frame;
31  gboolean blur_objects;
32  guint unique_id;
33  guint gpu_id;
34  guint batch_size;
35  // For nvvidconv
38 
39 // Struct to store references to the bin and elements
40 typedef struct
41 {
42  GstElement *bin;
43  GstElement *queue;
44  GstElement *pre_conv;
45  GstElement *cap_filter;
46  GstElement *elem_dsexample;
48 
49 // Function to create the bin and set properties
50 gboolean
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* _NVGSTDS_DSEXAMPLE_H_ */
NvDsDsExampleConfig::enable
gboolean enable
Definition: deepstream_dsexample.h:26
NvDsDsExampleBin::bin
GstElement * bin
Definition: deepstream_dsexample.h:42
NvDsDsExampleBin::pre_conv
GstElement * pre_conv
Definition: deepstream_dsexample.h:44
NvDsDsExampleConfig::processing_height
gint processing_height
Definition: deepstream_dsexample.h:30
NvDsDsExampleBin
Definition: deepstream_dsexample.h:40
NvDsDsExampleConfig::blur_objects
gboolean blur_objects
Definition: deepstream_dsexample.h:31
NvDsDsExampleConfig
Definition: deepstream_dsexample.h:23
create_dsexample_bin
gboolean create_dsexample_bin(NvDsDsExampleConfig *config, NvDsDsExampleBin *bin)
NvDsDsExampleConfig::unique_id
guint unique_id
Definition: deepstream_dsexample.h:32
NvDsDsExampleConfig::gpu_id
guint gpu_id
Definition: deepstream_dsexample.h:33
NvDsDsExampleConfig::batch_size
guint batch_size
Definition: deepstream_dsexample.h:34
NvDsDsExampleConfig::full_frame
gboolean full_frame
Definition: deepstream_dsexample.h:28
NvDsDsExampleConfig::processing_width
gint processing_width
Definition: deepstream_dsexample.h:29
NvDsDsExampleBin::elem_dsexample
GstElement * elem_dsexample
Definition: deepstream_dsexample.h:46
NvDsDsExampleBin::cap_filter
GstElement * cap_filter
Definition: deepstream_dsexample.h:45
NvDsDsExampleBin::queue
GstElement * queue
Definition: deepstream_dsexample.h:43
NvDsDsExampleConfig::nvbuf_memory_type
guint nvbuf_memory_type
Definition: deepstream_dsexample.h:36