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.
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 |
GstBuffer * | gst_buffer |
bool | is_raw |
GstNvStreamMux * | mux |
std::vector< std::shared_ptr< GstBufferWrapper > > | gst_in_bufs |
unsigned int | batch_size |
void * | batch |
|
inline |
Definition at line 53 of file gstnvstreammux_audio.h.
References audio_mem_buf_unref_callback(), BatchBufferWrapper::batch, gst_buffer, is_raw, and raw_batch.
|
inlinevirtualinherited |
Definition at line 107 of file nvstreammux_batch.h.
|
overridevirtual |
Implements NvDsBatchBufferWrapper.
|
overridevirtual |
Reimplemented from NvDsBatchBufferWrapper.
|
inline |
Definition at line 76 of file gstnvstreammux_audio.h.
|
overridevirtual |
Reimplemented from BatchBufferWrapper.
|
overridevirtual |
Reimplemented from BatchBufferWrapper.
void GstAudioBatchBufferWrapper::reset_batch | ( | ) |
|
overridevirtual |
Reimplemented from NvDsBatchBufferWrapper.
void GstAudioBatchBufferWrapper::unref_gst_bufs | ( | ) |
Referenced by audio_mem_buf_unref_callback().
|
inherited |
Definition at line 113 of file nvstreammux_batch.h.
Referenced by GstAudioBatchBufferWrapper(), and GstBatchBufferWrapper::GstBatchBufferWrapper().
|
inherited |
Definition at line 134 of file nvstreammux_batch.h.
GstBuffer* GstAudioBatchBufferWrapper::gst_buffer |
Definition at line 84 of file gstnvstreammux_audio.h.
Referenced by GstAudioBatchBufferWrapper().
std::vector<std::shared_ptr<GstBufferWrapper> > GstAudioBatchBufferWrapper::gst_in_bufs |
Definition at line 87 of file gstnvstreammux_audio.h.
bool GstAudioBatchBufferWrapper::is_raw |
Definition at line 85 of file gstnvstreammux_audio.h.
Referenced by GstAudioBatchBufferWrapper().
GstNvStreamMux* GstAudioBatchBufferWrapper::mux |
Definition at line 86 of file gstnvstreammux_audio.h.
GstBufferList* GstAudioBatchBufferWrapper::raw_batch |
Definition at line 83 of file gstnvstreammux_audio.h.
Referenced by GstAudioBatchBufferWrapper().