amvecm: malloc local contrast to enable lc function [1/1]

PD#SWPL-3419

Problem:
enable local contrast function

Solution:
enable local contrast function

Verify:
x301

Change-Id: I6a1daa7c82224956614b4da46078efdd66424b82
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
This commit is contained in:
Bencheng Jing
2018-12-20 14:52:26 +08:00
committed by Jianxin Pan
parent 7a2c0b0462
commit cc667d68df

View File

@@ -1098,9 +1098,6 @@ void lc_init(void)
h_num = 12;
v_num = 8;
if (!lc_en)
return;
lc_szcurve = kzalloc(580 * sizeof(int), GFP_KERNEL);
if (!lc_szcurve)
return;
@@ -1123,6 +1120,8 @@ void lc_init(void)
return;
}
lc_malloc_ok = 1;
if (!lc_en)
return;
lc_top_config(0, h_num, v_num, height, width);
lc_mtx_set(INP_MTX, LC_MTX_YUV709L_RGB, 1);
lc_mtx_set(OUTP_MTX, LC_MTX_RGB_YUV709L, 1);