NVIDIA DeepStream SDK API Reference

6.0 Release

 All Data Structures Namespaces 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 
31 #ifndef __GST_NVEVENT_H__
32 #define __GST_NVEVENT_H__
33 
34 #include <gst/gst.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 #define FLAG(name) GST_EVENT_TYPE_##name
41 
43 typedef enum {
46  = GST_EVENT_MAKE_TYPE (400, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
49  = GST_EVENT_MAKE_TYPE (401, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
53  = GST_EVENT_MAKE_TYPE (402, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
56  = GST_EVENT_MAKE_TYPE (403, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
60  = GST_EVENT_MAKE_TYPE (404, FLAG(DOWNSTREAM) | FLAG(SERIALIZED))
62 #undef FLAG
63 
74 GstEvent * gst_nvevent_new_pad_added (guint source_id);
75 
86 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
87 
98 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
99 
113 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
114 
125 GstEvent * gst_nvevent_new_stream_reset (guint source_id);
126 
134 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
135 
143 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
144 
152 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
153 
164 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
165  GstSegment **segment);
166 
174 void gst_nvevent_parse_stream_reset (GstEvent * event, guint * source_id);
175 
176 #ifdef __cplusplus
177 }
178 #endif
179 
180 #endif
181 
#define FLAG(name)
Definition: gst-nvevent.h:40
GstEvent * gst_nvevent_new_stream_reset(guint source_id)
Creates a "custom reset" event for the specified source.
Specifies a custom event to indicate Pad Deleted.
Definition: gst-nvevent.h:48
GstEvent * gst_nvevent_new_stream_segment(guint source_id, GstSegment *segment)
Creates a "custom segment" event for the specified source.
Specifies a custom event to indicate Pad Added.
Definition: gst-nvevent.h:45
GstNvEventType
Defines supported types of custom events.
Definition: gst-nvevent.h:43
GstEvent * gst_nvevent_new_pad_added(guint source_id)
Creates a "custom pad added" event for the specified source.
void gst_nvevent_parse_pad_deleted(GstEvent *event, guint *source_id)
Parses a "pad deleted" event received on the sinkpad.
void gst_nvevent_parse_stream_reset(GstEvent *event, guint *source_id)
Parses a "stream reset" event received on the sinkpad.
Specifies a custom event to indicate reset of a particular stream in a batch.
Definition: gst-nvevent.h:59
GstEvent * gst_nvevent_new_pad_deleted(guint source_id)
Creates a "custom pad deleted" event for the specified source.
void gst_nvevent_parse_pad_added(GstEvent *event, guint *source_id)
Parses a "pad added" event received on the sinkpad.
Specifies a custom event to indicate EOS of a particular stream in a batch.
Definition: gst-nvevent.h:52
Specifies a custom event to indicate a stream segment.
Definition: gst-nvevent.h:55
void gst_nvevent_parse_stream_eos(GstEvent *event, guint *source_id)
Parses a "stream EOS" event received on the sinkpad.
void gst_nvevent_parse_stream_segment(GstEvent *event, guint *source_id, GstSegment **segment)
Parses a "stream segment" event received on the sinkpad.
GstEvent * gst_nvevent_new_stream_eos(guint source_id)
Creates a "custom EOS" event for the specified source.