v4l2object: Only use BT2020_12 for BT2020 v4l2 colorspace
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 9 Apr 2018 00:42:16 +0000 (20:42 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 12 Apr 2018 02:19:10 +0000 (22:19 -0400)
commitebf8a6d0c06e6233f55dbbb1cdd75c7e3fb166da
tree89d73061e70f8711966970ee85260d4f97f7b88d
parentdd1c5aed656e07e3dad01f83410f3af16cfb14cf
v4l2object: Only use BT2020_12 for BT2020 v4l2 colorspace

BT2020_12 is not represented in V4L2, so drivers providing full colority
for BT2020 will set V4L2_XFER_FUNC_709 transfer function. To fix the
issue, we bump this to BT2020_12 if the resoltion is 4K, but we should
only do that if the colorspace is BT2020 to start with, otherwise it's
not possible to use normal BT709 for 4K 8bit formats.
sys/v4l2/gstv4l2object.c