blob: 705fd6dffe2bd975e5fda4c0f3ac0a576ae67849 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef _VPP_INC_H_
#define _VPP_INC_H_
extern void vpp_init(void);
void vpp_pq_init(int brightness, int contrast, int sat, int hue);
void vpp_pq_load(void);
#define VPP_CM_RGB 0 /* same as COLOR_FMT_RGB444*/
#define VPP_CM_YUV 2 /* same as COLOR_FMT_YUV444*/
enum vpp_gamma_sel_e {
VPP_GAMMA_R = 0,
VPP_GAMMA_G,
VPP_GAMMA_B
};
extern void vpp_load_gamma_table(unsigned short *data, unsigned int len, enum vpp_gamma_sel_e flag);
extern void vpp_init_lcd_gamma_table(int index);
void vpp_enable_lcd_gamma_table(int index);
void vpp_disable_lcd_gamma_table(int index);
extern void vpp_matrix_update(int type);
extern void vpp_viu2_matrix_update(int type);
extern void hdr_tx_pkt_cb(void);
#endif