Specifies GStreamer custom event functions, used to map events to individual sources which are batched together by Gst-nvstreammux.
Data Structures | |
struct | RoiDimension |
Defines Roi structure for GST_NVCUSTOMEVENT_ROI_UPDATE custom event. More... | |
Macros | |
#define | FLAG(name) GST_EVENT_TYPE_##name |
#define | FLAG(name) GST_EVENT_TYPE_##name |
Typedefs | |
typedef struct RoiDimension | RoiDimension |
Defines Roi structure for GST_NVCUSTOMEVENT_ROI_UPDATE custom event. More... | |
Enumerations | |
enum | GstNvCustomEventType { GST_NVEVENT_ROI_UPDATE = GST_EVENT_MAKE_TYPE (406, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)), GST_NVEVENT_INFER_INTERVAL_UPDATE = GST_EVENT_MAKE_TYPE (407, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)) } |
Defines supported types of custom events. More... | |
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)), GST_NVEVENT_STREAM_RESET = GST_EVENT_MAKE_TYPE (404, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)), GST_NVEVENT_STREAM_START = GST_EVENT_MAKE_TYPE (405, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)) } |
Defines supported types of custom events. More... | |
Functions | |
GstEvent * | gst_nvevent_new_roi_update (gchar *stream_id, guint roi_count, RoiDimension *roi_dim) |
Creates a new "roi-update" event. More... | |
void | gst_nvevent_parse_roi_update (GstEvent *event, gchar **stream_id, guint *roi_count, RoiDimension **roi_dim) |
Parses a "roi-update" event received on the sinkpad. More... | |
GstEvent * | gst_nvevent_infer_interval_update (gchar *stream_id, guint interval) |
Creates a new "nv-infer-interval-update" event. More... | |
void | gst_nvevent_parse_infer_interval_update (GstEvent *event, gchar **stream_id, guint *interval) |
Parses a "nv-infer-interval-update" event received on the sinkpad. More... | |
GstEvent * | gst_nvevent_new_pad_added (guint source_id) |
Creates a "custom pad added" event for the specified source. More... | |
GstEvent * | gst_nvevent_new_pad_deleted (guint source_id) |
Creates a "custom pad deleted" event for the specified source. More... | |
GstEvent * | gst_nvevent_new_stream_eos (guint source_id) |
Creates a "custom EOS" event for the specified source. More... | |
GstEvent * | gst_nvevent_new_stream_segment (guint source_id, GstSegment *segment) |
Creates a "custom segment" event for the specified source. More... | |
GstEvent * | gst_nvevent_new_stream_reset (guint source_id) |
Creates a "custom reset" event for the specified source. More... | |
void | gst_nvevent_parse_pad_added (GstEvent *event, guint *source_id) |
Parses a "pad added" event received on the sinkpad. More... | |
void | gst_nvevent_parse_pad_deleted (GstEvent *event, guint *source_id) |
Parses a "pad deleted" event received on the sinkpad. More... | |
void | gst_nvevent_parse_stream_eos (GstEvent *event, guint *source_id) |
Parses a "stream EOS" event received on the sinkpad. More... | |
void | gst_nvevent_parse_stream_segment (GstEvent *event, guint *source_id, GstSegment **segment) |
Parses a "stream segment" event received on the sinkpad. More... | |
void | gst_nvevent_parse_stream_reset (GstEvent *event, guint *source_id) |
Parses a "stream reset" event received on the sinkpad. More... | |
GstEvent * | gst_nvevent_new_stream_start (guint source_id, gchar *stream_id) |
Creates a new "stream start" event. More... | |
void | gst_nvevent_parse_stream_start (GstEvent *event, guint *source_id, gchar **stream_id) |
Parses a "stream start" event received on the sinkpad. More... | |
#define FLAG | ( | name | ) | GST_EVENT_TYPE_##name |
Definition at line 40 of file gst-nvevent.h.
#define FLAG | ( | name | ) | GST_EVENT_TYPE_##name |
Definition at line 63 of file gst-nvcustomevent.h.
typedef struct RoiDimension RoiDimension |
Defines Roi structure for GST_NVCUSTOMEVENT_ROI_UPDATE custom event.
enum GstNvCustomEventType |
Defines supported types of custom events.
Definition at line 66 of file gst-nvcustomevent.h.
enum GstNvEventType |
Defines supported types of custom events.
Definition at line 43 of file gst-nvevent.h.
GstEvent* gst_nvevent_infer_interval_update | ( | gchar * | stream_id, |
guint | interval | ||
) |
Creates a new "nv-infer-interval-update" event.
[out] | stream_id | Stream ID of the stream for which infer-interval-update is to be sent |
[out] | interval | The infer interval obtained corresponding to stream ID for the event. |
GstEvent* gst_nvevent_new_pad_added | ( | guint | source_id | ) |
Creates a "custom pad added" event for the specified source.
[in] | source_id | Source ID of the stream to be added to the pipeline; also the pad ID of the sinkpad of the Gst-nvstreammux plugin for which the source is configured. |
GstEvent* gst_nvevent_new_pad_deleted | ( | guint | source_id | ) |
Creates a "custom pad deleted" event for the specified source.
[in] | source_id | Source ID of the stream to be removed from the pipeline; also the pad ID of the sinkpad of the Gst-nvstreammux plugin for which the source is configured. |
GstEvent* gst_nvevent_new_roi_update | ( | gchar * | stream_id, |
guint | roi_count, | ||
RoiDimension * | roi_dim | ||
) |
Creates a new "roi-update" event.
[out] | stream_id | Stream ID of the stream for which nv-roi-update is to be sent |
[out] | roi_count | The roi_count obtained corresponding to stream ID for the event. |
[out] | roi_dim | The RoiDimension structure of size roi_count. |
GstEvent* gst_nvevent_new_stream_eos | ( | guint | source_id | ) |
Creates a "custom EOS" event for the specified source.
[in] | source_id | Source ID of the stream for which EOS is to be sent; also the pad ID of the sinkpad of the Gst-nvstreammux plugin for which the source is configured. |
GstEvent* gst_nvevent_new_stream_reset | ( | guint | source_id | ) |
Creates a "custom reset" event for the specified source.
[in] | source_id | Source ID of the stream for which reset is to be sent; also the pad ID of the sinkpad of the Gst-nvstreammux plugin for which the source is configured. |
GstEvent* gst_nvevent_new_stream_segment | ( | guint | source_id, |
GstSegment * | segment | ||
) |
Creates a "custom segment" event for the specified source.
[in] | source_id | Source ID of the stream for which a segment event is to be sent; also the pad ID of the sinkpad of the Gst-nvstreammux plugin for which the source is configured. |
[in] | segment | A pointer to a copy of the segment to be sent with the event; corresponds to the original segment for the specified source. |
GstEvent* gst_nvevent_new_stream_start | ( | guint | source_id, |
gchar * | stream_id | ||
) |
Creates a new "stream start" event.
[out] | source_id | Source ID of the stream for which stream-start is to be sent |
[out] | stream_id | The stream-id string obtained from sink pad with gst_pad_get_stream_id(pad) corresponding to source ID for the event. |
void gst_nvevent_parse_infer_interval_update | ( | GstEvent * | event, |
gchar ** | stream_id, | ||
guint * | interval | ||
) |
Parses a "nv-infer-interval-update" event received on the sinkpad.
[in] | event | The event received on the sinkpad when the stream ID sends a infer-interval-update event. |
[out] | stream_id | A pointer to the parsed stream ID for which the event is sent. |
[out] | interval | A pointer to the parsed interval corresponding to stream ID for the event. |
void gst_nvevent_parse_pad_added | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parses a "pad added" event received on the sinkpad.
[in] | event | A pointer to the event received on the sinkpad when the pad is added to Gst-nvstreammux. |
[out] | source_id | A pointer to the parsed source ID for the event. |
void gst_nvevent_parse_pad_deleted | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parses a "pad deleted" event received on the sinkpad.
[in] | event | A pointer to the event received on the sinkpad when the pad is deleted from Gst-nvstreammux. |
[out] | source_id | A pointer to the parsed source ID for the event. |
void gst_nvevent_parse_roi_update | ( | GstEvent * | event, |
gchar ** | stream_id, | ||
guint * | roi_count, | ||
RoiDimension ** | roi_dim | ||
) |
Parses a "roi-update" event received on the sinkpad.
[in] | event | The event received on the sinkpad when the stream ID sends a nv-roi-update event. |
[out] | stream_id | A pointer to the parsed stream ID for which the event is sent. |
[out] | roi_count | A pointer to the parsed number of roi(s) corresponding to stream ID for the event. |
[out] | roi_dim | A double pointer to the parsed RoiDimension structure of size roi_count. User MUST free roi_dim memory using g_free post usage. |
void gst_nvevent_parse_stream_eos | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parses a "stream EOS" event received on the sinkpad.
[in] | event | A pointer to the event received on the sinkpad when the source ID sends the EOS event. |
[out] | source_id | A pointer to the parsed source ID for the event. |
void gst_nvevent_parse_stream_reset | ( | GstEvent * | event, |
guint * | source_id | ||
) |
Parses a "stream reset" event received on the sinkpad.
[in] | event | A pointer to the event received on the sinkpad when the source ID sends the reset event. |
[out] | source_id | A pointer to the parsed source ID for the event. |
void gst_nvevent_parse_stream_segment | ( | GstEvent * | event, |
guint * | source_id, | ||
GstSegment ** | segment | ||
) |
Parses a "stream segment" event received on the sinkpad.
[in] | event | The event received on the sinkpad when the source ID sends a segment event. |
[out] | source_id | A pointer to the parsed source ID for which the event is sent. |
[out] | segment | A double pointer to the parsed segment corresponding to source ID for the event. |
void gst_nvevent_parse_stream_start | ( | GstEvent * | event, |
guint * | source_id, | ||
gchar ** | stream_id | ||
) |
Parses a "stream start" event received on the sinkpad.
[in] | event | The event received on the sinkpad when the source ID sends a stream-start event. |
[out] | source_id | A pointer to the parsed source ID for which the event is sent. |
[out] | segment | A double pointer to the parsed stream-id corresponding to source ID for the event. |