NVIDIA DeepStream SDK API Reference

7.0 Release
gstnvdsA2Vtemplate.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023 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_NVDSA2VTEMPLATE_H__
14 #define __GST_NVDSA2VTEMPLATE_H__
15 
16 #include <vector>
17 #include "gstaudio2video.h"
18 #include "nvdscustomlib_factory.hpp"
19 #include "nvdscustomlib_interface.hpp"
20 
21 G_BEGIN_DECLS
22 
23 /* Package and library details required for plugin_init */
24 #define PACKAGE "nvdsA2Vtemplate"
25 #define VERSION "1.0"
26 #define LICENSE "Proprietary"
27 #define DESCRIPTION "Nvidia nvdsA2Vtemplate plugin for handling audio in to video out related use cases \0"
28 #define BINARY_PACKAGE "NVIDIA DeepStream A2Vtemplate Plugin"
29 #define URL "http://nvidia.com/"
30 
31 /* Standard boilerplate stuff */
32 #define GST_TYPE_NVDSA2VTEMPLATE (gst_nvdsA2Vtemplate_get_type())
33 #define GST_NVDSA2VTEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NVDSA2VTEMPLATE,GstNvDsA2Vtemplate))
34 #define GST_NVDSA2VTEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NVDSA2VTEMPLATE,GstNvDsA2VtemplateClass))
35 #define GST_NVDSA2VTEMPLATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_NVDSA2VTEMPLATE, GstNvDsA2VtemplateClass))
36 #define GST_IS_NVDSA2VTEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NVDSA2VTEMPLATE))
37 #define GST_IS_NVDSA2VTEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NVDSA2VTEMPLATE))
38 #define GST_NVDSA2VTEMPLATE_CAST(obj) ((GstNvDsA2Vtemplate *)(obj))
39 
42 
44 {
46  GstPadEventFunction parent_sink_event_fn;
47 
51 
54 
55  /* Store custom lib property values */
56  std::vector<Property> *vecProp;
58 
59  gboolean gpu_on;
60 
61  /* < private > */
62  GstBufferPool *pool;
63 };
64 
66 {
68  GstStateChangeReturn (* parent_change_state_fn) (GstElement * element,
69  GstStateChange transition);
70 };
71 
72 GType gst_nvdsA2Vtemplate_get_type (void);
73 
74 G_END_DECLS
75 #endif /* __GST_NVDSA2VTEMPLATE_H__ */
_GstNvDsA2Vtemplate::algo_factory
DSCustomLibrary_Factory * algo_factory
Custom Library Factory and Interface.
Definition: gstnvdsA2Vtemplate.h:49
DSCustomLibrary_Factory
Definition: gst-nvdsA2Vtemplate/includes/nvdscustomlib_factory.hpp:29
gst_nvdsA2Vtemplate_get_type
GType gst_nvdsA2Vtemplate_get_type(void)
_GstNvDsA2Vtemplate
Definition: gstnvdsA2Vtemplate.h:43
_GstNvDsA2Vtemplate::vecProp
std::vector< Property > * vecProp
Definition: gstnvdsA2Vtemplate.h:56
_GstNvDsA2Vtemplate::parent
GstAudio2Video parent
Definition: gstnvdsA2Vtemplate.h:45
_GstAudio2VideoClass
Definition: gstaudio2video.h:49
IDSCustomLibrary
Definition: gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:43
gstaudio2video.h
_GstNvDsA2Vtemplate::pool
GstBufferPool * pool
Definition: gstnvdsA2Vtemplate.h:62
_GstNvDsA2VtemplateClass::parent_change_state_fn
GstStateChangeReturn(* parent_change_state_fn)(GstElement *element, GstStateChange transition)
Definition: gstnvdsA2Vtemplate.h:68
_GstNvDsA2Vtemplate::custom_prop_string
gchar * custom_prop_string
Definition: gstnvdsA2Vtemplate.h:57
_GstNvDsA2Vtemplate::algo_ctx
IDSCustomLibrary * algo_ctx
Definition: gstnvdsA2Vtemplate.h:50
_GstNvDsA2Vtemplate::custom_lib_name
gchar * custom_lib_name
Custom Library Name and output caps string.
Definition: gstnvdsA2Vtemplate.h:53
_GstNvDsA2Vtemplate::parent_sink_event_fn
GstPadEventFunction parent_sink_event_fn
Definition: gstnvdsA2Vtemplate.h:46
_GstNvDsA2Vtemplate::gpu_on
gboolean gpu_on
Definition: gstnvdsA2Vtemplate.h:59
_GstNvDsA2VtemplateClass
Definition: gstnvdsA2Vtemplate.h:65
_GstNvDsA2VtemplateClass::parent_class
GstAudio2VideoClass parent_class
Definition: gstnvdsA2Vtemplate.h:67
_GstAudio2Video
Definition: gstaudio2video.h:33