|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
13 #ifndef __GST_NVSTREAMMUX_AUDIO_H__
14 #define __GST_NVSTREAMMUX_AUDIO_H__
19 #define NVSTREAMMUX_BYTES_TO_AUDIOSAMPLESIZE(bytes, channels, bpf) \
20 ((bytes) / ( (channels) * (bpf)))
22 #define NVSTREAMMUX_AUDIOSAMPLESIZE_TO_BYTES(samples, channels, bpf) \
23 ((samples) * (channels) * (bpf))
59 raw_batch = gst_buffer_list_new_sized (size);
63 void unref()
override;
66 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;
67 unsigned int copy_buf(std::shared_ptr<BufferWrapper> src,
unsigned int pos)
override;
80 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