NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
uint32_t bpf
Bytes per frame; the size of a frame; size of one sample * .
Definition: gst_nvdsaudio.h:50
Copyright (c) 2020, NVIDIA CORPORATION.
Definition: gst_nvdsaudio.h:35
uint32_t bufferLength
The number of audio samples in each buffer of the batch.
Definition: gst_nvdsaudio.h:55
NvBufAudio * batch
The audio batch buffer.
Definition: gst_nvdsaudio.h:38
NvBufAudioFormat
Specifies audio formats.
Definition: nvbufaudio.h:37
NvBufAudioLayout
Specifies audio data layout in memory.
Definition: nvbufaudio.h:73
NvBufAudio Interface
uint32_t rate
audio sample rate in samples per second
Definition: gst_nvdsaudio.h:53
struct _GstNvDsAudioAllocatorParams GstNvDsAudioAllocatorParams
uint32_t batchSize
Max size of audio batch.
Definition: gst_nvdsaudio.h:44
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.
Definition: gst_nvdsaudio.h:52
bool isContiguous
If the memory within a batch is contiguos or not.
Definition: gst_nvdsaudio.h:46