NVIDIA DeepStream SDK API Reference
9.2 Release
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.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_NVCAMERASRC_BIN_H__
19
#define __GST_DS_NVCAMERASRC_BIN_H__
20
21
#include <gst/video/video.h>
22
23
G_BEGIN_DECLS
24
25
typedef
enum
26
{
27
V4L2
,
28
NVARGUS
,
29
}
GstDsNvCameraSrcType
;
30
31
typedef
struct
_GstDsNvCameraSrcBin
32
{
33
GstBin
bin
;
34
35
GstDsNvCameraSrcType
type
;
36
guint
width
;
37
guint
height
;
38
guint
fps_n
;
39
guint
fps_d
;
40
41
guint
gpu_id
;
42
guint
memtype
;
43
44
guint
sensor_id
;
45
gchar *
v4l2_device
;
46
47
GstPad *
bin_src_pad
;
48
49
GstElement *
src_elem
;
50
51
gint
source_id
;
52
53
}
GstDsNvCameraSrcBin
;
54
55
typedef
struct
_GstDsNvCameraSrcBinClass
56
{
57
GstBinClass
parent_class
;
58
}
GstDsNvCameraSrcBinClass
;
59
60
61
/* Standard GStreamer boilerplate */
62
#define GST_TYPE_DS_NVCAMERASRC_BIN (gst_ds_nvcamerasrc_bin_get_type())
63
#define GST_DS_NVCAMERASRC_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DS_NVCAMERASRC_BIN,GstDsNvCameraSrcBin))
64
#define GST_DS_NVCAMERASRC_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DS_NVCAMERASRC_BIN,GstDsNvCameraSrcBinClass))
65
#define GST_DS_NVCAMERASRC_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_DS_NVCAMERASRC_BIN, GstDsNvCameraSrcBinClass))
66
#define GST_IS_DS_NVCAMERASRC_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DS_NVCAMERASRC_BIN))
67
#define GST_IS_DS_NVCAMERASRC_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DS_NVCAMERASRC_BIN))
68
#define GST_DS_NVCAMERASRC_BIN_CAST(obj) ((GstDsNvCameraSrcBin *)(obj))
69
70
GType
gst_ds_nvcamerasrc_bin_get_type
(
void
);
71
72
G_END_DECLS
73
#endif
/* __GST_DS_NVCAMERASRC_BIN_H__ */
GstDsNvCameraSrcType
GstDsNvCameraSrcType
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:25
_GstDsNvCameraSrcBin::v4l2_device
gchar * v4l2_device
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:45
_GstDsNvCameraSrcBin::width
guint width
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:36
NVARGUS
@ NVARGUS
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:28
GstDsNvCameraSrcBinClass
struct _GstDsNvCameraSrcBinClass GstDsNvCameraSrcBinClass
_GstDsNvCameraSrcBin::fps_d
guint fps_d
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:39
V4L2
@ V4L2
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:27
_GstDsNvCameraSrcBin::gpu_id
guint gpu_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:41
_GstDsNvCameraSrcBin
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:31
GstDsNvCameraSrcBin
struct _GstDsNvCameraSrcBin GstDsNvCameraSrcBin
_GstDsNvCameraSrcBin::bin_src_pad
GstPad * bin_src_pad
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:47
_GstDsNvCameraSrcBin::memtype
guint memtype
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:42
_GstDsNvCameraSrcBin::sensor_id
guint sensor_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:44
_GstDsNvCameraSrcBin::source_id
gint source_id
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:51
_GstDsNvCameraSrcBin::fps_n
guint fps_n
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:38
gst_ds_nvcamerasrc_bin_get_type
GType gst_ds_nvcamerasrc_bin_get_type(void)
_GstDsNvCameraSrcBin::height
guint height
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:37
_GstDsNvCameraSrcBin::type
GstDsNvCameraSrcType type
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:35
_GstDsNvCameraSrcBinClass::parent_class
GstBinClass parent_class
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:57
_GstDsNvCameraSrcBinClass
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:55
_GstDsNvCameraSrcBin::bin
GstBin bin
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:33
_GstDsNvCameraSrcBin::src_elem
GstElement * src_elem
Definition:
sources/gst-plugins/gst-nvdsbins/gstdsnvcamerasrcbin.h:49
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