Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __DDP_COLOR_H__ |
2 | #define __DDP_COLOR_H__ | |
3 | ||
4 | #include "ddp_drv.h" | |
5 | ||
6 | #define CFG_MAIN (DISPSYS_COLOR_BASE+0x400) | |
7 | #define G_PIC_ADJ_MAIN_2 (DISPSYS_COLOR_BASE+0x438) | |
8 | #define DISP_COLOR_CK_ON (DISPSYS_COLOR_BASE+0xF28) | |
9 | ||
10 | #define LOCAL_HUE_CD_0 (DISPSYS_COLOR_BASE+0x620) | |
11 | ||
12 | #define PARTIAL_SAT_GAIN1_0 (DISPSYS_COLOR_BASE+0x7FC) | |
13 | #define PARTIAL_SAT_GAIN1_1 (DISPSYS_COLOR_BASE+0x800) | |
14 | #define PARTIAL_SAT_GAIN1_2 (DISPSYS_COLOR_BASE+0x804) | |
15 | #define PARTIAL_SAT_GAIN1_3 (DISPSYS_COLOR_BASE+0x808) | |
16 | #define PARTIAL_SAT_GAIN1_4 (DISPSYS_COLOR_BASE+0x80C) | |
17 | #define PARTIAL_SAT_GAIN2_0 (DISPSYS_COLOR_BASE+0x810) | |
18 | #define PARTIAL_SAT_GAIN2_1 (DISPSYS_COLOR_BASE+0x814) | |
19 | #define PARTIAL_SAT_GAIN2_2 (DISPSYS_COLOR_BASE+0x818) | |
20 | #define PARTIAL_SAT_GAIN2_3 (DISPSYS_COLOR_BASE+0x81C) | |
21 | #define PARTIAL_SAT_GAIN2_4 (DISPSYS_COLOR_BASE+0x820) | |
22 | #define PARTIAL_SAT_GAIN3_0 (DISPSYS_COLOR_BASE+0x824) | |
23 | #define PARTIAL_SAT_GAIN3_1 (DISPSYS_COLOR_BASE+0x828) | |
24 | #define PARTIAL_SAT_GAIN3_2 (DISPSYS_COLOR_BASE+0x82C) | |
25 | #define PARTIAL_SAT_GAIN3_3 (DISPSYS_COLOR_BASE+0x830) | |
26 | #define PARTIAL_SAT_GAIN3_4 (DISPSYS_COLOR_BASE+0x834) | |
27 | #define PARTIAL_SAT_POINT1_0 (DISPSYS_COLOR_BASE+0x838) | |
28 | #define PARTIAL_SAT_POINT1_1 (DISPSYS_COLOR_BASE+0x83C) | |
29 | #define PARTIAL_SAT_POINT1_2 (DISPSYS_COLOR_BASE+0x840) | |
30 | #define PARTIAL_SAT_POINT1_3 (DISPSYS_COLOR_BASE+0x844) | |
31 | #define PARTIAL_SAT_POINT1_4 (DISPSYS_COLOR_BASE+0x848) | |
32 | #define PARTIAL_SAT_POINT2_0 (DISPSYS_COLOR_BASE+0x84C) | |
33 | #define PARTIAL_SAT_POINT2_1 (DISPSYS_COLOR_BASE+0x850) | |
34 | #define PARTIAL_SAT_POINT2_2 (DISPSYS_COLOR_BASE+0x854) | |
35 | #define PARTIAL_SAT_POINT2_3 (DISPSYS_COLOR_BASE+0x858) | |
36 | #define PARTIAL_SAT_POINT2_4 (DISPSYS_COLOR_BASE+0x85C) | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | //--------------------------------------------------------------------------- | |
43 | #define GAMMA_SIZE 1024 | |
44 | ||
45 | #define PURP_TONE 0 | |
46 | #define SKIN_TONE 1 | |
47 | #define GRASS_TONE 2 | |
48 | #define SKY_TONE 3 | |
49 | ||
50 | #define PURP_TONE_START 0 | |
51 | #define PURP_TONE_END 2 | |
52 | #define SKIN_TONE_START 3 | |
53 | #define SKIN_TONE_END 10 | |
54 | #define GRASS_TONE_START 11 | |
55 | #define GRASS_TONE_END 16 | |
56 | #define SKY_TONE_START 17 | |
57 | #define SKY_TONE_END 19 | |
58 | ||
59 | #define SG1 0 | |
60 | #define SG2 1 | |
61 | #define SG3 2 | |
62 | #define SP1 3 | |
63 | #define SP2 4 | |
64 | ||
65 | ||
66 | ||
67 | //--------------------------------------------------------------------------- | |
68 | void DpEngine_COLORonConfig(unsigned int srcWidth,unsigned int srcHeight); | |
69 | void DpEngine_COLORonInit(void); | |
70 | ||
71 | ||
72 | //IOCTL , for AAL service to wait vsync and get latest histogram | |
73 | void disp_set_hist_readlock(unsigned long bLock); | |
74 | ||
75 | DISP_AAL_STATISTICS * disp_get_hist_ptr(void); | |
76 | ||
77 | ||
78 | int disp_get_hist(unsigned int * pHist); | |
79 | ||
80 | //Called by interrupt to refresh histogram | |
81 | void disp_update_hist(void); | |
82 | ||
83 | DISP_PQ_PARAM * get_Color_config(void); | |
84 | DISP_PQ_PARAM * get_Color_Cam_config(void); | |
85 | DISP_PQ_PARAM * get_Color_Gal_config(void); | |
86 | DISPLAY_PQ_T * get_Color_index(void); | |
87 | ||
88 | //Called by tasklet to config registers | |
89 | void disp_onConfig_luma(unsigned long *luma); | |
90 | ||
91 | void disp_color_set_window(unsigned int sat_upper, unsigned int sat_lower, | |
92 | unsigned int hue_upper, unsigned int hue_lower); | |
93 | ||
94 | #endif | |
95 |