media: vivid: Add support to the CSC API
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Thu, 27 Aug 2020 19:46:09 +0000 (21:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 08:21:34 +0000 (10:21 +0200)
commit2f491463497ad43bc06968a334747c6b6b20fc74
tree54253229cbae001bb6e1892ccd2a8b9abbcae4ba
parentb38c73ca1c213bbf8a872b334a6bb835becfaba5
media: vivid: Add support to the CSC API

The CSC API (Colorspace conversion) allows userspace to try
to configure the colorspace, transfer function, Y'CbCr/HSV encoding
and the quantization for capture devices. This patch adds support
to the CSC API in vivid.
Using the CSC API, userspace is allowed to do the following:

- Set the colorspace.
- Set the xfer_func.
- Set the ycbcr_enc function for YUV formats.
- Set the hsv_enc function for HSV formats
- Set the quantization for YUV and RGB formats.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vivid/vivid-vid-cap.c
drivers/media/test-drivers/vivid/vivid-vid-common.c
include/media/v4l2-common.h