提交 c0b50d95 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[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: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 aa05b979
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册