NVIDIA DeepStream SDK API Reference

7.0 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: 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 
19 #ifndef _GST_NVSTREAMMUXCTX_H_
20 #define _GST_NVSTREAMMUXCTX_H_
21 
22 #include "nvbufaudio.h"
23 #include <unordered_map>
24 #include <mutex>
25 
26 
28 {
29  public:
31  void SaveAudioParams(uint32_t padId, uint32_t sourceId, NvBufAudioParams audioParams);
32  NvBufAudioParams GetAudioParams(uint32_t padId);
33  void SetMemTypeNVMM(uint32_t padId, bool isNVMM);
34  bool IsMemTypeNVMM(uint32_t padId);
35 
36  private:
37  std::mutex mutex;
38  std::unordered_map<uint32_t, NvBufAudioParams> audioParamsMap;
39  std::unordered_map<uint32_t, bool> isNVMMMap;
40 };
41 
42 #endif
GstNvStreamMuxCtx::GetAudioParams
NvBufAudioParams GetAudioParams(uint32_t padId)
NvBufAudioParams
Definition: nvbufaudio.h:82
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:27
nvbufaudio.h