NVIDIA DeepStream SDK API Reference

8.0 Release
nvmsgconv_mega.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2024 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 
21 #ifndef NVMSGCONV_MEGA_H_
22 #define NVMSGCONV_MEGA_H_
23 
24 #include "nvdsmeta_schema.h"
25 #include <glib.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 
35 typedef struct NvDsMsg2pCtx {
38 
40  gpointer privData;
41 } NvDsMsg2pCtx;
42 
48 typedef struct {
50  void* objMeta;
52  void* frameMeta;
54  gchar* mediaType;
56  // abiRefDataMap* typecasted to void*
57  // NvDs3D_Find1stDataMap() will be used to get this pointer
58  // in LL library, we can:
59  void* datamap;
61 
75 NvDsMsg2pCtx* nvds_msg2p_ctx_create(const gchar* file, NvDsPayloadType type);
76 
83 
98 NvDsPayload* nvds_msg2p_generate(NvDsMsg2pCtx* ctx, NvDsEvent* events, guint size);
99 
106 void nvds_msg2p_release(NvDsMsg2pCtx* ctx, NvDsPayload* payload);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 #endif /* NVMSGCONV_MEGA_H_ */
NvDsPayload
Holds payload metadata.
Definition: nvdsmeta_schema.h:482
NvDsMsg2pCtx::payloadType
NvDsPayloadType payloadType
type of payload to be generated.
Definition: nvmsgconv.h:37
nvds_msg2p_ctx_destroy
void nvds_msg2p_ctx_destroy(NvDsMsg2pCtx *ctx)
Release the resources allocated during context creation.
_NvDsEvent
Holds event information.
Definition: nvdsmeta_schema.h:462
NvDsPayloadType
NvDsPayloadType
Defines payload type flags.
Definition: nvdsmeta_schema.h:90
NvDsMsg2pCtx
struct NvDsMsg2pCtx NvDsMsg2pCtx
NvDsMsg2pCtx is structure for library context.
NvDsMsg2pCtx::privData
gpointer privData
private to component.
Definition: nvmsgconv.h:40
nvds_msg2p_generate
NvDsPayload * nvds_msg2p_generate(NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size)
This function will parse the NvDsEventMsgMeta and will generate message payload.
NvDsMsg2pMetaInfo
NvDsMsg2pMetaInfo is structure to hold the NvDs metadata related information to be processed to gener...
Definition: nvmsgconv.h:48
nvds_msg2p_release
void nvds_msg2p_release(NvDsMsg2pCtx *ctx, NvDsPayload *payload)
This function should be called to release memory allocated for payload.
NvDsMsg2pCtx
NvDsMsg2pCtx is structure for library context.
Definition: nvmsgconv.h:35
nvds_msg2p_ctx_create
NvDsMsg2pCtx * nvds_msg2p_ctx_create(const gchar *file, NvDsPayloadType type)
This function initializes the library with user defined options mentioned in the file and returns the...
nvdsmeta_schema.h