NVIDIA DeepStream SDK API Reference

6.4 Release
gstnvdsaudiotemplate.h
Go to the documentation of this file.
1 
23 #ifndef __GST_NVDSAUDIOTEMPLATE_H__
24 #define __GST_NVDSAUDIOTEMPLATE_H__
25 
26 #include <gst/base/gstbasetransform.h>
27 #include <gst/audio/audio.h>
28 #include <glib-object.h>
29 #include <vector>
30 
31 #include <cuda_runtime.h>
32 #include "gstnvdsmeta.h"
33 #include "nvtx3/nvToolsExt.h"
34 
35 #include "nvdscustomlib_factory.hpp"
36 #include "nvdscustomlib_interface.hpp"
37 
38 /* Package and library details required for plugin_init */
39 #define PACKAGE "nvdsaudiotemplate"
40 #define VERSION "1.0"
41 #define LICENSE "Proprietary"
42 #define DESCRIPTION "NVIDIA example Template Plugin for integration with DeepStream on DGPU/Jetson"
43 #define BINARY_PACKAGE "NVIDIA DeepStream Template Plugin"
44 #define URL "http://nvidia.com/"
45 
46 G_BEGIN_DECLS
47 /* Standard boilerplate stuff */
50 
51 /* Standard boilerplate stuff */
52 #define GST_TYPE_NVDSAUDIOTEMPLATE (gst_nvdsaudiotemplate_get_type())
53 #define GST_NVDSAUDIOTEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NVDSAUDIOTEMPLATE,GstNvDsAudioTemplate))
54 #define GST_NVDSAUDIOTEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NVDSAUDIOTEMPLATE,GstNvDsAudioTemplateClass))
55 #define GST_NVDSAUDIOTEMPLATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_NVDSAUDIOTEMPLATE, GstNvDsAudioTemplateClass))
56 #define GST_IS_NVDSAUDIOTEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NVDSAUDIOTEMPLATE))
57 #define GST_IS_NVDSAUDIOTEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NVDSAUDIOTEMPLATE))
58 #define GST_NVDSAUDIOTEMPLATE_CAST(obj) ((GstNvDsAudioTemplate *)(obj))
59 
61 {
62  GstBaseTransform base_trans;
63 
67 
70 
71  /* Store custom lib property values */
72  std::vector<Property> *vecProp;
74 
76  gboolean stop;
77 
79  GstAudioInfo in_audio_info;
80  GstAudioInfo out_audio_info;
81 
83  guint gpu_id;
84 
86  nvtxDomainHandle_t nvtx_domain;
87 
88  GstCaps *sinkcaps;
89  GstCaps *srccaps;
90 
91  guint frame_number;
93 };
94 
97 {
98  GstBaseTransformClass parent_class;
99 };
100 
101 GType gst_nvdsaudiotemplate_get_type (void);
102 
103 G_END_DECLS
104 #endif /* __GST_NVDSAUDIOTEMPLATE_H__ */
_GstNvDsAudioTemplate::stop
gboolean stop
Boolean to signal output thread to stop.
Definition: gstnvdsaudiotemplate.h:76
_GstNvDsAudioTemplate::num_batch_buffers
guint num_batch_buffers
Definition: gstnvdsaudiotemplate.h:92
_GstNvDsAudioTemplate::sinkcaps
GstCaps * sinkcaps
Definition: gstnvdsaudiotemplate.h:88
DSCustomLibrary_Factory
Definition: gst-nvdsA2Vtemplate/includes/nvdscustomlib_factory.hpp:39
_GstNvDsAudioTemplate::custom_prop_string
gchar * custom_prop_string
Definition: gstnvdsaudiotemplate.h:73
_GstNvDsAudioTemplate::base_trans
GstBaseTransform base_trans
Definition: gstnvdsaudiotemplate.h:62
_GstNvDsAudioTemplate::frame_number
guint frame_number
Definition: gstnvdsaudiotemplate.h:91
_GstNvDsAudioTemplate::out_audio_info
GstAudioInfo out_audio_info
Definition: gstnvdsaudiotemplate.h:80
IDSCustomLibrary
Definition: gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:53
_GstNvDsAudioTemplate
Definition: gstnvdsaudiotemplate.h:60
gst_nvdsaudiotemplate_get_type
GType gst_nvdsaudiotemplate_get_type(void)
_GstNvDsAudioTemplateClass::parent_class
GstBaseTransformClass parent_class
Definition: gstnvdsaudiotemplate.h:98
gstnvdsmeta.h
GstNvDsAudioTemplate
typedefG_BEGIN_DECLS struct _GstNvDsAudioTemplate GstNvDsAudioTemplate
Definition: gstnvdsaudiotemplate.h:48
_GstNvDsAudioTemplate::custom_lib_name
gchar * custom_lib_name
Custom Library Name and output caps string.
Definition: gstnvdsaudiotemplate.h:69
_GstNvDsAudioTemplate::vecProp
std::vector< Property > * vecProp
Definition: gstnvdsaudiotemplate.h:72
_GstNvDsAudioTemplateClass
Boiler plate stuff.
Definition: gstnvdsaudiotemplate.h:96
_GstNvDsAudioTemplate::algo_ctx
IDSCustomLibrary * algo_ctx
Definition: gstnvdsaudiotemplate.h:66
_GstNvDsAudioTemplate::srccaps
GstCaps * srccaps
Definition: gstnvdsaudiotemplate.h:89
_GstNvDsAudioTemplate::in_audio_info
GstAudioInfo in_audio_info
Input and Output audio info (resolution, color format, framerate, etc)
Definition: gstnvdsaudiotemplate.h:79
_GstNvDsAudioTemplate::nvtx_domain
nvtxDomainHandle_t nvtx_domain
NVTX Domain.
Definition: gstnvdsaudiotemplate.h:86
_GstNvDsAudioTemplate::algo_factory
DSCustomLibrary_Factory * algo_factory
Custom Library Factory and Interface.
Definition: gstnvdsaudiotemplate.h:65
_GstNvDsAudioTemplate::gpu_id
guint gpu_id
GPU ID on which we expect to execute the task.
Definition: gstnvdsaudiotemplate.h:83