.. | .. |
---|
882 | 882 | u32 fps; |
---|
883 | 883 | }; |
---|
884 | 884 | |
---|
| 885 | +struct csc_info { |
---|
| 886 | + u16 hue; |
---|
| 887 | + u16 saturation; |
---|
| 888 | + u16 contrast; |
---|
| 889 | + u16 brightness; |
---|
| 890 | + u16 r_gain; |
---|
| 891 | + u16 g_gain; |
---|
| 892 | + u16 b_gain; |
---|
| 893 | + u16 r_offset; |
---|
| 894 | + u16 g_offset; |
---|
| 895 | + u16 b_offset; |
---|
| 896 | + u16 csc_enable; |
---|
| 897 | +}; |
---|
| 898 | + |
---|
| 899 | + |
---|
| 900 | +#define ACM_GAIN_LUT_HY_LENGTH (9*17) |
---|
| 901 | +#define ACM_GAIN_LUT_HY_TOTAL_LENGTH (ACM_GAIN_LUT_HY_LENGTH * 3) |
---|
| 902 | +#define ACM_GAIN_LUT_HS_LENGTH (13*17) |
---|
| 903 | +#define ACM_GAIN_LUT_HS_TOTAL_LENGTH (ACM_GAIN_LUT_HS_LENGTH * 3) |
---|
| 904 | +#define ACM_DELTA_LUT_H_LENGTH 65 |
---|
| 905 | +#define ACM_DELTA_LUT_H_TOTAL_LENGTH (ACM_DELTA_LUT_H_LENGTH * 3) |
---|
| 906 | + |
---|
| 907 | +struct acm_data { |
---|
| 908 | + s16 delta_lut_h[ACM_DELTA_LUT_H_TOTAL_LENGTH]; |
---|
| 909 | + s16 gain_lut_hy[ACM_GAIN_LUT_HY_TOTAL_LENGTH]; |
---|
| 910 | + s16 gain_lut_hs[ACM_GAIN_LUT_HS_TOTAL_LENGTH]; |
---|
| 911 | + u16 y_gain; |
---|
| 912 | + u16 h_gain; |
---|
| 913 | + u16 s_gain; |
---|
| 914 | + u16 acm_enable; |
---|
| 915 | +}; |
---|
| 916 | + |
---|
885 | 917 | struct base2_disp_info { |
---|
886 | 918 | char disp_head_flag[6]; |
---|
887 | 919 | struct base2_screen_info screen_info[4]; |
---|
.. | .. |
---|
890 | 922 | struct base2_gamma_lut_data gamma_lut_data; |
---|
891 | 923 | struct base2_cubic_lut_data cubic_lut_data; |
---|
892 | 924 | struct framebuffer_info framebuffer_info; |
---|
893 | | - u32 reserved[244]; |
---|
| 925 | + u32 cacm_header; |
---|
| 926 | + u32 reserved[243]; |
---|
894 | 927 | u32 crc; |
---|
| 928 | + /* baseparameter version 3.0 add */ |
---|
| 929 | + struct csc_info csc_info; |
---|
| 930 | + struct acm_data acm_data; |
---|
| 931 | + u8 resv2[10*1024]; /* */ |
---|
| 932 | + u32 crc2; |
---|
| 933 | + /* baseparameter version 3.0 add */ |
---|
895 | 934 | }; |
---|
896 | 935 | |
---|
897 | 936 | struct base2_disp_header { |
---|