make video/x-bayer a first class gstreamer citizen
Philippe De Muyter
phdm at macq.eu
Fri Nov 25 01:17:52 UTC 2016
Hi all,
I am currently trying to extend an exisiting plugin which accepts
a big set of color formats on his sink to also accept Bayer-encoded
images produced by a sensor. Everything is utterly complicated
because video/x-bayer is not treated equally to video/x-raw, while
it is basically the same, with constant-sized frames.
Problems are e.g,
gst_video_info_from_caps does not fill the size field of the info struct,
leading to a cryptic
(gst-launch-1.0:26159): GStreamer-CRITICAL **:
gst_query_add_allocation_pool: assertion 'size != 0' failed
or
there is no GST_VIDEO_FORMAT_* constant for Bayer images, and
gst_video_format_to_string can thus not be used with Bayer formats
Could video/x-bayer,format=bggr be replaced by video/x-raw,format=bggr
(or BGGR) ?
v4l2 does not do that distinction, and actually some sensors come with
the same electronic part, changing only the color filter between a GREY
sensor and a Bayer sensor
Best regards
Philippe
--
Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles
More information about the gstreamer-devel
mailing list