mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
event: add some more events
Add some more new events that we want to implement later.
This commit is contained in:
parent
ade5b3b917
commit
2d4edcf83f
2 changed files with 36 additions and 19 deletions
|
@ -107,12 +107,15 @@ static GstEventQuarks event_quarks[] = {
|
|||
{GST_EVENT_UNKNOWN, "unknown", 0},
|
||||
{GST_EVENT_FLUSH_START, "flush-start", 0},
|
||||
{GST_EVENT_FLUSH_STOP, "flush-stop", 0},
|
||||
{GST_EVENT_EOS, "eos", 0},
|
||||
{GST_EVENT_STREAM_START, "stream-start", 0},
|
||||
{GST_EVENT_CAPS, "caps", 0},
|
||||
{GST_EVENT_STREAM_CONFIG, "stream-config", 0},
|
||||
{GST_EVENT_SEGMENT, "segment", 0},
|
||||
{GST_EVENT_TAG, "tag", 0},
|
||||
{GST_EVENT_BUFFERSIZE, "buffersize", 0},
|
||||
{GST_EVENT_SINK_MESSAGE, "sink-message", 0},
|
||||
{GST_EVENT_EOS, "eos", 0},
|
||||
{GST_EVENT_SEGMENT_DONE, "segment-done", 0},
|
||||
{GST_EVENT_QOS, "qos", 0},
|
||||
{GST_EVENT_SEEK, "seek", 0},
|
||||
{GST_EVENT_NAVIGATION, "navigation", 0},
|
||||
|
|
|
@ -80,7 +80,11 @@ typedef enum {
|
|||
* from the pipeline and unblock all streaming threads.
|
||||
* @GST_EVENT_FLUSH_STOP: Stop a flush operation. This event resets the
|
||||
* running-time of the pipeline.
|
||||
* @GST_EVENT_STREAM_START: (unimplemented) event to mark the start of a new
|
||||
* stream.
|
||||
* @GST_EVENT_CAPS: #GstCaps event. Notify the pad of a new media type.
|
||||
* @GST_EVENT_STREAM_CONFIG: (unimplemented) contains configuration information
|
||||
* for the stream, for example stream-headers and codec-data.
|
||||
* @GST_EVENT_SEGMENT: A new media segment follows in the dataflow. The
|
||||
* segment events contains information for clipping buffers and
|
||||
* converting buffer timestamps to running-time and
|
||||
|
@ -88,12 +92,14 @@ typedef enum {
|
|||
* @GST_EVENT_TAG: A new set of metadata tags has been found in the stream.
|
||||
* @GST_EVENT_BUFFERSIZE: Notification of buffering requirements. Currently not
|
||||
* used yet.
|
||||
* @GST_EVENT_GAP: (unimplemented) Marks a gap in the datastream.
|
||||
* @GST_EVENT_SINK_MESSAGE: An event that sinks turn into a message. Used to
|
||||
* send messages that should be emitted in sync with
|
||||
* rendering.
|
||||
* Since: 0.10.26
|
||||
* @GST_EVENT_EOS: End-Of-Stream. No more data is to be expected to follow
|
||||
* without a SEGMENT event.
|
||||
* @GST_EVENT_SEGMENT_DONE: (unimplemented) Marks the end of a segment playback.
|
||||
* @GST_EVENT_QOS: A quality message. Used to indicate to upstream elements
|
||||
* that the downstream elements should adjust their processing
|
||||
* rate.
|
||||
|
@ -128,32 +134,40 @@ typedef enum {
|
|||
/* NOTE: keep in sync with quark registration in gstevent.c */
|
||||
typedef enum {
|
||||
GST_EVENT_UNKNOWN = GST_EVENT_MAKE_TYPE (0, 0),
|
||||
|
||||
/* bidirectional events */
|
||||
GST_EVENT_FLUSH_START = GST_EVENT_MAKE_TYPE (10, FLAG(BOTH)),
|
||||
GST_EVENT_FLUSH_STOP = GST_EVENT_MAKE_TYPE (20, FLAG(BOTH) | FLAG(SERIALIZED)),
|
||||
|
||||
/* downstream serialized events */
|
||||
GST_EVENT_CAPS = GST_EVENT_MAKE_TYPE (40, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_SEGMENT = GST_EVENT_MAKE_TYPE (50, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_TAG = GST_EVENT_MAKE_TYPE (60, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_BUFFERSIZE = GST_EVENT_MAKE_TYPE (70, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_SINK_MESSAGE = GST_EVENT_MAKE_TYPE (80, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_EOS = GST_EVENT_MAKE_TYPE (90, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_STREAM_START = GST_EVENT_MAKE_TYPE (40, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_CAPS = GST_EVENT_MAKE_TYPE (50, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_STREAM_CONFIG = GST_EVENT_MAKE_TYPE (60, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_SEGMENT = GST_EVENT_MAKE_TYPE (70, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_TAG = GST_EVENT_MAKE_TYPE (80, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_BUFFERSIZE = GST_EVENT_MAKE_TYPE (90, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_GAP = GST_EVENT_MAKE_TYPE (100, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
GST_EVENT_SINK_MESSAGE = GST_EVENT_MAKE_TYPE (110, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_EOS = GST_EVENT_MAKE_TYPE (120, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY)),
|
||||
|
||||
/* non-sticky downstream serialized */
|
||||
GST_EVENT_SEGMENT_DONE = GST_EVENT_MAKE_TYPE (150, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
|
||||
|
||||
/* upstream events */
|
||||
GST_EVENT_QOS = GST_EVENT_MAKE_TYPE (120, FLAG(UPSTREAM)),
|
||||
GST_EVENT_SEEK = GST_EVENT_MAKE_TYPE (130, FLAG(UPSTREAM)),
|
||||
GST_EVENT_NAVIGATION = GST_EVENT_MAKE_TYPE (140, FLAG(UPSTREAM)),
|
||||
GST_EVENT_LATENCY = GST_EVENT_MAKE_TYPE (150, FLAG(UPSTREAM)),
|
||||
GST_EVENT_STEP = GST_EVENT_MAKE_TYPE (160, FLAG(UPSTREAM)),
|
||||
GST_EVENT_RECONFIGURE = GST_EVENT_MAKE_TYPE (170, FLAG(UPSTREAM)),
|
||||
GST_EVENT_QOS = GST_EVENT_MAKE_TYPE (180, FLAG(UPSTREAM)),
|
||||
GST_EVENT_SEEK = GST_EVENT_MAKE_TYPE (190, FLAG(UPSTREAM)),
|
||||
GST_EVENT_NAVIGATION = GST_EVENT_MAKE_TYPE (200, FLAG(UPSTREAM)),
|
||||
GST_EVENT_LATENCY = GST_EVENT_MAKE_TYPE (210, FLAG(UPSTREAM)),
|
||||
GST_EVENT_STEP = GST_EVENT_MAKE_TYPE (220, FLAG(UPSTREAM)),
|
||||
GST_EVENT_RECONFIGURE = GST_EVENT_MAKE_TYPE (230, FLAG(UPSTREAM)),
|
||||
|
||||
/* custom events start here */
|
||||
GST_EVENT_CUSTOM_UPSTREAM = GST_EVENT_MAKE_TYPE (220, FLAG(UPSTREAM)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM = GST_EVENT_MAKE_TYPE (220, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM_OOB = GST_EVENT_MAKE_TYPE (220, FLAG(DOWNSTREAM)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM_STICKY = GST_EVENT_MAKE_TYPE (220, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_CUSTOM_BOTH = GST_EVENT_MAKE_TYPE (220, FLAG(BOTH) | FLAG(SERIALIZED)),
|
||||
GST_EVENT_CUSTOM_BOTH_OOB = GST_EVENT_MAKE_TYPE (220, FLAG(BOTH))
|
||||
GST_EVENT_CUSTOM_UPSTREAM = GST_EVENT_MAKE_TYPE (260, FLAG(UPSTREAM)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM = GST_EVENT_MAKE_TYPE (270, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM_OOB = GST_EVENT_MAKE_TYPE (280, FLAG(DOWNSTREAM)),
|
||||
GST_EVENT_CUSTOM_DOWNSTREAM_STICKY = GST_EVENT_MAKE_TYPE (290, FLAG(DOWNSTREAM) | FLAG(SERIALIZED) | FLAG(STICKY) | FLAG(STICKY_MULTI)),
|
||||
GST_EVENT_CUSTOM_BOTH = GST_EVENT_MAKE_TYPE (300, FLAG(BOTH) | FLAG(SERIALIZED)),
|
||||
GST_EVENT_CUSTOM_BOTH_OOB = GST_EVENT_MAKE_TYPE (310, FLAG(BOTH))
|
||||
} GstEventType;
|
||||
#undef FLAG
|
||||
|
||||
|
|
Loading…
Reference in a new issue