NVIDIA DeepStream SDK API Reference

6.4 Release
gst-nvevent.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
33 #ifndef __GST_NVEVENT_H__
34 #define __GST_NVEVENT_H__
35 
36 #include <gst/gst.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #define FLAG(name) GST_EVENT_TYPE_##name
43 
47 typedef enum {
50  = GST_EVENT_MAKE_TYPE (400, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
51  FLAG(STICKY) | FLAG(STICKY_MULTI)),
54  = GST_EVENT_MAKE_TYPE (401, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
55  FLAG(STICKY) | FLAG(STICKY_MULTI)),
59  = GST_EVENT_MAKE_TYPE (402, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
60  FLAG(STICKY) | FLAG(STICKY_MULTI)),
63  = GST_EVENT_MAKE_TYPE (403, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
64  FLAG(STICKY) | FLAG(STICKY_MULTI)),
68  = GST_EVENT_MAKE_TYPE (404, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
69  FLAG(STICKY) | FLAG(STICKY_MULTI)),
73  = GST_EVENT_MAKE_TYPE (405, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) |
74  FLAG(STICKY) | FLAG(STICKY_MULTI))
76 #undef FLAG
77 
88 GstEvent * gst_nvevent_new_pad_added (guint source_id);
89 
100 GstEvent * gst_nvevent_new_pad_deleted (guint source_id);
101 
112 GstEvent * gst_nvevent_new_stream_eos (guint source_id);
113 
127 GstEvent * gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment);
128 
139 GstEvent * gst_nvevent_new_stream_reset (guint source_id);
140 
148 void gst_nvevent_parse_pad_added (GstEvent * event, guint * source_id);
149 
157 void gst_nvevent_parse_pad_deleted (GstEvent * event, guint * source_id);
158 
166 void gst_nvevent_parse_stream_eos (GstEvent * event, guint * source_id);
167 
178 void gst_nvevent_parse_stream_segment (GstEvent * event, guint * source_id,
179  GstSegment **segment);
180 
188 void gst_nvevent_parse_stream_reset (GstEvent * event, guint * source_id);
189 
198 GstEvent * gst_nvevent_new_stream_start (guint source_id, gchar* stream_id);
199 
210 void gst_nvevent_parse_stream_start (GstEvent * event, guint * source_id, gchar** stream_id);
211 
212 #ifdef __cplusplus
213 }
214 #endif
215 
216 #endif
217 
gst_nvevent_new_stream_start
GstEvent * gst_nvevent_new_stream_start(guint source_id, gchar *stream_id)
Creates a new "stream start" event.
GST_NVEVENT_STREAM_START
@ GST_NVEVENT_STREAM_START
Specifies a custom event to indicate start of a particular stream in a batch.
Definition: gst-nvevent.h:72
gst_nvevent_new_pad_deleted
GstEvent * gst_nvevent_new_pad_deleted(guint source_id)
Creates a "custom pad deleted" event for the specified source.
gst_nvevent_parse_pad_deleted
void gst_nvevent_parse_pad_deleted(GstEvent *event, guint *source_id)
Parses a "pad deleted" event received on the sinkpad.
gst_nvevent_parse_stream_segment
void gst_nvevent_parse_stream_segment(GstEvent *event, guint *source_id, GstSegment **segment)
Parses a "stream segment" event received on the sinkpad.
GST_NVEVENT_PAD_DELETED
@ GST_NVEVENT_PAD_DELETED
Specifies a custom event to indicate Pad Deleted.
Definition: gst-nvevent.h:53
gst_nvevent_new_pad_added
GstEvent * gst_nvevent_new_pad_added(guint source_id)
Creates a "custom pad added" event for the specified source.
gst_nvevent_parse_stream_reset
void gst_nvevent_parse_stream_reset(GstEvent *event, guint *source_id)
Parses a "stream reset" event received on the sinkpad.
GST_NVEVENT_PAD_ADDED
@ GST_NVEVENT_PAD_ADDED
Specifies a custom event to indicate Pad Added.
Definition: gst-nvevent.h:49
gst_nvevent_new_stream_reset
GstEvent * gst_nvevent_new_stream_reset(guint source_id)
Creates a "custom reset" event for the specified source.
gst_nvevent_new_stream_eos
GstEvent * gst_nvevent_new_stream_eos(guint source_id)
Creates a "custom EOS" event for the specified source.
FLAG
#define FLAG(name)
Definition: gst-nvevent.h:42
GST_NVEVENT_STREAM_EOS
@ GST_NVEVENT_STREAM_EOS
Specifies a custom event to indicate EOS of a particular stream in a batch.
Definition: gst-nvevent.h:58
gst_nvevent_new_stream_segment
GstEvent * gst_nvevent_new_stream_segment(guint source_id, GstSegment *segment)
Creates a "custom segment" event for the specified source.
gst_nvevent_parse_stream_start
void gst_nvevent_parse_stream_start(GstEvent *event, guint *source_id, gchar **stream_id)
Parses a "stream start" event received on the sinkpad.
GST_NVEVENT_STREAM_RESET
@ GST_NVEVENT_STREAM_RESET
Specifies a custom event to indicate reset of a particular stream in a batch.
Definition: gst-nvevent.h:67
gst_nvevent_parse_stream_eos
void gst_nvevent_parse_stream_eos(GstEvent *event, guint *source_id)
Parses a "stream EOS" event received on the sinkpad.
GST_NVEVENT_STREAM_SEGMENT
@ GST_NVEVENT_STREAM_SEGMENT
Specifies a custom event to indicate a stream segment.
Definition: gst-nvevent.h:62
GstNvEventType
GstNvEventType
Defines supported types of custom events.
Definition: gst-nvevent.h:47
gst_nvevent_parse_pad_added
void gst_nvevent_parse_pad_added(GstEvent *event, guint *source_id)
Parses a "pad added" event received on the sinkpad.