NVIDIA DeepStream SDK API Reference
6.4 Release
GstNvStreamMuxCtx.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: MIT
4
*
5
* Permission is hereby granted, free of charge, to any person obtaining a
6
* copy of this software and associated documentation files (the "Software"),
7
* to deal in the Software without restriction, including without limitation
8
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
* and/or sell copies of the Software, and to permit persons to whom the
10
* Software is furnished to do so, subject to the following conditions:
11
*
12
* The above copyright notice and this permission notice shall be included in
13
* all copies or substantial portions of the Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
* DEALINGS IN THE SOFTWARE.
22
*/
23
30
#ifndef _GST_NVSTREAMMUXCTX_H_
31
#define _GST_NVSTREAMMUXCTX_H_
32
33
#include "
nvbufaudio.h
"
34
#include <unordered_map>
35
#include <mutex>
36
37
38
class
GstNvStreamMuxCtx
39
{
40
public
:
41
GstNvStreamMuxCtx
();
42
void
SaveAudioParams
(uint32_t padId, uint32_t sourceId,
NvBufAudioParams
audioParams);
43
NvBufAudioParams
GetAudioParams
(uint32_t padId);
44
void
SetMemTypeNVMM
(uint32_t padId,
bool
isNVMM);
45
bool
IsMemTypeNVMM
(uint32_t padId);
46
47
private
:
48
std::mutex mutex;
49
std::unordered_map<uint32_t, NvBufAudioParams> audioParamsMap;
50
std::unordered_map<uint32_t, bool> isNVMMMap;
51
};
52
53
#endif
GstNvStreamMuxCtx::GetAudioParams
NvBufAudioParams GetAudioParams(uint32_t padId)
NvBufAudioParams
Definition:
nvbufaudio.h:80
GstNvStreamMuxCtx::SetMemTypeNVMM
void SetMemTypeNVMM(uint32_t padId, bool isNVMM)
GstNvStreamMuxCtx::SaveAudioParams
void SaveAudioParams(uint32_t padId, uint32_t sourceId, NvBufAudioParams audioParams)
GstNvStreamMuxCtx::IsMemTypeNVMM
bool IsMemTypeNVMM(uint32_t padId)
GstNvStreamMuxCtx::GstNvStreamMuxCtx
GstNvStreamMuxCtx()
GstNvStreamMuxCtx
Definition:
GstNvStreamMuxCtx.h:38
nvbufaudio.h
Advance Information | Subject to Change | Generated by NVIDIA | Mon Dec 11 2023 17:51:24 | PR-09318-R32