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