NVIDIA DeepStream SDK API Reference

6.4 Release
NvDsBatchBufferWrapper Class Referenceabstract

Detailed Description

Definition at line 119 of file nvstreammux_batch.h.

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 ()
 
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)
 

Data Fields

unsigned int batch_size
 
void * batch
 

Constructor & Destructor Documentation

◆ NvDsBatchBufferWrapper()

NvDsBatchBufferWrapper::NvDsBatchBufferWrapper ( unsigned int  size)

◆ ~NvDsBatchBufferWrapper()

virtual NvDsBatchBufferWrapper::~NvDsBatchBufferWrapper ( )
virtual

Member Function Documentation

◆ copy()

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

Definition at line 107 of file nvstreammux_batch.h.

◆ copy_buf()

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, and GstAudioBatchBufferWrapper.

◆ copy_meta()

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

Reimplemented in GstBatchBufferWrapper, and GstAudioBatchBufferWrapper.

Definition at line 133 of file nvstreammux_batch.h.

◆ push() [1/2]

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

Reimplemented in GstBatchBufferWrapper, and GstAudioBatchBufferWrapper.

Definition at line 111 of file nvstreammux_batch.h.

◆ push() [2/2]

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

Reimplemented in GstBatchBufferWrapper, and GstAudioBatchBufferWrapper.

Definition at line 112 of file nvstreammux_batch.h.

◆ unref()

virtual void NvDsBatchBufferWrapper::unref ( )
inlinevirtual

Reimplemented from BatchBufferWrapper.

Reimplemented in GstBatchBufferWrapper, and GstAudioBatchBufferWrapper.

Definition at line 134 of file nvstreammux_batch.h.

Field Documentation

◆ batch

void* BatchBufferWrapper::batch
inherited

◆ batch_size

unsigned int NvDsBatchBufferWrapper::batch_size

Definition at line 134 of file nvstreammux_batch.h.


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