NVIDIA DeepStream SDK API Reference

9.1 Release
sources/gst-plugins/gst-nvmultistream2/gstnvbufaudio.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
27 #ifndef _GST_NVSTREAMMUX_AUDIO_H_
28 #define _GST_NVSTREAMMUX_AUDIO_H_
29 
30 
31 #include <gst/gst.h>
32 #include <gst/audio/audio.h>
33 #include "gstnvstreammuxdebug.h"
34 #include "nvbufaudio.h"
35 
37 {
38  public:
39  GstNvBufAudioCaps(GstCaps* aCaps);
42  uint32_t GetAudioRate();
43  uint32_t GetAudioChannels();
44  bool GetAudioParams(NvBufAudioParams& aAudioParams);
45 
46  private:
47  gchar const * GetFieldStringValue(gchar const * fieldName);
48  uint32_t const GetFieldIntValue(gchar const * fieldName);
49 
50  GstCaps* caps;
51  GstStructure* capsStruct;
52  GstAudioInfo audioInfo;
53  NvBufAudioParams audioParams;
54 
64  gchar const * format;
65  gchar const * rate;
66  gchar const * channels;
67  gchar const * layout;
68 };
69 
70 #endif
GstNvBufAudioCaps
Definition: sources/gst-plugins/gst-nvmultistream2/gstnvbufaudio.h:36
GstNvBufAudioCaps::GetAudioRate
uint32_t GetAudioRate()
NvBufAudioParams
Definition: sources/includes/nvbufaudio.h:87
NvBufAudioFormat
NvBufAudioFormat
Specifies audio formats.
Definition: sources/includes/nvbufaudio.h:44
GstNvBufAudioCaps::GetAudioParams
bool GetAudioParams(NvBufAudioParams &aAudioParams)
GstNvBufAudioCaps::GetAudioFormat
NvBufAudioFormat GetAudioFormat()
GstNvBufAudioCaps::GstNvBufAudioCaps
GstNvBufAudioCaps(GstCaps *aCaps)
gstnvstreammuxdebug.h
GstNvBufAudioCaps::GetAudioLayout
NvBufAudioLayout GetAudioLayout()
NvBufAudioLayout
NvBufAudioLayout
Specifies audio data layout in memory.
Definition: sources/includes/nvbufaudio.h:80
GstNvBufAudioCaps::GetAudioChannels
uint32_t GetAudioChannels()