NVIDIA DeepStream SDK API Reference

6.1.1 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 
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)),
64  = GST_EVENT_MAKE_TYPE (405, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
66 #undef FLAG
67 
78 GstEvent * gst_nvevent_new_pad_added (guint source_id);
79 
90 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
91 
102 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
103 
117 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
118 
129 GstEvent * gst_nvevent_new_stream_reset (guint source_id);
130 
138 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
139 
147 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
148 
156 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
157 
168 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
169  GstSegment **segment);
170 
178 void gst_nvevent_parse_stream_reset (GstEvent * event, guint * source_id);
179 
188 GstEvent * gst_nvevent_new_stream_start (guint source_id, gchar* stream_id);
189 
200 void gst_nvevent_parse_stream_start (GstEvent * event, guint * source_id, gchar** stream_id);
201 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif
207 
#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.
GstEvent * gst_nvevent_new_stream_start(guint source_id, gchar *stream_id)
Creates a new "stream start" event.
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.
void gst_nvevent_parse_stream_start(GstEvent *event, guint *source_id, gchar **stream_id)
Parses a "stream start" event received on the sinkpad.
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.
Specifies a custom event to indicate start of a particular stream in a batch.
Definition: gst-nvevent.h:63
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.