dolby: set gmax for LL mode [1/1]

PD#SWPL-8799

Problem:
HDR-001-TC3 GXF is brighter than VID in LL mode

Solution:
dolby_vision_target_graphics_L for LL mode

Verify:
verified on u212

Change-Id: I3b39ec048bfff3d8ae797702c1c783356d59e604
Signed-off-by: yao liu <yao.liu@amlogic.com>
This commit is contained in:
yao liu
2019-05-22 17:38:13 +08:00
committed by Tao Zeng
parent e2943b5d21
commit e1e2f9923e

View File

@@ -301,6 +301,7 @@ MODULE_PARM_DESC(dolby_vision_graphic_max, "\n dolby_vision_graphic_max\n");
static unsigned int dolby_vision_target_graphics_max[3] = {
300, 300, 100
}; /* DOVI/HDR/SDR */
static unsigned int dolby_vision_target_graphics_LL = 210;
/*these two parameters form OSD*/
static unsigned int osd_graphic_width = 1920;
@@ -5538,6 +5539,14 @@ int dolby_vision_parse_metadata(
graphic_max =
dolby_vision_target_graphics_max[dst_format];
if (dst_format == FORMAT_DOVI) {
if ((dolby_vision_flags
& FLAG_FORCE_DOVI_LL) ||
(dolby_vision_ll_policy
>= DOLBY_VISION_LL_YUV422))
graphic_max = dolby_vision_target_graphics_LL;
}
if (is_graphics_output_off()) {
graphic_min = 0;
graphic_max = 0;