NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/gst-plugins/gst-nvmultistream2/GstNvStreamMuxCtx.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 
24 #ifndef _GST_NVSTREAMMUXCTX_H_
25 #define _GST_NVSTREAMMUXCTX_H_
26 
27 #include "nvbufaudio.h"
28 #include <unordered_map>
29 #include <mutex>
30 
31 
33 {
34  public:
36  void SaveAudioParams(uint32_t padId, uint32_t sourceId, NvBufAudioParams audioParams);
37  NvBufAudioParams GetAudioParams(uint32_t padId);
38  void SetMemTypeNVMM(uint32_t padId, bool isNVMM);
39  bool IsMemTypeNVMM(uint32_t padId);
40 
41  private:
42  std::mutex mutex;
43  std::unordered_map<uint32_t, NvBufAudioParams> audioParamsMap;
44  std::unordered_map<uint32_t, bool> isNVMMMap;
45 };
46 
47 #endif
GstNvStreamMuxCtx::GetAudioParams
NvBufAudioParams GetAudioParams(uint32_t padId)
NvBufAudioParams
Definition: sources/includes/nvbufaudio.h:87
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: sources/gst-plugins/gst-nvmultistream2/GstNvStreamMuxCtx.h:32