NVIDIA DeepStream SDK API Reference4.0.1 Release |
Specifies GStreamer custom event functions.
Macros | |
#define | FLAG(name) GST_EVENT_TYPE_##name |
Enumerations | |
enum | GstNvEventType { GST_NVEVENT_PAD_ADDED = GST_EVENT_MAKE_TYPE (400, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)), GST_NVEVENT_PAD_DELETED = GST_EVENT_MAKE_TYPE (401, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)), GST_NVEVENT_STREAM_EOS = GST_EVENT_MAKE_TYPE (402, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)), GST_NVEVENT_STREAM_SEGMENT = GST_EVENT_MAKE_TYPE (403, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)) } |
Defines the types of custom events supported. More... | |
Functions | |
GstEvent * | gst_nvevent_new_pad_added (guint source_id) |
Creates a custom pad added for particular source. More... | |
GstEvent * | gst_nvevent_new_pad_deleted (guint source_id) |
Creates a custom pad deleted event for particular source. More... | |
GstEvent * | gst_nvevent_new_stream_eos (guint source_id) |
Create a custom EOS event for a particular source_id. More... | |
GstEvent * | gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment) |
Create a custom segment event for a particular source. More... | |
void | gst_nvevent_parse_pad_added (GstEvent *event, guint *source_id) |
Parse the pad added event received on sinkpad. More... | |
void | gst_nvevent_parse_pad_deleted (GstEvent *event, guint *source_id) |
Parse the pad deleted event received on sinkpad. More... | |
void | gst_nvevent_parse_stream_eos (GstEvent *event, guint *source_id) |
Parse the stream EOS event received on sinkpad. More... | |
void | gst_nvevent_parse_stream_segment (GstEvent *event, guint *source_id, GstSegment **segment) |
Parse the stream segment event received on sinkpad. More... | |
#define FLAG | ( | name | ) | GST_EVENT_TYPE_##name |
Definition at line 36 of file gst-nvevent.h.
enum GstNvEventType |
Defines the types of custom events supported.
Definition at line 38 of file gst-nvevent.h.
GstEvent* gst_nvevent_new_pad_added | ( | guint | source_id | ) |
Creates a custom pad added for particular source.
source_id[in] source_id of the stream added, which is also the pad_id of the sinkpad of nvstreammux for which the source is configured
GstEvent* gst_nvevent_new_pad_deleted | ( | guint | source_id | ) |
Creates a custom pad deleted event for particular source.
source_id[in] source_id of the stream to be removed from pipeline, which also the pad_id of the sinkpad of the nvstreammux for which the source is configured
GstEvent* gst_nvevent_new_stream_eos | ( | guint | source_id | ) |
Create a custom EOS event for a particular source_id.
source_id[in] source_id for which EOS is to be sent, which is also the pad_id of the sinkpad of the nvstreammux for which the source is configured.
GstEvent* gst_nvevent_new_stream_segment | ( | guint | source_id, |
GstSegment * | segment | ||
) |
Create a custom segment event for a particular source.
source_id[in] source_id for which a segment event is to be sent, which is also the pad_id of the sinkpad of the nvstreammux for which the source is configured. segment[in] Copy of the segment which needs to be sent along with the custom event, which corresponds to original segment for the particular source
void gst_nvevent_parse_pad_added | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parse the pad added event received on sinkpad.
event[in] The event received on the sinkpad when a particular pad is added to nvstreammux
source_id[out] parsed source_id for which the event is sent
void gst_nvevent_parse_pad_deleted | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parse the pad deleted event received on sinkpad.
event[in] The event received on the sinkpad when a particular pad is deleted from nvstreammux
source_id[out] parsed source_id for which the event is sent
void gst_nvevent_parse_stream_eos | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parse the stream EOS event received on sinkpad.
event[in] The event received on the sinkpad when a particular source_id sends a EOS event
source_id[out] parsed source_id for which the event is sent
void gst_nvevent_parse_stream_segment | ( | GstEvent * | event, |
guint * | source_id, | ||
GstSegment ** | segment | ||
) |
Parse the stream segment event received on sinkpad.
event[in] The event received on the sinkpad when a particular source_id sends a segment event
source_id[out] parsed source_id for which the event is sent
segment [out] parsed segment corresponding to source _id for which the event is sent