mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
pad: add defines for query probes
This commit is contained in:
parent
fb1f6bec68
commit
1013c6c79b
1 changed files with 11 additions and 6 deletions
17
gst/gstpad.h
17
gst/gstpad.h
|
@ -474,6 +474,8 @@ typedef gboolean (*GstPadForwardFunction) (GstPad *pad, gpointer user_data);
|
|||
* @GST_PAD_PROBE_TYPE_BUFFER_LIST: probe buffer lists
|
||||
* @GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM: probe downstream events
|
||||
* @GST_PAD_PROBE_TYPE_EVENT_UPSTREAM: probe upstream events
|
||||
* @GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM: probe downstream queries
|
||||
* @GST_PAD_PROBE_TYPE_QUERY_UPSTREAM: probe upstream queries
|
||||
* @GST_PAD_PROBE_TYPE_PUSH: probe push
|
||||
* @GST_PAD_PROBE_TYPE_PULL: probe pull
|
||||
*
|
||||
|
@ -488,13 +490,15 @@ typedef enum
|
|||
GST_PAD_PROBE_TYPE_IDLE = (1 << 0),
|
||||
GST_PAD_PROBE_TYPE_BLOCK = (1 << 1),
|
||||
/* flags to select datatypes */
|
||||
GST_PAD_PROBE_TYPE_BUFFER = (1 << 2),
|
||||
GST_PAD_PROBE_TYPE_BUFFER_LIST = (1 << 3),
|
||||
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = (1 << 4),
|
||||
GST_PAD_PROBE_TYPE_EVENT_UPSTREAM = (1 << 5),
|
||||
GST_PAD_PROBE_TYPE_BUFFER = (1 << 4),
|
||||
GST_PAD_PROBE_TYPE_BUFFER_LIST = (1 << 5),
|
||||
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = (1 << 6),
|
||||
GST_PAD_PROBE_TYPE_EVENT_UPSTREAM = (1 << 7),
|
||||
GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM = (1 << 8),
|
||||
GST_PAD_PROBE_TYPE_QUERY_UPSTREAM = (1 << 9),
|
||||
/* flags to select scheduling mode */
|
||||
GST_PAD_PROBE_TYPE_PUSH = (1 << 6),
|
||||
GST_PAD_PROBE_TYPE_PULL = (1 << 7),
|
||||
GST_PAD_PROBE_TYPE_PUSH = (1 << 12),
|
||||
GST_PAD_PROBE_TYPE_PULL = (1 << 13),
|
||||
} GstPadProbeType;
|
||||
|
||||
#define GST_PAD_PROBE_TYPE_BLOCKING (GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_BLOCK)
|
||||
|
@ -554,6 +558,7 @@ typedef struct
|
|||
#define GST_PAD_PROBE_INFO_BUFFER(d) GST_BUFFER_CAST(GST_PAD_PROBE_INFO_DATA(d))
|
||||
#define GST_PAD_PROBE_INFO_BUFFER_LIST(d) GST_BUFFER_LIST_CAST(GST_PAD_PROBE_INFO_DATA(d))
|
||||
#define GST_PAD_PROBE_INFO_EVENT(d) GST_EVENT_CAST(GST_PAD_PROBE_INFO_DATA(d))
|
||||
#define GST_PAD_PROBE_INFO_QUERY(d) GST_QUERY_CAST(GST_PAD_PROBE_INFO_DATA(d))
|
||||
|
||||
#define GST_PAD_PROBE_INFO_OFFSET(d) ((d)->offset)
|
||||
#define GST_PAD_PROBE_INFO_SIZE(d) ((d)->size)
|
||||
|
|
Loading…
Reference in a new issue