NVIDIA DeepStream SDK API Reference

8.0 Release
NvDsBatchBufferWrapper Class Referenceabstract

Detailed Description

Inheritance diagram for NvDsBatchBufferWrapper:
Collaboration diagram for NvDsBatchBufferWrapper:

Public Member Functions

 NvDsBatchBufferWrapper (unsigned int size)
 
virtual ~NvDsBatchBufferWrapper ()
 
virtual unsigned int copy_buf (std::shared_ptr< BufferWrapper > buf, unsigned int pos)=0
 Copy input buffer (buf) to this NvDsBatchBufferWrapper. More...
 
virtual void copy_meta (unsigned int id, std::shared_ptr< BufferWrapper > src_buffer, unsigned int batch_id, unsigned int frame_number, unsigned int num_surfaces_per_frame, NvDsBatchMeta *dest_batch_meta, unsigned int source_id)
 
virtual void unref ()
 
 NvDsBatchBufferWrapper (unsigned int size)
 
virtual ~NvDsBatchBufferWrapper ()
 
virtual unsigned int copy_buf (std::shared_ptr< BufferWrapper > buf, unsigned int pos)=0
 Copy input buffer (buf) to this NvDsBatchBufferWrapper. More...
 
virtual void copy_meta (unsigned int id, std::shared_ptr< BufferWrapper > src_buffer, unsigned int batch_id, unsigned int frame_number, unsigned int num_surfaces_per_frame, NvDsBatchMeta *dest_batch_meta, unsigned int source_id)
 
virtual void unref ()
 
virtual unsigned int copy (void *buf, unsigned int pos, unsigned int num_surfaces)
 
virtual unsigned int copy (void *buf, unsigned int pos, unsigned int num_surfaces)
 
virtual bool push (SourcePad *pad, TimePoint play_start, NanoSecondsType accum_dur)
 
virtual bool push (SourcePad *pad, unsigned long pts)
 
virtual bool push (SourcePad *pad, TimePoint play_start, NanoSecondsType accum_dur)
 
virtual bool push (SourcePad *pad, unsigned long pts)
 

Data Fields

unsigned int batch_size
 
void * batch
 

Constructor & Destructor Documentation

◆ NvDsBatchBufferWrapper() [1/2]

NvDsBatchBufferWrapper::NvDsBatchBufferWrapper ( unsigned int  size)

◆ ~NvDsBatchBufferWrapper() [1/2]

virtual NvDsBatchBufferWrapper::~NvDsBatchBufferWrapper ( )
virtual

◆ NvDsBatchBufferWrapper() [2/2]

NvDsBatchBufferWrapper::NvDsBatchBufferWrapper ( unsigned int  size)

◆ ~NvDsBatchBufferWrapper() [2/2]

virtual NvDsBatchBufferWrapper::~NvDsBatchBufferWrapper ( )
virtual

Member Function Documentation

◆ copy() [1/2]

virtual unsigned int BatchBufferWrapper::copy ( void *  buf,
unsigned int  pos,
unsigned int  num_surfaces 
)
inlinevirtualinherited

◆ copy() [2/2]

virtual unsigned int BatchBufferWrapper::copy ( void *  buf,
unsigned int  pos,
unsigned int  num_surfaces 
)
inlinevirtualinherited

◆ copy_buf() [1/2]

virtual unsigned int NvDsBatchBufferWrapper::copy_buf ( std::shared_ptr< BufferWrapper buf,
unsigned int  pos 
)
pure virtual

Copy input buffer (buf) to this NvDsBatchBufferWrapper.

Parameters
buf[IN] BufferWrapper object with a streammux input buffer
pos[IN] The index at which the input buf is copied to the output NvBufSurface->surfaceList[] for video;

Implemented in GstBatchBufferWrapper, GstBatchBufferWrapper, GstAudioBatchBufferWrapper, and GstAudioBatchBufferWrapper.

◆ copy_buf() [2/2]

virtual unsigned int NvDsBatchBufferWrapper::copy_buf ( std::shared_ptr< BufferWrapper buf,
unsigned int  pos 
)
pure virtual

Copy input buffer (buf) to this NvDsBatchBufferWrapper.

Parameters
buf[IN] BufferWrapper object with a streammux input buffer
pos[IN] The index at which the input buf is copied to the output NvBufSurface->surfaceList[] for video;

Implemented in GstBatchBufferWrapper, GstBatchBufferWrapper, GstAudioBatchBufferWrapper, and GstAudioBatchBufferWrapper.

◆ copy_meta() [1/2]

virtual void NvDsBatchBufferWrapper::copy_meta ( unsigned int  id,
std::shared_ptr< BufferWrapper src_buffer,
unsigned int  batch_id,
unsigned int  frame_number,
unsigned int  num_surfaces_per_frame,
NvDsBatchMeta dest_batch_meta,
unsigned int  source_id 
)
inlinevirtual

◆ copy_meta() [2/2]

virtual void NvDsBatchBufferWrapper::copy_meta ( unsigned int  id,
std::shared_ptr< BufferWrapper src_buffer,
unsigned int  batch_id,
unsigned int  frame_number,
unsigned int  num_surfaces_per_frame,
NvDsBatchMeta dest_batch_meta,
unsigned int  source_id 
)
inlinevirtual

◆ push() [1/4]

virtual bool BatchBufferWrapper::push ( SourcePad pad,
TimePoint  play_start,
NanoSecondsType  accum_dur 
)
inlinevirtualinherited

◆ push() [2/4]

virtual bool BatchBufferWrapper::push ( SourcePad pad,
TimePoint  play_start,
NanoSecondsType  accum_dur 
)
inlinevirtualinherited

◆ push() [3/4]

virtual bool BatchBufferWrapper::push ( SourcePad pad,
unsigned long  pts 
)
inlinevirtualinherited

◆ push() [4/4]

virtual bool BatchBufferWrapper::push ( SourcePad pad,
unsigned long  pts 
)
inlinevirtualinherited

◆ unref() [1/2]

virtual void NvDsBatchBufferWrapper::unref ( )
inlinevirtual

◆ unref() [2/2]

virtual void NvDsBatchBufferWrapper::unref ( )
inlinevirtual

Field Documentation

◆ batch

◆ batch_size

unsigned int NvDsBatchBufferWrapper::batch_size

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