NVIDIA DeepStream SDK API Reference

5.0 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))
58 #undef FLAG
59 
70 GstEvent * gst_nvevent_new_pad_added (guint source_id);
71 
82 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
83 
94 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
95 
109 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
110 
118 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
119 
127 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
128 
136 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
137 
148 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
149  GstSegment **segment);
150 
151 
152 #ifdef __cplusplus
153 }
154 #endif
155 
156 #endif
157 
#define FLAG(name)
Definition: gst-nvevent.h:40
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.
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.