NVIDIA DeepStream SDK API Reference
6.4 Release
nvdspostprocesslib_interface.hpp
Go to the documentation of this file.
1
23
#ifndef __NVDSPOSTPROCESSLIB_INTERFACE_HPP__
24
#define __NVDSPOSTPROCESSLIB_INTERFACE_HPP__
25
26
#include <string>
27
#include <gst/gstbuffer.h>
28
29
enum class
BufferResult
{
30
Buffer_Ok
,
// Push the buffer from submit_input function
31
Buffer_Drop
,
// Drop the buffer inside submit_input function
32
Buffer_Async
,
// Return from submit_input function, postprocess lib to push the buffer
33
Buffer_Error
// Error occured
34
};
35
36
struct
DSPostProcess_CreateParams
{
37
GstBaseTransform *
m_element
;
38
guint
m_gpuId
;
39
cudaStream_t
m_cudaStream
;
40
};
41
42
struct
Property
43
{
44
Property
(std::string arg_key, std::string arg_value) :
key
(arg_key),
value
(arg_value)
45
{
46
}
47
48
std::string
key
;
49
std::string
value
;
50
};
51
52
class
IDSPostProcessLibrary
53
{
54
public
:
55
virtual
bool
HandleEvent
(GstEvent *event) = 0;
56
virtual
bool
SetConfigFile
(
const
gchar *config_file) = 0;
57
virtual
BufferResult
ProcessBuffer
(
GstBuffer
*inbuf) = 0;
58
virtual
~IDSPostProcessLibrary
() {};
59
};
60
61
#endif
BufferResult::Buffer_Async
@ Buffer_Async
IDSPostProcessLibrary
Definition:
nvdspostprocesslib_interface.hpp:52
BufferResult::Buffer_Drop
@ Buffer_Drop
Property::key
std::string key
Definition:
gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:49
BufferResult
BufferResult
Copyright (c) 2023, NVIDIA CORPORATION.
Definition:
gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:32
Property::value
std::string value
Definition:
gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:50
IDSPostProcessLibrary::SetConfigFile
virtual bool SetConfigFile(const gchar *config_file)=0
IDSPostProcessLibrary::ProcessBuffer
virtual BufferResult ProcessBuffer(GstBuffer *inbuf)=0
DSPostProcess_CreateParams::m_gpuId
guint m_gpuId
Definition:
nvdspostprocesslib_interface.hpp:38
IDSPostProcessLibrary::~IDSPostProcessLibrary
virtual ~IDSPostProcessLibrary()
Definition:
nvdspostprocesslib_interface.hpp:58
DSPostProcess_CreateParams::m_cudaStream
cudaStream_t m_cudaStream
Definition:
nvdspostprocesslib_interface.hpp:39
DSPostProcess_CreateParams::m_element
GstBaseTransform * m_element
Definition:
nvdspostprocesslib_interface.hpp:37
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition:
nvbufsurftransform.h:29
Property
Definition:
gst-nvdsA2Vtemplate/includes/nvdscustomlib_interface.hpp:43
DSPostProcess_CreateParams
Definition:
nvdspostprocesslib_interface.hpp:36
Property::Property
Property(std::string arg_key, std::string arg_value)
Definition:
nvdspostprocesslib_interface.hpp:44
GstBuffer
struct _GstBuffer GstBuffer
Definition:
idatatype.h:19
IDSPostProcessLibrary::HandleEvent
virtual bool HandleEvent(GstEvent *event)=0
BufferResult::Buffer_Error
@ Buffer_Error
BufferResult::Buffer_Ok
@ Buffer_Ok
Advance Information | Subject to Change | Generated by NVIDIA | Mon Dec 11 2023 17:51:25 | PR-09318-R32