diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-03-08 10:53:33 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-03 00:11:02 +0300 |
commit | c0b50d951283eddec292811440f1d38eb2a3f455 (patch) | |
tree | 73a84c74387eafed6499ceddb0c13f8e8d8e7de9 /drivers/media/platform/vivid | |
parent | aa05b979f14998fec16fa38f1c91eaa197e73148 (diff) | |
download | linux-c0b50d951283eddec292811440f1d38eb2a3f455.tar.xz |
[media] vivid: BT.2020 R'G'B' is limited range
According to the standard the R'G'B' BT.2020 colorspace is limited
range, not full range. Fix this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/vivid')
-rw-r--r-- | drivers/media/platform/vivid/vivid-tpg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/platform/vivid/vivid-tpg.c b/drivers/media/platform/vivid/vivid-tpg.c index 34493f435d5a..acb73b67b16a 100644 --- a/drivers/media/platform/vivid/vivid-tpg.c +++ b/drivers/media/platform/vivid/vivid-tpg.c @@ -1265,6 +1265,10 @@ static void tpg_recalc(struct tpg_data *tpg) V4L2_QUANTIZATION_LIM_RANGE; break; } + } else if (tpg->colorspace == V4L2_COLORSPACE_BT2020) { + /* R'G'B' BT.2020 is limited range */ + tpg->real_quantization = + V4L2_QUANTIZATION_LIM_RANGE; } } tpg_precalculate_colors(tpg); |