mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
docs: update design doc
also fix default alignment value (0 == no-alignment)
This commit is contained in:
parent
770159fb1c
commit
9e3aa102d7
2 changed files with 17 additions and 10 deletions
|
@ -60,18 +60,25 @@ A sinkpad can ask the upstream srcpad for its scheduling attributes. It does
|
|||
this with the SCHEDULING query.
|
||||
|
||||
|
||||
(out) "pull-mode", G_TYPE_BOOLEAN (default FALSE)
|
||||
- if the pad can operate in pull mode, if this flag is not set the pad
|
||||
will operate in push mode.
|
||||
(out) "modes", G_TYPE_VALUE_ARRAY (default NULL)
|
||||
- an array of GST_TYPE_PAD_MODE enums. Contains all the supported
|
||||
scheduling modes.
|
||||
|
||||
(out) "random-access", G_TYPE_BOOLEAN (default FALSE)
|
||||
(out) "flags", GST_TYPE_SCHEDULING_FLAGS (default 0)
|
||||
|
||||
typedef enum {
|
||||
GST_SCHEDULING_FLAG_SEEKABLE = (1 << 0),
|
||||
GST_SCHEDULING_FLAG_SEQUENTIAL = (1 << 1)
|
||||
} GstSchedulingFlags;
|
||||
|
||||
_SEEKABLE:
|
||||
- the offset of a pull operation can be specified, if this flag is false,
|
||||
the offset should be -1,
|
||||
|
||||
(out) "sequential", G_TYPE_BOOLEAN (default TRUE)
|
||||
- suggest sequential access to the data. If random-access is specified,
|
||||
|
||||
_SEQUENTIAL:
|
||||
- suggest sequential access to the data. If _SEEKABLE is specified,
|
||||
seeks are allowed but should be avoided. This is common for network
|
||||
streams. (
|
||||
streams.
|
||||
|
||||
(out) "minsize", G_TYPE_INT (default 1)
|
||||
- the suggested minimum size of pull requests
|
||||
|
@ -79,7 +86,7 @@ this with the SCHEDULING query.
|
|||
(out) "maxsize", G_TYPE_INT (default -1, unlimited)
|
||||
- the suggested maximum size of pull requests
|
||||
|
||||
(out) "align", G_TYPE_INT (default 1)
|
||||
(out) "align", G_TYPE_INT (default 0)
|
||||
- the suggested alignment for the pull requests.
|
||||
|
||||
|
||||
|
|
|
@ -1885,7 +1885,7 @@ gst_query_new_scheduling (void)
|
|||
GST_QUARK (FLAGS), GST_TYPE_SCHEDULING_FLAGS, 0,
|
||||
GST_QUARK (MINSIZE), G_TYPE_INT, 1,
|
||||
GST_QUARK (MAXSIZE), G_TYPE_INT, -1,
|
||||
GST_QUARK (ALIGN), G_TYPE_INT, 1, NULL);
|
||||
GST_QUARK (ALIGN), G_TYPE_INT, 0, NULL);
|
||||
query = gst_query_new (GST_QUERY_SCHEDULING, structure);
|
||||
|
||||
return query;
|
||||
|
|
Loading…
Reference in a new issue