|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef __GST_NVSTREAMMUX_AUDIO_H__
19 #define __GST_NVSTREAMMUX_AUDIO_H__
22 #include "nvbufaudio.h"
24 #define NVSTREAMMUX_BYTES_TO_AUDIOSAMPLESIZE(bytes, channels, bpf) \
25 ((bytes) / ( (channels) * (bpf)))
27 #define NVSTREAMMUX_AUDIOSAMPLESIZE_TO_BYTES(samples, channels, bpf) \
28 ((samples) * (channels) * (bpf))
68 void unref()
override;
71 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;
72 unsigned int copy_buf(std::shared_ptr<BufferWrapper> src,
unsigned int pos)
override;
81 std::vector<std::shared_ptr<GstBufferWrapper> >
gst_in_bufs;
85 unsigned int copy_buf_impl(std::shared_ptr<BufferWrapper> buf,
unsigned int pos);
static void audio_mem_buf_unref_callback(gpointer data)
unsigned int copy_buf(std::shared_ptr< BufferWrapper > src, unsigned int pos) override
std::chrono::time_point< std::chrono::steady_clock, NanoSecondsType > TimePoint
GstBufferList * raw_batch
struct _GstBuffer GstBuffer
std::vector< std::shared_ptr< GstBufferWrapper > > gst_in_bufs
constexpr const char * size
std::chrono::duration< double, std::nano > NanoSecondsType
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
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