.. | .. |
---|
8 | 8 | #ifndef EPD_LUT_H |
---|
9 | 9 | #define EPD_LUT_H |
---|
10 | 10 | |
---|
11 | | -#define WF_4BIT 16 |
---|
12 | | -#define WF_5BIT 32 |
---|
13 | | - |
---|
14 | | -// same to pvi_wf_mode |
---|
15 | 11 | enum epd_lut_type { |
---|
16 | | - WF_TYPE_RESET = 0, |
---|
17 | | - WF_TYPE_GRAY2, // like DU |
---|
18 | | - WF_TYPE_GRAY4, // like DU4 |
---|
19 | | - WF_TYPE_GC16, |
---|
20 | | - WF_TYPE_GL16, |
---|
21 | | - WF_TYPE_GLR16, |
---|
22 | | - WF_TYPE_GLD16, |
---|
23 | | - WF_TYPE_A2, |
---|
24 | | - WF_TYPE_GCC16, |
---|
25 | | - PVI_WF_MAX, |
---|
| 12 | + WF_TYPE_RESET = 1, |
---|
| 13 | + WF_TYPE_GRAY16 = 2, |
---|
| 14 | + WF_TYPE_GRAY4 = 3, |
---|
| 15 | + WF_TYPE_GRAY2 = 4, |
---|
| 16 | + WF_TYPE_AUTO = 5, |
---|
| 17 | + WF_TYPE_A2 = 6, |
---|
| 18 | + WF_TYPE_GC16 = 7, |
---|
| 19 | + WF_TYPE_GL16 = 8, |
---|
| 20 | + WF_TYPE_GLR16 = 9, |
---|
| 21 | + WF_TYPE_GLD16 = 10, |
---|
| 22 | + WF_TYPE_GCC16 = 11, |
---|
| 23 | + WF_TYPE_MAX = 12, |
---|
| 24 | +}; |
---|
26 | 25 | |
---|
27 | | - WF_TYPE_AUTO, // like GC16, rk define |
---|
28 | | - WF_TYPE_MAX, |
---|
29 | | - WF_TYPE_GRAY16, |
---|
| 26 | +enum pvi_wf_mode { |
---|
| 27 | + PVI_WF_RESET = 0, |
---|
| 28 | + PVI_WF_DU = 1, |
---|
| 29 | + PVI_WF_DU4 = 2, |
---|
| 30 | + PVI_WF_GC16 = 3, |
---|
| 31 | + PVI_WF_GL16 = 4, |
---|
| 32 | + PVI_WF_GLR16 = 5, |
---|
| 33 | + PVI_WF_GLD16 = 6, |
---|
| 34 | + PVI_WF_A2 = 7, |
---|
| 35 | + PVI_WF_GCC16 = 8, |
---|
| 36 | + PVI_WF_MAX, |
---|
30 | 37 | }; |
---|
31 | 38 | |
---|
32 | 39 | struct epd_lut_data { |
---|
33 | 40 | unsigned int frame_num; |
---|
34 | 41 | unsigned int *data; |
---|
35 | | - u8 *wf_table[2]; |
---|
| 42 | + u8 *wf_table; |
---|
36 | 43 | }; |
---|
37 | 44 | |
---|
38 | 45 | /* |
---|
.. | .. |
---|
41 | 48 | int epd_lut_from_mem_init(void *waveform); |
---|
42 | 49 | int epd_lut_from_file_init(struct device *dev, void *waveform, int size); |
---|
43 | 50 | const char *epd_lut_get_wf_version(void); |
---|
44 | | -int epd_lut_get(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture, int pic); |
---|
45 | | - |
---|
46 | | -//you can change overlay lut mode here |
---|
47 | | -int epd_overlay_lut(void); |
---|
| 51 | +int epd_lut_get(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture); |
---|
48 | 52 | |
---|
49 | 53 | /* |
---|
50 | 54 | * PVI Waveform Interfaces |
---|
51 | 55 | */ |
---|
52 | 56 | int pvi_wf_input(void *waveform_file); |
---|
53 | 57 | const char *pvi_wf_get_version(void); |
---|
54 | | -int pvi_wf_get_lut(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture, int pic); |
---|
| 58 | +int pvi_wf_get_lut(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture); |
---|
55 | 59 | |
---|
56 | 60 | /* |
---|
57 | 61 | * RKF Waveform Interfaces |
---|
58 | 62 | */ |
---|
59 | 63 | int rkf_wf_input(void *waveform_file); |
---|
60 | 64 | const char *rkf_wf_get_version(void); |
---|
61 | | -int rkf_wf_get_lut(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture, int pic); |
---|
| 65 | +int rkf_wf_get_lut(struct epd_lut_data *output, enum epd_lut_type lut_type, int temperture); |
---|
62 | 66 | #endif |
---|