NVIDIA DeepStream SDK API Reference
7.1 Release
gstnvbufaudio.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6
* property and proprietary rights in and to this material, related
7
* documentation and any modifications thereto. Any use, reproduction,
8
* disclosure or distribution of this material and related documentation
9
* without an express license agreement from NVIDIA CORPORATION or
10
* its affiliates is strictly prohibited.
11
*/
12
22
#ifndef _GST_NVSTREAMMUX_AUDIO_H_
23
#define _GST_NVSTREAMMUX_AUDIO_H_
24
25
26
#include <gst/gst.h>
27
#include <gst/audio/audio.h>
28
#include "
gstnvstreammuxdebug.h
"
29
#include "
nvbufaudio.h
"
30
31
class
GstNvBufAudioCaps
32
{
33
public
:
34
GstNvBufAudioCaps
(GstCaps* aCaps);
35
NvBufAudioFormat
GetAudioFormat
();
36
NvBufAudioLayout
GetAudioLayout
();
37
uint32_t
GetAudioRate
();
38
uint32_t
GetAudioChannels
();
39
bool
GetAudioParams
(
NvBufAudioParams
& aAudioParams);
40
41
private
:
42
gchar
const
* GetFieldStringValue(gchar
const
* fieldName);
43
uint32_t
const
GetFieldIntValue(gchar
const
* fieldName);
44
45
GstCaps* caps;
46
GstStructure* capsStruct;
47
GstAudioInfo audioInfo;
48
NvBufAudioParams
audioParams;
49
59
gchar
const
* format;
60
gchar
const
* rate;
61
gchar
const
* channels;
62
gchar
const
* layout;
63
};
64
65
#endif
GstNvBufAudioCaps
Definition:
gstnvbufaudio.h:31
GstNvBufAudioCaps::GetAudioRate
uint32_t GetAudioRate()
NvBufAudioParams
Definition:
nvbufaudio.h:82
GstNvBufAudioCaps::GetAudioParams
bool GetAudioParams(NvBufAudioParams &aAudioParams)
gstnvstreammuxdebug.h
GstNvBufAudioCaps::GetAudioFormat
NvBufAudioFormat GetAudioFormat()
GstNvBufAudioCaps::GstNvBufAudioCaps
GstNvBufAudioCaps(GstCaps *aCaps)
nvbufaudio.h
NvBufAudioFormat
NvBufAudioFormat
Specifies audio formats.
Definition:
nvbufaudio.h:39
GstNvBufAudioCaps::GetAudioLayout
NvBufAudioLayout GetAudioLayout()
NvBufAudioLayout
NvBufAudioLayout
Specifies audio data layout in memory.
Definition:
nvbufaudio.h:75
GstNvBufAudioCaps::GetAudioChannels
uint32_t GetAudioChannels()
Advance Information | Subject to Change | Generated by NVIDIA | Mon Oct 14 2024 13:27:44 | PR-09318-R32