NVIDIA DeepStream SDK API Reference

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