NVIDIA DeepStream SDK API Reference
7.1 Release
deepstream_osd.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2018-2019 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_OSD_H__
14
#define __NVGSTDS_OSD_H__
15
16
#include <gst/gst.h>
17
18
#ifdef __cplusplus
19
extern
"C"
20
{
21
#endif
22
23
#include "
nvll_osd_struct.h
"
24
25
typedef
struct
26
{
27
GstElement *
bin
;
28
GstElement *
queue
;
29
GstElement *
nvvidconv
;
30
GstElement *
conv_queue
;
31
GstElement *
cap_filter
;
32
GstElement *
nvosd
;
33
}
NvDsOSDBin
;
34
35
typedef
struct
36
{
37
gboolean
enable
;
38
gboolean
text_has_bg
;
39
gboolean
enable_clock
;
40
gboolean
draw_text
;
41
gboolean
draw_bbox
;
42
gboolean
draw_mask
;
43
gint
text_size
;
44
gint
border_width
;
45
gint
clock_text_size
;
46
gint
clock_x_offset
;
47
gint
clock_y_offset
;
48
guint
gpu_id
;
49
guint
nvbuf_memory_type
;
/* For nvvidconv */
50
guint
num_out_buffers
;
51
gchar *
font
;
52
gchar *
hw_blend_color_attr
;
53
NvOSD_Mode
mode
;
54
NvOSD_ColorParams
clock_color
;
55
NvOSD_ColorParams
text_color
;
56
NvOSD_ColorParams
text_bg_color
;
57
}
NvDsOSDConfig
;
58
69
gboolean
create_osd_bin
(
NvDsOSDConfig
*config,
NvDsOSDBin
*bin);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
NvDsOSDConfig::clock_text_size
gint clock_text_size
Definition:
deepstream_osd.h:45
NvDsOSDConfig::draw_bbox
gboolean draw_bbox
Definition:
deepstream_osd.h:41
NvDsOSDConfig::enable_clock
gboolean enable_clock
Definition:
deepstream_osd.h:39
create_osd_bin
gboolean create_osd_bin(NvDsOSDConfig *config, NvDsOSDBin *bin)
Initialize NvDsOSDBin.
NvDsOSDConfig::font
gchar * font
Definition:
deepstream_osd.h:51
NvDsOSDConfig::text_color
NvOSD_ColorParams text_color
Definition:
deepstream_osd.h:55
NvDsOSDConfig::clock_y_offset
gint clock_y_offset
Definition:
deepstream_osd.h:47
NvDsOSDConfig::nvbuf_memory_type
guint nvbuf_memory_type
Definition:
deepstream_osd.h:49
NvDsOSDConfig::gpu_id
guint gpu_id
Definition:
deepstream_osd.h:48
NvDsOSDConfig::hw_blend_color_attr
gchar * hw_blend_color_attr
Definition:
deepstream_osd.h:52
NvDsOSDConfig::draw_mask
gboolean draw_mask
Definition:
deepstream_osd.h:42
NvDsOSDConfig::border_width
gint border_width
Definition:
deepstream_osd.h:44
NvDsOSDBin::queue
GstElement * queue
Definition:
deepstream_osd.h:28
NvDsOSDConfig::clock_x_offset
gint clock_x_offset
Definition:
deepstream_osd.h:46
NvDsOSDBin::conv_queue
GstElement * conv_queue
Definition:
deepstream_osd.h:30
NvOSD_Mode
NvOSD_Mode
Defines modes used to overlay boxes and text.
Definition:
nvll_osd_struct.h:42
NvDsOSDConfig::text_size
gint text_size
Definition:
deepstream_osd.h:43
NvDsOSDBin::bin
GstElement * bin
Definition:
deepstream_osd.h:27
NvDsOSDBin
Definition:
deepstream_osd.h:25
NvDsOSDConfig::text_has_bg
gboolean text_has_bg
Definition:
deepstream_osd.h:38
NvDsOSDConfig::draw_text
gboolean draw_text
Definition:
deepstream_osd.h:40
NvDsOSDConfig::num_out_buffers
guint num_out_buffers
Definition:
deepstream_osd.h:50
NvDsOSDBin::nvvidconv
GstElement * nvvidconv
Definition:
deepstream_osd.h:29
NvDsOSDConfig::enable
gboolean enable
Definition:
deepstream_osd.h:37
NvDsOSDBin::cap_filter
GstElement * cap_filter
Definition:
deepstream_osd.h:31
NvDsOSDBin::nvosd
GstElement * nvosd
Definition:
deepstream_osd.h:32
_NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
Definition:
nvll_osd_struct.h:81
NvDsOSDConfig::clock_color
NvOSD_ColorParams clock_color
Definition:
deepstream_osd.h:54
NvDsOSDConfig::text_bg_color
NvOSD_ColorParams text_bg_color
Definition:
deepstream_osd.h:56
nvll_osd_struct.h
NvDsOSDConfig
Definition:
deepstream_osd.h:35
NvDsOSDConfig::mode
NvOSD_Mode mode
Definition:
deepstream_osd.h:53
Advance Information | Subject to Change | Generated by NVIDIA | Mon Oct 14 2024 13:27:43 | PR-09318-R32