v4l2object: Use active resolution during fallback colorspace probe
authorHou Qi <qi.hou@nxp.com>
Fri, 11 Dec 2020 03:24:14 +0000 (11:24 +0800)
committerHou Qi <qi.hou@nxp.com>
Mon, 14 Dec 2020 01:15:18 +0000 (09:15 +0800)
commitff1dd307f2e2733628590a3875f8838cb6d1d979
tree1feb4dfe774c6a053ceddc704e52714e31ea1d3c
parent6d4dcb430d5448f506bb9076c7abe19200a081c3
v4l2object: Use active resolution during fallback colorspace probe

For legacy drivers that don't implement ENUM_FRAMESIZE, use active
resolution to probe colorspace. This can improve the accuracy of the
result when the colorspace depends on the resolution. This fixes a
wrong colorspace issue on board with vendor bsp at resolution 2560x1440.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/830>
sys/v4l2/gstv4l2object.c