NVIDIA DeepStream SDK API Reference

7.0 Release
nvmsgconv_audio/nvmsgconv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, 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 
24 #include "nvdsmeta_schema.h"
25 #include <glib.h>
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 
35 typedef struct NvDsMsg2pCtx {
38 
40  gpointer privData;
41 } NvDsMsg2pCtx;
42 
56 NvDsMsg2pCtx* nvds_msg2p_ctx_create (const gchar *file, NvDsPayloadType type);
57 
64 
80 nvds_msg2p_generate (NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size);
81 
100 nvds_msg2p_generate_multiple (NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size, guint *payloadCount);
101 
108 void nvds_msg2p_release (NvDsMsg2pCtx *ctx, NvDsPayload *payload);
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 #endif /* NVMSGCONV_H_ */
NvDsPayload
Holds payload metadata.
Definition: nvdsmeta_schema.h:385
nvds_msg2p_generate
NvDsPayload * nvds_msg2p_generate(NvDsMsg2pCtx *ctx, NvDsEvent *events, guint size)
This function will parse the NvDsEventMsgMeta and will generate message payload.
NvDsMsg2pCtx::payloadType
NvDsPayloadType payloadType
type of payload to be generated.
Definition: nvmsgconv_audio/nvmsgconv.h:37
_NvDsEvent
Holds event information.
Definition: nvdsmeta_schema.h:365
NvDsPayloadType
NvDsPayloadType
Defines payload type flags.
Definition: nvdsmeta_schema.h:88
NvDsMsg2pCtx::privData
gpointer privData
private to component.
Definition: nvmsgconv_audio/nvmsgconv.h:40
NvDsMsg2pCtx
struct NvDsMsg2pCtx NvDsMsg2pCtx
NvDsMsg2pCtx is structure for library context.
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
nvds_msg2p_release
void nvds_msg2p_release(NvDsMsg2pCtx *ctx, NvDsPayload *payload)
This function should be called to release memory allocated for 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.
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