NVIDIA DeepStream SDK API Reference
9.1 Release
9.1/sources/apps/apps-common/includes/deepstream_osd.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2018-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_OSD_H__
19
#define __NVGSTDS_OSD_H__
20
21
#include <gst/gst.h>
22
23
#ifdef __cplusplus
24
extern
"C"
25
{
26
#endif
27
28
#include "nvll_osd_struct.h"
29
30
typedef
struct
31
{
32
GstElement *bin;
33
GstElement *queue;
34
GstElement *nvvidconv;
35
GstElement *conv_queue;
36
GstElement *cap_filter;
37
GstElement *nvosd;
38
}
NvDsOSDBin
;
39
40
typedef
struct
41
{
42
gboolean enable;
43
gboolean text_has_bg;
44
gboolean enable_clock;
45
gboolean draw_text;
46
gboolean draw_bbox;
47
gboolean draw_mask;
48
gint text_size;
49
gint border_width;
50
gint clock_text_size;
51
gint clock_x_offset;
52
gint clock_y_offset;
53
guint gpu_id;
54
guint nvbuf_memory_type;
/* For nvvidconv */
55
guint num_out_buffers;
56
gchar *font;
57
gchar *hw_blend_color_attr;
58
NvOSD_Mode
mode;
59
NvOSD_ColorParams
clock_color;
60
NvOSD_ColorParams
text_color;
61
NvOSD_ColorParams
text_bg_color;
62
}
NvDsOSDConfig
;
63
74
gboolean
create_osd_bin
(
NvDsOSDConfig
*config,
NvDsOSDBin
*bin);
75
76
#ifdef __cplusplus
77
}
78
#endif
79
80
#endif
create_osd_bin
gboolean create_osd_bin(NvDsOSDConfig *config, NvDsOSDBin *bin)
Initialize NvDsOSDBin.
NvOSD_Mode
NvOSD_Mode
Defines modes used to overlay boxes and text.
Definition:
sources/includes/nvll_osd_struct.h:47
NvDsOSDBin
Definition:
sources/apps/apps-common/includes/deepstream_osd.h:30
_NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
Definition:
sources/includes/nvll_osd_struct.h:86
NvDsOSDConfig
Definition:
sources/apps/apps-common/includes/deepstream_osd.h:40
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Thu Jul 9 2026 11:48:19 | PR-09318-R32