Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
1013c6c7
Commit
1013c6c7
authored
Nov 08, 2011
by
Wim Taymans
Browse files
pad: add defines for query probes
parent
fb1f6bec
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/gstpad.h
View file @
1013c6c7
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment