NVIDIA DeepStream SDK API Reference

9.1 Release
sources/libs/ds3d/gst/nvds3d_meta.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 
18 #ifndef _NVDS3D_GST_NVDS3D_META__H
19 #define _NVDS3D_GST_NVDS3D_META__H
20 
21 #include <ds3d/common/abi_frame.h>
22 #include <ds3d/common/abi_obj.h>
23 #include <ds3d/common/idatatype.h>
24 #include <gst/gst.h>
25 
26 #include "gstnvdsmeta.h"
27 
28 #define NVDS3D_MAGIC_ID(a, b, c, d) \
29  ((uint32_t(a) << 24) | (uint32_t(b) << 16) | (uint32_t(c) << 8) | (uint32_t(d)))
30 
31 #define NVDS3D_BUF_MAGIC_ID NVDS3D_MAGIC_ID('D', 'S', '3', 'D')
32 
33 #define NVDS_3D_DATAMAP_META_TYPE (NvDsMetaType)((uint32_t)NVDS_GST_CUSTOM_META + 128)
34 
35 struct NvDs3DBuffer {
36  uint32_t magicID; // must be 'DS3D'
38 };
39 
41 
43 
45  GstBuffer* buf, NvDsBatchMeta*& batchMeta, uint32_t maxBatch);
46 
48 
50  NvDsBatchMeta* batchMeta, const ds3d::abiRefDataMap* datamap);
51 
53 
55 
57 
58 #endif // _NVDS3D_COMMON_NVDS3D_META__H
DS3D_EXTERN_C_BEGIN
#define DS3D_EXTERN_C_BEGIN
Definition: sources/includes/ds3d/common/defines.h:130
NvDs3D_IsDs3DBuf
DS3D_EXPORT_API bool NvDs3D_IsDs3DBuf(GstBuffer *buf)
NvDs3D_BatchMeta_SetDataMapAsMeta
DS3D_EXPORT_API ds3d::ErrCode NvDs3D_BatchMeta_SetDataMapAsMeta(NvDsBatchMeta *batchMeta, const ds3d::abiRefDataMap *datamap)
DS3D_EXPORT_API
#define DS3D_EXPORT_API
Definition: sources/includes/ds3d/common/defines.h:129
ds3d::abiRefT
Definition: sources/includes/ds3d/common/abi_obj.h:43
ds3d::ErrCode
ErrCode
Definition: sources/includes/ds3d/common/common.h:47
NvDs3DBuffer
Definition: sources/libs/ds3d/gst/nvds3d_meta.h:35
NvDs3DBuffer::datamap
ds3d::abiRefDataMap * datamap
Definition: sources/libs/ds3d/gst/nvds3d_meta.h:37
_NvDsBatchMeta
Holds information about a formed batch containing frames from different sources.
Definition: sources/includes/nvdsmeta.h:262
NvDs3D_CreateGstBuf
DS3D_EXTERN_C_BEGIN DS3D_EXPORT_API ds3d::ErrCode NvDs3D_CreateGstBuf(GstBuffer *&outBuf, ds3d::abiRefDataMap *datamap, bool takeOwner)
DS3D_EXTERN_C_END
#define DS3D_EXTERN_C_END
Definition: sources/includes/ds3d/common/defines.h:131
NvDs3D_UpdateDataMap
DS3D_EXPORT_API ds3d::ErrCode NvDs3D_UpdateDataMap(GstBuffer *buf, const ds3d::abiRefDataMap *datamap)
NvDs3DBuffer::magicID
uint32_t magicID
Definition: sources/libs/ds3d/gst/nvds3d_meta.h:36
NvDs3D_Find1stDataMap
DS3D_EXPORT_API ds3d::ErrCode NvDs3D_Find1stDataMap(GstBuffer *buf, const ds3d::abiRefDataMap *&datamap)
NvDs3D_CreateEmptyBatchMeta
DS3D_EXPORT_API ds3d::ErrCode NvDs3D_CreateEmptyBatchMeta(GstBuffer *buf, NvDsBatchMeta *&batchMeta, uint32_t maxBatch)
GstBuffer
struct _GstBuffer GstBuffer
Definition: sources/includes/ds3d/common/idatatype.h:24