NVIDIA DeepStream SDK API Reference
6.4 Release
deepstream_dsexample.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-2019, 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_DSEXAMPLE_H_
24
#define _NVGSTDS_DSEXAMPLE_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
// Struct members to store config / properties for the element
38
gboolean
full_frame
;
39
gint
processing_width
;
40
gint
processing_height
;
41
gboolean
blur_objects
;
42
guint
unique_id
;
43
guint
gpu_id
;
44
// For nvvidconv
45
guint
nvbuf_memory_type
;
46
}
NvDsDsExampleConfig
;
47
48
// Struct to store references to the bin and elements
49
typedef
struct
50
{
51
GstElement *
bin
;
52
GstElement *
queue
;
53
GstElement *
pre_conv
;
54
GstElement *
cap_filter
;
55
GstElement *
elem_dsexample
;
56
}
NvDsDsExampleBin
;
57
58
// Function to create the bin and set properties
59
gboolean
60
create_dsexample_bin
(
NvDsDsExampleConfig
*config,
NvDsDsExampleBin
*bin);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* _NVGSTDS_DSEXAMPLE_H_ */
NvDsDsExampleConfig::enable
gboolean enable
Definition:
deepstream_dsexample.h:36
NvDsDsExampleBin::bin
GstElement * bin
Definition:
deepstream_dsexample.h:51
NvDsDsExampleBin::pre_conv
GstElement * pre_conv
Definition:
deepstream_dsexample.h:53
NvDsDsExampleConfig::processing_height
gint processing_height
Definition:
deepstream_dsexample.h:40
NvDsDsExampleBin
Definition:
deepstream_dsexample.h:49
NvDsDsExampleConfig::blur_objects
gboolean blur_objects
Definition:
deepstream_dsexample.h:41
NvDsDsExampleConfig
Definition:
deepstream_dsexample.h:33
create_dsexample_bin
gboolean create_dsexample_bin(NvDsDsExampleConfig *config, NvDsDsExampleBin *bin)
NvDsDsExampleConfig::unique_id
guint unique_id
Definition:
deepstream_dsexample.h:42
NvDsDsExampleConfig::gpu_id
guint gpu_id
Definition:
deepstream_dsexample.h:43
NvDsDsExampleConfig::full_frame
gboolean full_frame
Definition:
deepstream_dsexample.h:38
NvDsDsExampleConfig::processing_width
gint processing_width
Definition:
deepstream_dsexample.h:39
NvDsDsExampleBin::elem_dsexample
GstElement * elem_dsexample
Definition:
deepstream_dsexample.h:55
NvDsDsExampleBin::cap_filter
GstElement * cap_filter
Definition:
deepstream_dsexample.h:54
NvDsDsExampleBin::queue
GstElement * queue
Definition:
deepstream_dsexample.h:52
NvDsDsExampleConfig::nvbuf_memory_type
guint nvbuf_memory_type
Definition:
deepstream_dsexample.h:45
Advance Information | Subject to Change | Generated by NVIDIA | Mon Dec 11 2023 17:51:24 | PR-09318-R32