NVIDIA DeepStream SDK API Reference
9.2 Release
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2020-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 __GST_DS_NVVIDEORENDERER_BIN_H__
19
#define __GST_DS_NVVIDEORENDERER_BIN_H__
20
21
#include <gst/gst.h>
22
23
#include "nvbufsurface.h"
24
25
G_BEGIN_DECLS
26
27
typedef
enum
28
{
29
VIDEO_RENDERER_NONE
,
30
VIDEO_RENDERER_FAKE
,
31
VIDEO_RENDERER_EGL
,
32
VIDEO_RENDERER_DRM
,
33
VIDEO_RENDERER_3D
,
34
}
VideoRendererType
;
35
36
/* Standard GStreamer boilerplate */
37
typedef
struct
_GstDsNvVideoRendererBin
38
{
39
GstBin
bin
;
40
41
guint
offset_x
;
42
guint
offset_y
;
43
guint
width
;
44
guint
height
;
45
guint
sync
;
46
guint
qos
;
47
guint
gpu_id
;
48
guint
color_range
;
49
guint
conn_id
;
50
guint
plane_id
;
51
gboolean
set_mode
;
52
NvBufSurfaceMemType
mem_type
;
53
gchar *
create_from_config
;
54
VideoRendererType
vrenderer_type
;
55
56
guintptr
window_id
;
57
gboolean
window_id_set
;
58
gint
render_rect_x
;
59
gint
render_rect_y
;
60
gint
render_rect_w
;
61
gint
render_rect_h
;
62
gboolean
render_rect_set
;
63
64
GstElement *
sink
;
65
GstElement *
cap_filter
;
66
GstElement *
transform
;
67
GstElement *
queue
;
68
69
GstPad *
bin_sink_pad
;
70
71
}
GstDsNvVideoRendererBin
;
72
73
typedef
struct
_GstDsNvVideoRendererBinClass
74
{
75
GstBinClass
parent_class
;
76
}
GstDsNvVideoRendererBinClass
;
77
78
79
/* Standard GStreamer boilerplate */
80
#define GST_TYPE_DS_NVVIDEORENDERER_BIN (gst_ds_nvvideorenderer_bin_get_type())
81
#define GST_DS_NVVIDEORENDERER_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DS_NVVIDEORENDERER_BIN,GstDsNvVideoRendererBin))
82
#define GST_DS_NVVIDEORENDERER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DS_NVVIDEORENDERER_BIN,GstDsNvVideoRendererBinClass))
83
#define GST_DS_NVVIDEORENDERER_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_DS_NVVIDEORENDERER_BIN, GstDsNvVideoRendererBinClass))
84
#define GST_IS_DS_NVVIDEORENDERER_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DS_NVVIDEORENDERER_BIN))
85
#define GST_IS_DS_NVVIDEORENDERER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DS_NVVIDEORENDERER_BIN))
86
#define GST_DS_NVVIDEORENDERER_BIN_CAST(obj) ((GstDsNvVideoRendererBin *)(obj))
87
88
GType
gst_ds_nvvideorenderer_bin_get_type
(
void
);
89
90
G_END_DECLS
91
#endif
/* __GST_INFER_H__ */
_GstDsNvVideoRendererBin::color_range
guint color_range
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:48
_GstDsNvVideoRendererBin::mem_type
NvBufSurfaceMemType mem_type
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:52
_GstDsNvVideoRendererBin::queue
GstElement * queue
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:67
GstDsNvVideoRendererBin
struct _GstDsNvVideoRendererBin GstDsNvVideoRendererBin
_GstDsNvVideoRendererBin::window_id
guintptr window_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:56
_GstDsNvVideoRendererBin::render_rect_y
gint render_rect_y
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:59
_GstDsNvVideoRendererBin::window_id_set
gboolean window_id_set
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:57
_GstDsNvVideoRendererBin::render_rect_set
gboolean render_rect_set
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:62
gst_ds_nvvideorenderer_bin_get_type
GType gst_ds_nvvideorenderer_bin_get_type(void)
_GstDsNvVideoRendererBin::create_from_config
gchar * create_from_config
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:53
_GstDsNvVideoRendererBin::conn_id
guint conn_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:49
_GstDsNvVideoRendererBin::gpu_id
guint gpu_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:47
_GstDsNvVideoRendererBin::bin
GstBin bin
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:39
GstDsNvVideoRendererBinClass
struct _GstDsNvVideoRendererBinClass GstDsNvVideoRendererBinClass
_GstDsNvVideoRendererBin::set_mode
gboolean set_mode
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:51
_GstDsNvVideoRendererBin::width
guint width
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:43
VideoRendererType
VideoRendererType
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:27
_GstDsNvVideoRendererBin::transform
GstElement * transform
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:66
_GstDsNvVideoRendererBinClass::parent_class
GstBinClass parent_class
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:75
_GstDsNvVideoRendererBin::plane_id
guint plane_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:50
_GstDsNvVideoRendererBin::render_rect_w
gint render_rect_w
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:60
_GstDsNvVideoRendererBin
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:37
_GstDsNvVideoRendererBin::offset_x
guint offset_x
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:41
_GstDsNvVideoRendererBinClass
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:73
NvBufSurfaceMemType
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Definition:
includes/nvbufsurface.h:355
VIDEO_RENDERER_EGL
@ VIDEO_RENDERER_EGL
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:31
_GstDsNvVideoRendererBin::bin_sink_pad
GstPad * bin_sink_pad
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:69
_GstDsNvVideoRendererBin::sink
GstElement * sink
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:64
VIDEO_RENDERER_DRM
@ VIDEO_RENDERER_DRM
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:32
_GstDsNvVideoRendererBin::sync
guint sync
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:45
_GstDsNvVideoRendererBin::render_rect_h
gint render_rect_h
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:61
_GstDsNvVideoRendererBin::cap_filter
GstElement * cap_filter
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:65
_GstDsNvVideoRendererBin::qos
guint qos
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:46
VIDEO_RENDERER_NONE
@ VIDEO_RENDERER_NONE
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:29
_GstDsNvVideoRendererBin::offset_y
guint offset_y
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:42
_GstDsNvVideoRendererBin::vrenderer_type
VideoRendererType vrenderer_type
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:54
VIDEO_RENDERER_FAKE
@ VIDEO_RENDERER_FAKE
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:30
VIDEO_RENDERER_3D
@ VIDEO_RENDERER_3D
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:33
_GstDsNvVideoRendererBin::height
guint height
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:44
_GstDsNvVideoRendererBin::render_rect_x
gint render_rect_x
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvvideorendererbin.h:58
Privacy Policy
|
Your Privacy Choices
|
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.
Wed Oct 28 2026 12:02:03 | PR-09318-R32