mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
aa05b979f1
commit
c0b50d9512
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue