huangcm
2025-07-03 c26084b3642f262f858535ab4e46c1e9b520d3a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Allwinner SoCs display driver.
 *
 * Copyright (C) 2016 Allwinner.
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */
 
#ifndef __DE_CSC_H__
#define __DE_CSC_H__
 
#include "de_rtmx.h"
 
int de_dcsc_apply(unsigned int sel, struct disp_csc_config *config);
int de_dcsc_init(struct disp_bsp_init_para *para);
int de_dcsc_exit(void);
int de_dcsc_update_regs(unsigned int sel);
int de_dcsc_get_config(unsigned int sel, struct disp_csc_config *config);
 
int de_ccsc_apply(unsigned int sel, unsigned int ch_id,
         struct disp_csc_config *config);
int de_ccsc_update_regs(unsigned int sel);
int de_ccsc_init(struct disp_bsp_init_para *para);
int de_ccsc_exit(void);
int de_csc_coeff_calc(unsigned int infmt, unsigned int incscmod,
             unsigned int outfmt, unsigned int outcscmod,
             unsigned int brightness, unsigned int contrast,
             unsigned int saturation, unsigned int hue,
             unsigned int out_color_range, int *csc_coeff);
 
#endif