NVIDIA DeepStream SDK API Reference
6.4 Release
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp
Go to the documentation of this file.
1
23
#ifndef __NVDS_TTS_CUSTOMLIB_BASE_HPP__
24
#define __NVDS_TTS_CUSTOMLIB_BASE_HPP__
25
26
#include <gst/audio/audio.h>
27
#include <gst/base/gstbasetransform.h>
28
29
#include "
nvdscustomlib_interface.hpp
"
30
31
32
namespace
nvdstts
{
33
34
class
DSCustomLibraryBase
:
public
IDSCustomLibrary
{
35
public
:
36
DSCustomLibraryBase
() =
default
;
37
virtual
~DSCustomLibraryBase
()
override
;
38
39
bool
Initialize
()
override
;
40
41
/* Set Init Parameters */
42
bool
StartWithParams
(
DSCustom_CreateParams
* params)
override
;
43
44
/* Set Each Property */
45
bool
SetProperty
(
const
Property
& prop)
override
;
46
47
/* Get Compatible Input/Output Caps */
48
GstCaps*
GetCompatibleCaps
(
49
GstPadDirection direction, GstCaps* inCaps,
50
GstCaps* otherCaps)
override
;
51
52
/* Handle event, e.g. EOS... */
53
bool
HandleEvent
(GstEvent* event)
override
{
return
true
; }
54
55
/* Process Input Buffer */
56
BufferResult
ProcessBuffer
(
GstBuffer
* inbuf)
override
= 0;
57
58
protected
:
59
/* Gstreamer dstts plugin's base class reference */
60
GstBaseTransform*
m_element
{
nullptr
};
61
/* Gst Caps Information */
62
GstCaps*
m_inCaps
{
nullptr
};
63
GstCaps*
m_outCaps
{
nullptr
};
64
std::string
m_configFile
;
65
66
/* Audio Information */
67
/* Output Information */
68
CapsType
m_OutType
=
CapsType::kNone
;
69
GstAudioInfo
m_outAudioInfo
{
nullptr
, GST_AUDIO_FLAG_NONE};
70
GstAudioFormat
m_outAudioFmt
= GST_AUDIO_FORMAT_UNKNOWN;
71
};
72
73
}
// namespace nvdstts
74
75
#endif
nvdstts::IDSCustomLibrary
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_interface.hpp:64
nvdstts::DSCustomLibraryBase::StartWithParams
bool StartWithParams(DSCustom_CreateParams *params) override
nvdstts::DSCustomLibraryBase::m_element
GstBaseTransform * m_element
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:60
nvdstts::Property
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_interface.hpp:48
nvdstts::DSCustomLibraryBase::HandleEvent
bool HandleEvent(GstEvent *event) override
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:53
nvdstts::CapsType
CapsType
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_interface.hpp:58
nvdstts::DSCustomLibraryBase::SetProperty
bool SetProperty(const Property &prop) override
nvdstts::DSCustomLibraryBase::ProcessBuffer
BufferResult ProcessBuffer(GstBuffer *inbuf) override=0
nvdstts::DSCustomLibraryBase::GetCompatibleCaps
GstCaps * GetCompatibleCaps(GstPadDirection direction, GstCaps *inCaps, GstCaps *otherCaps) override
nvdscustomlib_interface.hpp
nvdstts::CapsType::kNone
@ kNone
nvdstts::BufferResult
BufferResult
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_interface.hpp:34
nvdstts::DSCustomLibraryBase
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:34
nvdstts::DSCustomLibraryBase::DSCustomLibraryBase
DSCustomLibraryBase()=default
nvdstts::DSCustomLibraryBase::m_outAudioInfo
GstAudioInfo m_outAudioInfo
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:69
nvdstts::DSCustomLibraryBase::~DSCustomLibraryBase
virtual ~DSCustomLibraryBase() override
nvdstts::DSCustomLibraryBase::m_OutType
CapsType m_OutType
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:68
nvdstts
Copyright (c) 2021, NVIDIA CORPORATION.
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_factory.h:34
nvdstts::DSCustomLibraryBase::m_outAudioFmt
GstAudioFormat m_outAudioFmt
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:70
GstBuffer
struct _GstBuffer GstBuffer
Definition:
idatatype.h:19
nvdstts::DSCustomLibraryBase::Initialize
bool Initialize() override
nvdstts::DSCustomLibraryBase::m_configFile
std::string m_configFile
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:64
nvdstts::DSCustomLibraryBase::m_outCaps
GstCaps * m_outCaps
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:63
nvdstts::DSCustomLibraryBase::m_inCaps
GstCaps * m_inCaps
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_base.hpp:62
nvdstts::DSCustom_CreateParams
Definition:
gst-nvdstexttospeech/includes/nvdscustomlib_interface.hpp:42
Advance Information | Subject to Change | Generated by NVIDIA | Mon Dec 11 2023 17:51:25 | PR-09318-R32