NVIDIA DeepStream SDK API Reference

7.0 Release
deepstream_c2d_msg_util.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020 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 
13 #ifndef __NVGSTDS_C2D_MSG_UTIL_H__
14 #define __NVGSTDS_C2D_MSG_UTIL_H__
15 
16 #include <glib.h>
17 #include "deepstream_c2d_msg.h"
18 
19 #ifdef __cplusplus
20 extern "C"
21 {
22 #endif
23 
24 typedef enum {
28 
29 typedef struct NvDsC2DMsg {
31  gpointer message;
32  guint msgSize;
33 } NvDsC2DMsg;
34 
35 typedef struct NvDsC2DMsgSR {
36  gchar *sensorStr;
37  gint startTime;
38  guint duration;
39 } NvDsC2DMsgSR;
40 
41 NvDsC2DMsg* nvds_c2d_parse_cloud_message (gpointer data, guint size);
42 
44 
45 gboolean nvds_c2d_parse_sensor (NvDsC2DContext *ctx, const gchar *file);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 #endif
NvDsC2DContext
Definition: deepstream_c2d_msg.h:25
NvDsC2DMsgSR
Definition: deepstream_c2d_msg_util.h:35
NvDsC2DMsg::type
NvDsC2DMsgType type
Definition: deepstream_c2d_msg_util.h:30
NvDsC2DMsgType
NvDsC2DMsgType
Definition: deepstream_c2d_msg_util.h:24
NvDsC2DMsgSR::sensorStr
gchar * sensorStr
Definition: deepstream_c2d_msg_util.h:36
NvDsC2DMsg
struct NvDsC2DMsg NvDsC2DMsg
NvDsC2DMsg
Definition: deepstream_c2d_msg_util.h:29
NvDsC2DMsg::msgSize
guint msgSize
Definition: deepstream_c2d_msg_util.h:32
deepstream_c2d_msg.h
nvds_c2d_parse_cloud_message
NvDsC2DMsg * nvds_c2d_parse_cloud_message(gpointer data, guint size)
NvDsC2DMsgSR
struct NvDsC2DMsgSR NvDsC2DMsgSR
NvDsC2DMsgSR::duration
guint duration
Definition: deepstream_c2d_msg_util.h:38
NVDS_C2D_MSG_SR_STOP
@ NVDS_C2D_MSG_SR_STOP
Definition: deepstream_c2d_msg_util.h:26
nvds_c2d_release_message
void nvds_c2d_release_message(NvDsC2DMsg *msg)
NvDsC2DMsgSR::startTime
gint startTime
Definition: deepstream_c2d_msg_util.h:37
nvds_c2d_parse_sensor
gboolean nvds_c2d_parse_sensor(NvDsC2DContext *ctx, const gchar *file)
NvDsC2DMsg::message
gpointer message
Definition: deepstream_c2d_msg_util.h:31
NVDS_C2D_MSG_SR_START
@ NVDS_C2D_MSG_SR_START
Definition: deepstream_c2d_msg_util.h:25