[gst-devel] [gst-cvs] mnauw gst-plugins-base: gst-plugins-base/ gst-plugins-base/gst-libs/gst/video/

David Schleef ds at schleef.org
Wed Jul 16 00:40:57 CEST 2008


On Wed, Jul 16, 2008 at 12:08:57AM +0200, Mark Nauwelaerts wrote:
> A use-case; a sink setcaps triggers some caps negotiation between current 
> element and its peer, a get_allowed_caps on src typically returns non-fixed 
> caps (at least in the width, height, framerate, pixel-aspect-ratio and 
> whatever-may-turn-up part).  A gst_caps_normalize then yields a caps each 
> structure of which can be separately (caps encapsulated) fed into 
> _parse_caps to reduce this to a GstVideoFormat, with which the element can 
> decide if it can handle this format.
> The "shortcut" in this is only that a library function _parse_caps can be 
> used easily without first having to add more code to get rid of whatever 
> not-so-interesting non-fixed fields there may be (e.g. fixating, removing, 
> e.g. with a copy-and-paste job of gst_pad_default_fixate/fixate_value).

If this is what you want, then you should create a proposed patch
and put it in bugzilla, for people to discuss.  This is significantly
outside of what GstVideoFormat does, and designing sane API around
caps is a difficult task.



dave...





More information about the gstreamer-devel mailing list