amvecm: hdr: add hdr10 plus support [1/2]

PD#SWPL-869

Problem:
new feature, add hdr10 plus support

Solution:
1. add hdr10 plus metadat parser
2. add hdr10 plus code support
3. add hdr10 plus bypass mode

Verify:
verify on U200

Change-Id: I957954ce148021882e17f2913dd2552e64f1298c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>

Conflicts:
	MAINTAINERS
	drivers/amlogic/media/enhancement/amvecm/Makefile
	drivers/amlogic/media/enhancement/amvecm/amvecm.c
	drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c
	include/linux/amlogic/media/amvecm/amvecm.h
This commit is contained in:
MingLiang Dong
2018-10-22 04:20:05 -04:00
committed by Dongjin Kim
parent 4f604517ed
commit abc5ce3fe6

View File

@@ -1301,6 +1301,14 @@ void set_hdr_matrix(
adpscl_alpha[i] = 10 * in_luma *
(1 << adp_scal_shift) / out_luma;
if (hdr_mtx_param->p_sel & HDR_SDR) {
if (i == 0)
adpscl_shift[i] = adp_scal_shift;
else
adpscl_shift[i] = adp_scal_shift - 2;
} else
adpscl_shift[i] = adp_scal_shift;
adpscl_ys_coef[i] =
1 << adp_scal_shift;
adpscl_beta_s[i] = 0;