NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_segvisual.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: MIT
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  * DEALINGS IN THE SOFTWARE.
22  */
23 
24 #ifndef __NVGSTDS_SEGVISUAL_H__
25 #define __NVGSTDS_SEGVISUAL_H__
26 
27 #include <gst/gst.h>
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 typedef struct
35 {
36  GstElement *bin;
37  GstElement *queue;
38  GstElement *nvvidconv;
39  GstElement *conv_queue;
40  GstElement *cap_filter;
41  GstElement *nvsegvisual;
43 
44 typedef struct
45 {
46  gboolean enable;
47  guint gpu_id;
49  guint width;
50  guint height;
51  guint nvbuf_memory_type; /* For nvvidconv */
53 
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif
NvDsSegVisualBin
Definition: deepstream_segvisual.h:34
NvDsSegVisualConfig::gpu_id
guint gpu_id
Definition: deepstream_segvisual.h:47
NvDsSegVisualConfig::width
guint width
Definition: deepstream_segvisual.h:49
NvDsSegVisualBin::queue
GstElement * queue
Definition: deepstream_segvisual.h:37
create_segvisual_bin
gboolean create_segvisual_bin(NvDsSegVisualConfig *config, NvDsSegVisualBin *bin)
Initialize NvDsSegVisualBin.
NvDsSegVisualBin::nvsegvisual
GstElement * nvsegvisual
Definition: deepstream_segvisual.h:41
NvDsSegVisualBin::conv_queue
GstElement * conv_queue
Definition: deepstream_segvisual.h:39
NvDsSegVisualConfig::max_batch_size
guint max_batch_size
Definition: deepstream_segvisual.h:48
NvDsSegVisualConfig
Definition: deepstream_segvisual.h:44
NvDsSegVisualBin::cap_filter
GstElement * cap_filter
Definition: deepstream_segvisual.h:40
NvDsSegVisualBin::bin
GstElement * bin
Definition: deepstream_segvisual.h:36
NvDsSegVisualConfig::enable
gboolean enable
Definition: deepstream_segvisual.h:46
NvDsSegVisualConfig::nvbuf_memory_type
guint nvbuf_memory_type
Definition: deepstream_segvisual.h:51
NvDsSegVisualConfig::height
guint height
Definition: deepstream_segvisual.h:50
NvDsSegVisualBin::nvvidconv
GstElement * nvvidconv
Definition: deepstream_segvisual.h:38