gstreamer/docs/random/plan-0.11.txt

142 lines
4 KiB
Text
Raw Normal View History

2010-11-04 18:30:58 +00:00
Plan for 0.11
=============
2010-11-08 13:08:36 +00:00
First attempt at making a list of tasks in roughly chronological order.
2010-11-04 18:30:58 +00:00
* General cleanup
- Remove deprecated methods
- Cleanup structs + PADDING
- ..
2010-11-08 10:18:05 +00:00
This should allow us to continue expanding later in the same way that 0.10 was
2010-12-06 12:48:31 +00:00
expanded.
2010-11-04 18:30:58 +00:00
2010-11-08 13:08:36 +00:00
2010-11-08 11:14:12 +00:00
* Review GstCaps fields
- go over caps fields for audio, video, compressed media-type etc
We need to express things with less fields. This would speed up caps, make
them less verbose and speed up some elements.
2010-11-08 13:08:36 +00:00
2010-11-04 18:30:58 +00:00
* Add GstFlowReturn for events (and query)
2010-11-08 10:18:05 +00:00
This would allow us to know more precisely what went wrong.
2010-11-08 13:08:36 +00:00
http://cgit.freedesktop.org/~wtay/gstreamer/log/?h=events2
2010-11-04 18:30:58 +00:00
* add return structure for events and query
2010-11-08 10:18:05 +00:00
Make events return more information. (a seek event might want to return the
final position of the keyframe seek and the accuracy of the seek)
Make bindings easiers. Currently the writability of a query depends on the
refcount being exactly 1. If the query is not writable, it simply cannot be
answered.
2010-11-08 13:08:36 +00:00
2010-11-04 18:30:58 +00:00
* Make GstMiniObject a simple boxed type
- Move copy and free function to structure
- convert GstBuffer, GstEvent, GstMessage, GstQuery,
2010-11-08 10:18:05 +00:00
We don't need to subclass miniobjects when we have arbitrary metadata.
Allocation should be more efficient and buffer/metadata/data can be allocated
and pooled in one contiguous memory area.
Typechecking of various types is much more efficient when there is only
one class.
2010-11-08 13:08:36 +00:00
http://cgit.freedesktop.org/~wtay/gstreamer/log/?h=miniobject2
2010-11-04 18:30:58 +00:00
* Convert GstCaps to GstMiniObject
2010-11-08 10:18:05 +00:00
Currently it has its own refcounting and flags.
2010-11-08 13:08:36 +00:00
http://cgit.freedesktop.org/~wtay/gstreamer/log/?h=miniobject2
* GVariant registry
- allow for mmaped registy (tpm)
2010-11-04 18:30:58 +00:00
* Incremental caps
- Remove array from caps ?
2010-11-08 10:18:05 +00:00
- make caps iterator or is the array the cache for iterator ?
We need to perform less caps operations when negotiating formats. One way is
to only handle small caps objects incrementally.
2010-11-04 18:30:58 +00:00
2010-11-08 13:08:36 +00:00
http://cgit.freedesktop.org/~ensonic/gstreamer/log/?h=lazycaps
2010-11-04 18:30:58 +00:00
* Make GstBufferMetadata
- Make functions to register metadata
- Make common metadata: timeinfo, memory data, video data
- Remove GstBuffer Fields
- Make methods to add metadata to buffers.
2010-11-08 10:18:05 +00:00
More flexible metadata for buffers.
2010-11-04 18:30:58 +00:00
2010-11-08 13:08:36 +00:00
http://cgit.freedesktop.org/~wtay/gstreamer/log/?h=buffermeta
2010-11-04 18:30:58 +00:00
* Negotiation of metadata
- figure out if we need to negotiate the metadata on the caps or if we can
gracefully degrade when an element doesn't understand the metadata.
2010-11-08 10:18:05 +00:00
We need to avoid that elements put metadata on buffers that is essential in
handling the buffer contents but that is then not understood by other
elements.
2010-11-04 18:30:58 +00:00
2010-11-08 13:08:36 +00:00
2010-11-08 10:18:05 +00:00
* Rework reverse negotiation
2010-11-04 18:30:58 +00:00
2010-11-08 10:18:05 +00:00
- upstream event to notify of a downstream caps change
2010-11-04 18:30:58 +00:00
- _alloc_buffer() takes input GstBuffer prototype (or NULL)
2010-11-08 10:18:05 +00:00
- _alloc_buffer() never returns changed caps.
2010-11-04 18:30:58 +00:00
2010-11-08 10:18:05 +00:00
One of the performance problems in 0.10 is that transform elements need to
call gst_pad_alloc_buffer() downstream to check if the caps changed. This
usually also results in a useless memory allocation.
We would make a new upstream event to notify downstream elements that new caps
are possible somewhere downstream.
2010-11-04 18:30:58 +00:00
2010-11-08 10:18:05 +00:00
gst_pad_alloc_buffer() would take a GstBuffer as an input argument to make the
API easier, we can then use metadata to specify additional constraints for the
2010-11-08 10:18:05 +00:00
new buffer (such as strides, etc)
2010-11-08 13:08:36 +00:00
2010-11-04 18:30:58 +00:00
* Incremental event progation
- certain events would be sticky on a pad like for caps
- rules for pushing an event downstream
- right before pushing a buffer
- after link operation
- activate for most serialized downstream events
2010-11-08 10:18:05 +00:00
This would allow an application to have more control over the state of the
dataflow in a pipeline.
2010-11-08 13:08:36 +00:00
2010-11-04 18:30:58 +00:00
* GstSegment changes
- remove segment accumulation
- add accumulated time to the event
- apply segment info to pads
- add method on pads to get/adjust sync offset
- add method on pads to query current running_time
2010-11-08 10:18:05 +00:00
The goal is to make the timing model more comprehensible and thus make dynamic
pipeline plugging easier.
2010-11-04 18:30:58 +00:00