NVIDIA DeepStream SDK API Reference

4.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
gst-nvevent.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, 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 
27 #ifndef __GST_NVEVENT_H__
28 #define __GST_NVEVENT_H__
29 
30 #include <gst/gst.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #define FLAG(name) GST_EVENT_TYPE_##name
37 
38 typedef enum {
40  = GST_EVENT_MAKE_TYPE (400, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
42  = GST_EVENT_MAKE_TYPE (401, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
44  = GST_EVENT_MAKE_TYPE (402, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
46  = GST_EVENT_MAKE_TYPE (403, FLAG(DOWNSTREAM) | FLAG(SERIALIZED))
48 #undef FLAG
49 
58 GstEvent * gst_nvevent_new_pad_added (guint source_id);
59 
69 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
70 
80 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
81 
94 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
95 
107 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
108 
109 
121 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
122 
134 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
135 
149 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
150  GstSegment **segment);
151 
152 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #endif
158 
Custom event to indicate Pad Added.
Definition: gst-nvevent.h:39
void gst_nvevent_parse_pad_deleted(GstEvent *event, guint *source_id)
Parse the pad deleted event received on sinkpad.
GstEvent * gst_nvevent_new_pad_added(guint source_id)
Creates a custom pad added for particular source.
Custom event to indicate stream segment.
Definition: gst-nvevent.h:45
void gst_nvevent_parse_stream_eos(GstEvent *event, guint *source_id)
Parse the stream EOS event received on sinkpad.
GstNvEventType
Defines the types of custom events supported.
Definition: gst-nvevent.h:38
void gst_nvevent_parse_stream_segment(GstEvent *event, guint *source_id, GstSegment **segment)
Parse the stream segment event received on sinkpad.
void gst_nvevent_parse_pad_added(GstEvent *event, guint *source_id)
Parse the pad added event received on sinkpad.
GstEvent * gst_nvevent_new_stream_segment(guint source_id, GstSegment *segment)
Create a custom segment event for a particular source.
GstEvent * gst_nvevent_new_stream_eos(guint source_id)
Create a custom EOS event for a particular source_id.
#define FLAG(name)
Definition: gst-nvevent.h:36
Custom event to indicate EOS of particular stream in a batch.
Definition: gst-nvevent.h:43
Custom event to indicate Pad Deleted.
Definition: gst-nvevent.h:41
GstEvent * gst_nvevent_new_pad_deleted(guint source_id)
Creates a custom pad deleted event for particular source.