|
NVIDIA DeepStream SDK API Reference
|
6.4 Release
|
Go to the documentation of this file.
24 #ifndef __GST_NVSTREAMMUX_AUDIO_H__
25 #define __GST_NVSTREAMMUX_AUDIO_H__
30 #define NVSTREAMMUX_BYTES_TO_AUDIOSAMPLESIZE(bytes, channels, bpf) \
31 ((bytes) / ( (channels) * (bpf)))
33 #define NVSTREAMMUX_AUDIOSAMPLESIZE_TO_BYTES(samples, channels, bpf) \
34 ((samples) * (channels) * (bpf))
70 raw_batch = gst_buffer_list_new_sized (size);
74 void unref()
override;
77 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;
78 unsigned int copy_buf(std::shared_ptr<BufferWrapper> src,
unsigned int pos)
override;
91 unsigned int copy_buf_impl(std::shared_ptr<BufferWrapper> buf,
unsigned int pos);
unsigned int copy_buf(std::shared_ptr< BufferWrapper > src, unsigned int pos) override
static void audio_mem_buf_unref_callback(gpointer data)
std::vector< std::shared_ptr< GstBufferWrapper > > gst_in_bufs
GstBufferList * raw_batch
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
std::chrono::duration< double, std::nano > NanoSecondsType
struct _GstBuffer GstBuffer
The GStreamer wrapper code for NvDsBatchBufferWrapper which represent one batched buffer.
GstAudioBatchBufferWrapper(GstNvStreamMux *mux, unsigned int size, bool is_raw)
bool push(SourcePad *src_pad, TimePoint current_play_start, NanoSecondsType accum_dur) override
std::chrono::time_point< std::chrono::steady_clock, NanoSecondsType > TimePoint