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>
#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];