NVIDIA DeepStream SDK API Reference

6.4 Release
nvmsgconv/nvmsgconv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  *
10  */
11 
20 #ifndef NVMSGCONV_H_
21 #define NVMSGCONV_H_
22 
23 #include "nvdsmeta_schema.h"
24 #include <glib.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
34 typedef struct NvDsMsg2pCtx {
37 
39  gpointer privData;
40 } NvDsMsg2pCtx;
41 
47 typedef struct {
49  void* objMeta;
51  void* frameMeta;
53  gchar* mediaType;
55  // abiRefDataMap* typecasted to void*
56  // NvDs3D_Find1stDataMap() will be used to get this pointer
57  // in LL library, we can:
58  void* datamap;
60 
74 NvDsMsg2pCtx* nvds_msg2p_ctx_create(const gchar* file, NvDsPayloadType type);
75 
82 
97 NvDsPayload* nvds_msg2p_generate(NvDsMsg2pCtx* ctx, NvDsEvent* events, guint size);
98 
116 NvDsPayload** nvds_msg2p_generate_multiple(NvDsMsg2pCtx* ctx, NvDsEvent* events, guint size, guint* payloadCount);
117 
131 NvDsPayload* nvds_msg2p_generate_new(NvDsMsg2pCtx* ctx, void* metadataInfo);
132 
149 NvDsPayload** nvds_msg2p_generate_multiple_new(NvDsMsg2pCtx* ctx, void* metadataInfo, guint* payloadCount);
150 
157 void nvds_msg2p_release(NvDsMsg2pCtx* ctx, NvDsPayload* payload);
158 
159 #ifdef __cplusplus
160 }
161 #endif
162 #endif /* NVMSGCONV_H_ */
NvDsMsg2pMetaInfo::frameMeta
void * frameMeta
Holds the frame metadata.
Definition: nvmsgconv/nvmsgconv.h:51
NvDsPayload
Holds payload metadata.
Definition: nvdsmeta_schema.h:384
NvDsMsg2pCtx::payloadType
NvDsPayloadType payloadType
type of payload to be generated.
Definition: nvmsgconv_audio/nvmsgconv.h:37
nvds_msg2p_generate
NvDsPayload * nvds_msg2p_generate(NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size)
This function will parse the NvDsEventMsgMeta and will generate message payload.
nvds_msg2p_generate_multiple
NvDsPayload ** nvds_msg2p_generate_multiple(NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size, guint *payloadCount)
This function will parse the NvDsEventMsgMeta and will generate multiple message payloads.
_NvDsEvent
Holds event information.
Definition: nvdsmeta_schema.h:364
NvDsPayloadType
NvDsPayloadType
Defines payload type flags.
Definition: nvdsmeta_schema.h:87
nvds_msg2p_generate_multiple_new
NvDsPayload ** nvds_msg2p_generate_multiple_new(NvDsMsg2pCtx *ctx, void *metadataInfo, guint *payloadCount)
This function will parse the NvDsMsg2pMetaInfo and will generate multiple message payloads.
NvDsMsg2pCtx::privData
gpointer privData
private to component.
Definition: nvmsgconv_audio/nvmsgconv.h:40
NvDsMsg2pCtx
struct NvDsMsg2pCtx NvDsMsg2pCtx
NvDsMsg2pCtx is structure for library context.
NvDsMsg2pMetaInfo
NvDsMsg2pMetaInfo is structure to hold the NvDs metadata related information to be processed to gener...
Definition: nvmsgconv/nvmsgconv.h:47
nvds_msg2p_ctx_destroy
void nvds_msg2p_ctx_destroy(NvDsMsg2pCtx *ctx)
Release the resources allocated during context creation.
NvDsMsg2pCtx
NvDsMsg2pCtx is structure for library context.
Definition: nvmsgconv_audio/nvmsgconv.h:35
NvDsMsg2pMetaInfo::mediaType
gchar * mediaType
media type: (ex: audio, video)
Definition: nvmsgconv/nvmsgconv.h:53
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...
nvds_msg2p_generate_new
NvDsPayload * nvds_msg2p_generate_new(NvDsMsg2pCtx *ctx, void *metadataInfo)
This function will parse the NvDsMsg2pMetaInfo and will generate message payloads.
nvds_msg2p_release
void nvds_msg2p_release(NvDsMsg2pCtx *ctx, NvDsPayload *payload)
This function should be called to release memory allocated for payload.
NvDsMsg2pMetaInfo::objMeta
void * objMeta
Holds the object metadata.
Definition: nvmsgconv/nvmsgconv.h:49
NvDsMsg2pMetaInfo::datamap
void * datamap
datamap for buffers from ds3d components
Definition: nvmsgconv/nvmsgconv.h:58
nvdsmeta_schema.h