NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
20 #ifndef __GST_NVEVENT_H__
21 #define __GST_NVEVENT_H__
22 
23 #include <gst/gst.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define FLAG(name) GST_EVENT_TYPE_##name
30 
31 typedef enum {
33  = GST_EVENT_MAKE_TYPE (400, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
35  = GST_EVENT_MAKE_TYPE (401, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
37  = GST_EVENT_MAKE_TYPE (402, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
39  = GST_EVENT_MAKE_TYPE (403, FLAG(DOWNSTREAM) | FLAG(SERIALIZED))
41 #undef FLAG
42 
51 GstEvent * gst_nvevent_new_pad_added (guint source_id);
52 
62 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
63 
73 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
74 
87 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
88 
100 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
101 
102 
114 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
115 
127 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
128 
142 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
143  GstSegment **segment);
144 
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif
#define FLAG(name)
Definition: gst-nvevent.h:29
void gst_nvevent_parse_stream_eos(GstEvent *event, guint *source_id)
Parse the stream EOS event received on sinkpad.
GstEvent * gst_nvevent_new_pad_deleted(guint source_id)
Creates a custom pad deleted event for particular source.
GstNvEventType
Defines the types of custom events supported.
Definition: gst-nvevent.h:31
Custom event to indicate Pad Added.
Definition: gst-nvevent.h:32
Custom event to indicate Pad Deleted.
Definition: gst-nvevent.h:34
void gst_nvevent_parse_stream_segment(GstEvent *event, guint *source_id, GstSegment **segment)
Parse the stream segment event received on sinkpad.
Custom event to indicate EOS of particular stream in a batch.
Definition: gst-nvevent.h:36
Custom event to indicate stream segment.
Definition: gst-nvevent.h:38
GstEvent * gst_nvevent_new_stream_eos(guint source_id)
Create a custom EOS event for a particular source_id.
void gst_nvevent_parse_pad_deleted(GstEvent *event, guint *source_id)
Parse the pad deleted 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_pad_added(guint source_id)
Creates a custom pad added for particular source.
void gst_nvevent_parse_pad_added(GstEvent *event, guint *source_id)
Parse the pad added event received on sinkpad.