NVIDIA DeepStream SDK API Reference

6.2 Release
gst_nvdsaudio.h
Go to the documentation of this file.
1 
12 #ifndef __GSTNVDSAUDIO_H__
13 #define __GSTNVDSAUDIO_H__
14 
15 #include <gst/gst.h>
16 #include <vector>
17 #include "nvbufaudio.h"
18 #include "NvDsMemoryAllocator.h"
19 
28 #if defined(__cplusplus)
29 extern "C" {
30 #endif
31 
35 typedef struct
36 {
40 
42 {
44  uint32_t batchSize;
47 
50  uint32_t bpf;
52  uint32_t channels;
53  uint32_t rate;
55  uint32_t bufferLength;
57  guint gpuId;
60 
70 
79 
80 #if defined(__cplusplus)
81 }
82 #endif
83 
84 #endif
gst_nvdsaudio_buffer_get_memory
GstNvDsAudioMemory * gst_nvdsaudio_buffer_get_memory(GstBuffer *buffer)
Get GstNvDsAudioMemory structure associated with buffer allocated using GstNvDsAudioAllocator.
_GstNvDsAudioAllocatorParams::gpuId
guint gpuId
Definition: gst_nvdsaudio.h:57
_GstNvDsAudioAllocatorParams::layout
NvBufAudioLayout layout
Definition: gst_nvdsaudio.h:48
_GstNvDsAudioAllocatorParams::bufferLength
uint32_t bufferLength
The number of audio samples in each buffer of the batch.
Definition: gst_nvdsaudio.h:55
_GstNvDsAudioAllocatorParams::bpf
uint32_t bpf
Bytes per frame; the size of a frame; size of one sample * @channels.
Definition: gst_nvdsaudio.h:50
_GstNvDsAudioAllocatorParams
Definition: gst_nvdsaudio.h:41
_GstNvDsAudioAllocatorParams::batchSize
uint32_t batchSize
Max size of audio batch.
Definition: gst_nvdsaudio.h:44
NvBufAudio
Definition: nvbufaudio.h:107
_GstNvDsAudioAllocatorParams::channels
uint32_t channels
Number of audio channels.
Definition: gst_nvdsaudio.h:52
_GstNvDsAudioAllocatorParams::format
NvBufAudioFormat format
Definition: gst_nvdsaudio.h:49
nvbufaudio.h
GstNvDsAudioMemory
Copyright (c) 2020, NVIDIA CORPORATION.
Definition: gst_nvdsaudio.h:35
NvBufAudioFormat
NvBufAudioFormat
Specifies audio formats.
Definition: nvbufaudio.h:37
NvDsMemoryAllocator.h
NvDsMemType
NvDsMemType
Specifies memory types for NvDsMemory.
Definition: NvDsMemoryAllocator.h:19
_GstNvDsAudioAllocatorParams::memType
NvDsMemType memType
Definition: gst_nvdsaudio.h:58
NvBufAudioLayout
NvBufAudioLayout
Specifies audio data layout in memory.
Definition: nvbufaudio.h:73
gst_nvdsaudio_allocator_new
GstAllocator * gst_nvdsaudio_allocator_new(GstNvDsAudioAllocatorParams *params)
Create a new GstNvDsAudioAllocator with the given parameters.
GstNvDsAudioAllocatorParams
struct _GstNvDsAudioAllocatorParams GstNvDsAudioAllocatorParams
_GstNvDsAudioAllocatorParams::isContiguous
bool isContiguous
If the memory within a batch is contiguos or not.
Definition: gst_nvdsaudio.h:46
GstNvDsAudioMemory::batch
NvBufAudio * batch
The audio batch buffer.
Definition: gst_nvdsaudio.h:38
_GstNvDsAudioAllocatorParams::rate
uint32_t rate
audio sample rate in samples per second
Definition: gst_nvdsaudio.h:53