hdr: default hdr policy follow source [1/1]

PD#SWPL-11602

Problem:
default hdr follow sink, sdr video color is different from standard sdr

Solution:
default hdr policy follow source,  UI switch follow sink or follow source

Verify:
verify on G12A

Change-Id: Ie668f06d45bb3881ee71ac4580dc3bf8f107dafa
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
This commit is contained in:
MingLiang Dong
2019-08-27 02:47:57 -04:00
committed by Tao Zeng
parent de3ec4f734
commit 6e65b0befa

View File

@@ -24,7 +24,10 @@
#include "hdr/am_hdr10_plus.h"
/* 0: follow sink, 1: follow source */
static uint hdr_policy;
static uint hdr_policy = 1;
module_param(hdr_policy, uint, 0664);
MODULE_PARM_DESC(hdr_policy, "\n hdr policy\n");
static uint cur_hdr_policy;
static enum output_format_e target_format[VD_PATH_MAX];
static enum hdr_type_e cur_source_format[VD_PATH_MAX];