NVIDIA DeepStream SDK API Reference

7.1 Release
gstnvdsmetaextract.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022 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 __GST_NVDSMETAEXTRACT_H__
14 #define __GST_NVDSMETAEXTRACT_H__
15 
16 #include <gst/gst.h>
17 #include <gst/base/gstbasetransform.h>
18 
19 G_BEGIN_DECLS
20 
21 /* #defines don't like whitespacey bits */
22 #define GST_TYPE_NVDSMETAEXTRACT \
23  (gst_nvdsmetaextract_get_type())
24 #define GST_NVDSMETAEXTRACT(obj) \
25  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NVDSMETAEXTRACT,Gstnvdsmetaextract))
26 #define GST_NVDSMETAEXTRACT_CLASS(klass) \
27  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NVDSMETAEXTRACT,GstnvdsmetaextractClass))
28 #define GST_IS_NVDSMETAEXTRACT(obj) \
29  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NVDSMETAEXTRACT))
30 #define GST_IS_NVDSMETAEXTRACT_CLASS(klass) \
31  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NVDSMETAEXTRACT))
32 
35 
37 {
38  GstBaseTransform element;
39 
40  GstPad *sinkpad, *srcpad;
41  gboolean is_same_caps;
42 
43  /* source and sink pad caps */
44  GstCaps *sinkcaps;
45  GstCaps *srccaps;
46 
47  guint frame_width;
48  guint frame_height;
49 
50  void *lib_handle;
52  void (*deserialize_func)(GstBuffer *buf);
53 };
54 
56 {
57  GstBaseTransformClass parent_class;
58 };
59 
60 GType gst_nvdsmetaextract_get_type (void);
61 
62 gboolean nvds_metaextract_init (GstPlugin * nvdsmetaextract);
63 
64 G_END_DECLS
65 
66 #endif /* __GST_NVDSMETAEXTRACT_H__ */
_Gstnvdsmetaextract::element
GstBaseTransform element
Definition: gstnvdsmetaextract.h:38
_Gstnvdsmetaextract::deserialization_lib_name
gchar * deserialization_lib_name
Definition: gstnvdsmetaextract.h:51
_Gstnvdsmetaextract::srccaps
GstCaps * srccaps
Definition: gstnvdsmetaextract.h:45
_Gstnvdsmetaextract::sinkpad
GstPad * sinkpad
Definition: gstnvdsmetaextract.h:40
_Gstnvdsmetaextract::frame_width
guint frame_width
Definition: gstnvdsmetaextract.h:47
_GstnvdsmetaextractClass::parent_class
GstBaseTransformClass parent_class
Definition: gstnvdsmetaextract.h:57
nvds_metaextract_init
gboolean nvds_metaextract_init(GstPlugin *nvdsmetaextract)
_Gstnvdsmetaextract::lib_handle
void * lib_handle
Definition: gstnvdsmetaextract.h:50
_Gstnvdsmetaextract::sinkcaps
GstCaps * sinkcaps
Definition: gstnvdsmetaextract.h:44
_Gstnvdsmetaextract::srcpad
GstPad * srcpad
Definition: gstnvdsmetaextract.h:40
_Gstnvdsmetaextract
Definition: gstnvdsmetaextract.h:36
_GstnvdsmetaextractClass
Definition: gstnvdsmetaextract.h:55
_Gstnvdsmetaextract::is_same_caps
gboolean is_same_caps
Definition: gstnvdsmetaextract.h:41
_Gstnvdsmetaextract::deserialize_func
void(* deserialize_func)(GstBuffer *buf)
Definition: gstnvdsmetaextract.h:52
GstBuffer
struct _GstBuffer GstBuffer
Definition: idatatype.h:19
gst_nvdsmetaextract_get_type
GType gst_nvdsmetaextract_get_type(void)
_Gstnvdsmetaextract::frame_height
guint frame_height
Definition: gstnvdsmetaextract.h:48