NVIDIA DeepStream SDK API Reference

6.4 Release
DSPostProcessLibraryBase Class Referenceabstract

Detailed Description

Copyright (c) 2022, NVIDIA CORPORATION.

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 32 of file nvdspostprocesslib_base.hpp.

Inheritance diagram for DSPostProcessLibraryBase:
Collaboration diagram for DSPostProcessLibraryBase:

Public Member Functions

 DSPostProcessLibraryBase ()
 
 DSPostProcessLibraryBase (DSPostProcess_CreateParams *params)
 
virtual ~DSPostProcessLibraryBase ()
 
virtual bool HandleEvent (GstEvent *event)=0
 
virtual bool SetConfigFile (const gchar *config_file)=0
 
virtual BufferResult ProcessBuffer (GstBuffer *inbuf)=0
 

Data Fields

GstBaseTransform * m_element
 
guint m_gpuId
 GPU ID on which we expect to execute the algorithm. More...
 
cudaStream_t m_cudaStream
 

Constructor & Destructor Documentation

◆ DSPostProcessLibraryBase() [1/2]

DSPostProcessLibraryBase::DSPostProcessLibraryBase ( )

Definition at line 60 of file nvdspostprocesslib_base.hpp.

References m_cudaStream, m_element, and m_gpuId.

◆ DSPostProcessLibraryBase() [2/2]

◆ ~DSPostProcessLibraryBase()

DSPostProcessLibraryBase::~DSPostProcessLibraryBase ( )
virtual

Definition at line 79 of file nvdspostprocesslib_base.hpp.

Member Function Documentation

◆ HandleEvent()

virtual bool DSPostProcessLibraryBase::HandleEvent ( GstEvent *  event)
pure virtual

Implements IDSPostProcessLibrary.

Implemented in PostProcessAlgorithm.

◆ ProcessBuffer()

virtual BufferResult DSPostProcessLibraryBase::ProcessBuffer ( GstBuffer inbuf)
pure virtual

Implements IDSPostProcessLibrary.

Implemented in PostProcessAlgorithm.

◆ SetConfigFile()

virtual bool DSPostProcessLibraryBase::SetConfigFile ( const gchar *  config_file)
pure virtual

Implements IDSPostProcessLibrary.

Implemented in PostProcessAlgorithm.

Field Documentation

◆ m_cudaStream

cudaStream_t DSPostProcessLibraryBase::m_cudaStream

◆ m_element

GstBaseTransform* DSPostProcessLibraryBase::m_element

◆ m_gpuId

guint DSPostProcessLibraryBase::m_gpuId

GPU ID on which we expect to execute the algorithm.

Definition at line 53 of file nvdspostprocesslib_base.hpp.

Referenced by DSPostProcessLibraryBase(), and PostProcessAlgorithm::PostProcessAlgorithm().


The documentation for this class was generated from the following file: