Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _VPP_INC_H_ |
| 7 | #define _VPP_INC_H_ |
| 8 | |
| 9 | extern void vpp_init(void); |
| 10 | void vpp_pq_init(int brightness, int contrast, int sat, int hue); |
| 11 | void vpp_pq_load(void); |
| 12 | |
| 13 | #define VPP_CM_RGB 0 /* same as COLOR_FMT_RGB444*/ |
| 14 | #define VPP_CM_YUV 2 /* same as COLOR_FMT_YUV444*/ |
| 15 | |
| 16 | enum vpp_gamma_sel_e { |
| 17 | VPP_GAMMA_R = 0, |
| 18 | VPP_GAMMA_G, |
| 19 | VPP_GAMMA_B |
| 20 | }; |
| 21 | |
hai.cao | c901c03 | 2024-12-06 11:08:56 +0800 | [diff] [blame^] | 22 | void set_vpp_mute(void); |
| 23 | void set_vpp_unmute(void); |
Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame] | 24 | extern void vpp_load_gamma_table(unsigned short *data, unsigned int len, enum vpp_gamma_sel_e flag); |
| 25 | extern void vpp_init_lcd_gamma_table(int index); |
| 26 | void vpp_enable_lcd_gamma_table(int index); |
| 27 | void vpp_disable_lcd_gamma_table(int index); |
| 28 | |
| 29 | extern void vpp_matrix_update(int type); |
| 30 | extern void vpp_viu2_matrix_update(int type); |
| 31 | void vpp_viu3_matrix_update(int type); |
| 32 | extern void hdr_tx_pkt_cb(void); |
| 33 | |
| 34 | #endif |