12 #ifndef __GSTNVDSAUDIO_H__
13 #define __GSTNVDSAUDIO_H__
28 #if defined(__cplusplus)
80 #if defined(__cplusplus)
uint32_t bpf
Bytes per frame; the size of a frame; size of one sample * .
Copyright (c) 2020, NVIDIA CORPORATION.
uint32_t bufferLength
The number of audio samples in each buffer of the batch.
NvBufAudio * batch
The audio batch buffer.
NvBufAudioFormat
Specifies audio formats.
NvBufAudioLayout
Specifies audio data layout in memory.
uint32_t rate
audio sample rate in samples per second
struct _GstNvDsAudioAllocatorParams GstNvDsAudioAllocatorParams
uint32_t batchSize
Max size of audio batch.
NvDsMemType
Specifies memory types for NvDsMemory.
GstNvDsAudioMemory * gst_nvdsaudio_buffer_get_memory(GstBuffer *buffer)
Get GstNvDsAudioMemory structure associated with buffer allocated using GstNvDsAudioAllocator.
GstAllocator * gst_nvdsaudio_allocator_new(GstNvDsAudioAllocatorParams *params)
Create a new GstNvDsAudioAllocator with the given parameters.
uint32_t channels
Number of audio channels.
bool isContiguous
If the memory within a batch is contiguos or not.