GNOME Bugzilla – Bug 784674
v4l2: Aspect Ratio probe does not work
Last modified: 2017-07-18 18:26:42 UTC
In the GstV4l2Object we try and probe the pixel aspect ratio, but (at least with UVC driver) the passed width/height is totally ignore and replaced by the currently setup width height. That has the side effect that the ratio is never the one we expect. We will need to re-read the v4l2 spec around VIDIOC_CROPCAP.
Basically, the spec says that the aspect ratio is stable for the same TV standard. tv-norm in 1.0 has been a no-op since the start, so it means the aspect ratio can only be fixed for nodes handled by Gst. We should pull out the cropcap burried into the deepest probe function, and just call this once, save it in the GstV4l2Object and badger all structures with it. Except of course for encoded formats and for GstV4l2Transform element.
Created attachment 355628 [details] [review] v4l2object: Only check CROPCAP for par once The pixel aspect ratio is documented to not change unless the TV Standard is changed. So this mean that this will be uniform across all possible format and resolutions.
Attachment 355628 [details] pushed as 0864399 - v4l2object: Only check CROPCAP for par once