GstVideo - Extensible Format Registry?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GstVideo - Extensible Format Registry?

Vanista Herion
I'm developing applications to process raw camera feeds in high bit depth and very high resolutions. I wish I could use the GstVideo facilities for caps handling but the existing formats fall very short of my needs (BAYER, RGB and RGBA in 8, 10, 12 or 16 bits, bit packed or byte aligned).

I started patching the base library to add my formats but I think there has to be a better way to do this... So I'd like to open a discussion on this subject, is there any way to extend the format list? Maybe instead of a static list there could be a factory of formats, and plugins could register their own formats by providing the appropriate pixel pack/unpack method. The big interest is in being able to convert video caps into the GstVideoInfo structure to get relevant properties.

I understand that GstVideo provides a limited set of formats and anything other than that should convert to the closest matching, the problem is that this adds a tremendous overhead that often cannot be afforded in real time applications. 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GstVideo - Extensible Format Registry?

Nicolas Dufresne-4
Le vendredi 07 octobre 2016 à 12:34 -0400, Vanista Herion a écrit :
> I understand that GstVideo provides a limited set of formats and
> anything other than that should convert to the closest matching, the
> problem is that this adds a tremendous overhead that often cannot be
> afforded in real time applications. 

That's not a correct statement. Whenever a format is becoming useful,
one will add it to GstVideo. We use fixed enumeration for performance
in caps negotiation. It's based on the premise that there is few new
formats every year. For truly opaque format, or formats that aren't
meant to be displayed, you can of course use your own mime-style
format, caps are generic in this matter (e.g. video/x-raw-opaque,...).

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel