NVIDIA DeepStream SDK API Reference

6.4 Release
GstAudioBatchBufferWrapper Class Reference

Detailed Description

The GStreamer wrapper code for NvDsBatchBufferWrapper which represent one batched buffer.

NOTE: None of the APIs in this class are thread-safe

Definition at line 49 of file gstnvstreammux_audio.h.

Inheritance diagram for GstAudioBatchBufferWrapper:
Collaboration diagram for GstAudioBatchBufferWrapper:

Public Member Functions

 GstAudioBatchBufferWrapper (GstNvStreamMux *mux, unsigned int size, bool is_raw)
 
void unref () override
 
void reset_batch ()
 
void dummy ()
 
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) override
 
unsigned int copy_buf (std::shared_ptr< BufferWrapper > src, unsigned int pos) override
 
bool push (SourcePad *src_pad, TimePoint current_play_start, NanoSecondsType accum_dur) override
 
bool push (SourcePad *src_pad, unsigned long pts) override
 
void unref_gst_bufs ()
 
virtual unsigned int copy (void *buf, unsigned int pos, unsigned int num_surfaces)
 

Data Fields

GstBufferList * raw_batch
 
GstBuffergst_buffer
 
bool is_raw
 
GstNvStreamMuxmux
 
std::vector< std::shared_ptr< GstBufferWrapper > > gst_in_bufs
 
unsigned int batch_size
 
void * batch
 

Constructor & Destructor Documentation

◆ GstAudioBatchBufferWrapper()

GstAudioBatchBufferWrapper::GstAudioBatchBufferWrapper ( GstNvStreamMux mux,
unsigned int  size,
bool  is_raw 
)
inline

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

unsigned int GstAudioBatchBufferWrapper::copy_buf ( std::shared_ptr< BufferWrapper src,
unsigned int  pos 
)
overridevirtual

◆ copy_meta()

void GstAudioBatchBufferWrapper::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 
)
overridevirtual

Reimplemented from NvDsBatchBufferWrapper.

◆ dummy()

void GstAudioBatchBufferWrapper::dummy ( )
inline

Definition at line 76 of file gstnvstreammux_audio.h.

◆ push() [1/2]

bool GstAudioBatchBufferWrapper::push ( SourcePad src_pad,
TimePoint  current_play_start,
NanoSecondsType  accum_dur 
)
overridevirtual

Reimplemented from BatchBufferWrapper.

◆ push() [2/2]

bool GstAudioBatchBufferWrapper::push ( SourcePad src_pad,
unsigned long  pts 
)
overridevirtual

Reimplemented from BatchBufferWrapper.

◆ reset_batch()

void GstAudioBatchBufferWrapper::reset_batch ( )

◆ unref()

void GstAudioBatchBufferWrapper::unref ( )
overridevirtual

Reimplemented from NvDsBatchBufferWrapper.

◆ unref_gst_bufs()

void GstAudioBatchBufferWrapper::unref_gst_bufs ( )

Field Documentation

◆ batch

void* BatchBufferWrapper::batch
inherited

◆ batch_size

unsigned int NvDsBatchBufferWrapper::batch_size
inherited

Definition at line 134 of file nvstreammux_batch.h.

◆ gst_buffer

GstBuffer* GstAudioBatchBufferWrapper::gst_buffer

Definition at line 84 of file gstnvstreammux_audio.h.

Referenced by GstAudioBatchBufferWrapper().

◆ gst_in_bufs

std::vector<std::shared_ptr<GstBufferWrapper> > GstAudioBatchBufferWrapper::gst_in_bufs

Definition at line 87 of file gstnvstreammux_audio.h.

◆ is_raw

bool GstAudioBatchBufferWrapper::is_raw

Definition at line 85 of file gstnvstreammux_audio.h.

Referenced by GstAudioBatchBufferWrapper().

◆ mux

GstNvStreamMux* GstAudioBatchBufferWrapper::mux

Definition at line 86 of file gstnvstreammux_audio.h.

◆ raw_batch

GstBufferList* GstAudioBatchBufferWrapper::raw_batch

Definition at line 83 of file gstnvstreammux_audio.h.

Referenced by GstAudioBatchBufferWrapper().


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