[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:
Hans Verkuil 2015-03-08 04:53:33 -03:00 committed by Mauro Carvalho Chehab
parent aa05b979f1
commit c0b50d9512
1 changed files with 4 additions and 0 deletions

View File

@ -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);