NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_c2d_msg_util.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef __NVGSTDS_C2D_MSG_UTIL_H__
24 #define __NVGSTDS_C2D_MSG_UTIL_H__
25 
26 #include <glib.h>
27 #include "deepstream_c2d_msg.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 typedef enum {
38 
39 typedef struct NvDsC2DMsg {
41  gpointer message;
42  guint msgSize;
43 } NvDsC2DMsg;
44 
45 typedef struct NvDsC2DMsgSR {
46  gchar *sensorStr;
47  gint startTime;
48  guint duration;
49 } NvDsC2DMsgSR;
50 
51 NvDsC2DMsg* nvds_c2d_parse_cloud_message (gpointer data, guint size);
52 
54 
55 gboolean nvds_c2d_parse_sensor (NvDsC2DContext *ctx, const gchar *file);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif
NvDsC2DContext
Definition: deepstream_c2d_msg.h:35
NvDsC2DMsgSR
Definition: deepstream_c2d_msg_util.h:45
NvDsC2DMsg::type
NvDsC2DMsgType type
Definition: deepstream_c2d_msg_util.h:40
NvDsC2DMsgType
NvDsC2DMsgType
Definition: deepstream_c2d_msg_util.h:34
NvDsC2DMsgSR::sensorStr
gchar * sensorStr
Definition: deepstream_c2d_msg_util.h:46
NvDsC2DMsg
struct NvDsC2DMsg NvDsC2DMsg
NvDsC2DMsg
Definition: deepstream_c2d_msg_util.h:39
NvDsC2DMsg::msgSize
guint msgSize
Definition: deepstream_c2d_msg_util.h:42
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:48
NVDS_C2D_MSG_SR_STOP
@ NVDS_C2D_MSG_SR_STOP
Definition: deepstream_c2d_msg_util.h:36
nvds_c2d_release_message
void nvds_c2d_release_message(NvDsC2DMsg *msg)
NvDsC2DMsgSR::startTime
gint startTime
Definition: deepstream_c2d_msg_util.h:47
nvds_c2d_parse_sensor
gboolean nvds_c2d_parse_sensor(NvDsC2DContext *ctx, const gchar *file)
NvDsC2DMsg::message
gpointer message
Definition: deepstream_c2d_msg_util.h:41
NVDS_C2D_MSG_SR_START
@ NVDS_C2D_MSG_SR_START
Definition: deepstream_c2d_msg_util.h:35