blob: abf865dbe66c4663cc05060684511185e9da1e37
1 | #ifndef _C_VPP_H |
2 | #define _C_VPP_H |
3 | #include "amstream.h" |
4 | #include "cm.h" |
5 | #include "amvecm.h" |
6 | #include "pqdata.h" |
7 | #include "../tvin/CTvin.h" |
8 | #define GLOBAL_OGO_FORMAT_FLAG 0x6688 |
9 | #define DEFAULT_RANGE 0 |
10 | #define LIMIT_RANGE 1 |
11 | #define FULL_RANGE 2 |
12 | #define RGB_FORMAT 0 |
13 | #define YCbCr_422_FORMAT 1 |
14 | #define YCbCr_444_FORMAT 2 |
15 | #define PQ_USER_DATA_FROM_E2P 0 |
16 | #define PQ_USER_DATA_FROM_DB 1 |
17 | |
18 | #define VPP_DEV_PATH "/dev/amvecm" |
19 | #define VPP_3D_DEV_PATH "/dev/amvideo" |
20 | |
21 | #define MODE_VPP_3D_DISABLE 0x00000000 |
22 | #define MODE_VPP_3D_ENABLE 0x00000001 |
23 | #define MODE_VPP_3D_AUTO 0x00000002 |
24 | #define MODE_VPP_3D_LR 0x00000004 |
25 | #define MODE_VPP_3D_TB 0x00000008 |
26 | #define MODE_VPP_3D_LA 0x00000010 |
27 | #define MODE_VPP_3D_FA 0x00000020 |
28 | #define MODE_VPP_3D_LR_SWITCH 0x00000100 |
29 | #define MODE_VPP_3D_TO_2D_L 0x00000200 |
30 | #define MODE_VPP_3D_TO_2D_R 0x00000400 |
31 | |
32 | typedef union tag_suc { |
33 | short s; |
34 | unsigned char c[2]; |
35 | } SUC; |
36 | |
37 | typedef union tag_usuc { |
38 | unsigned short s; |
39 | unsigned char c[2]; |
40 | } USUC; |
41 | |
42 | typedef enum is_3d_type_e { |
43 | INDEX_3D_INVALID = -1, |
44 | INDEX_2D = 0, |
45 | INDEX_3D = 1, |
46 | } is_3d_type_t; |
47 | |
48 | typedef enum vpp_panorama_mode_e { |
49 | VPP_PANORAMA_MODE_FULL, |
50 | VPP_PANORAMA_MODE_NORMAL, |
51 | VPP_PANORAMA_MODE_MAX, |
52 | } vpp_panorama_mode_t; |
53 | |
54 | typedef enum vpp_color_space_type_e { |
55 | VPP_COLOR_SPACE_AUTO, |
56 | VPP_COLOR_SPACE_YUV, |
57 | VPP_COLOR_SPACE_RGB, |
58 | } vpp_color_space_type_t; |
59 | |
60 | typedef enum vpp_display_mode_e { |
61 | VPP_DISPLAY_MODE_169, |
62 | VPP_DISPLAY_MODE_PERSON, |
63 | VPP_DISPLAY_MODE_MOVIE, |
64 | VPP_DISPLAY_MODE_CAPTION, |
65 | VPP_DISPLAY_MODE_MODE43, |
66 | VPP_DISPLAY_MODE_FULL, |
67 | VPP_DISPLAY_MODE_NORMAL, |
68 | VPP_DISPLAY_MODE_NOSCALEUP, |
69 | VPP_DISPLAY_MODE_CROP_FULL, |
70 | VPP_DISPLAY_MODE_CROP, |
71 | VPP_DISPLAY_MODE_ZOOM, |
72 | VPP_DISPLAY_MODE_FULL_REAL,//add for N360 by haifeng.liu |
73 | VPP_DISPLAY_MODE_MAX, |
74 | } vpp_display_mode_t; |
75 | |
76 | typedef enum vpp_color_demomode_e { |
77 | VPP_COLOR_DEMO_MODE_ALLON, |
78 | VPP_COLOR_DEMO_MODE_YOFF, |
79 | VPP_COLOR_DEMO_MODE_COFF, |
80 | VPP_COLOR_DEMO_MODE_GOFF, |
81 | VPP_COLOR_DEMO_MODE_MOFF, |
82 | VPP_COLOR_DEMO_MODE_ROFF, |
83 | VPP_COLOR_DEMO_MODE_BOFF, |
84 | VPP_COLOR_DEMO_MODE_RGBOFF, |
85 | VPP_COLOR_DEMO_MODE_YMCOFF, |
86 | VPP_COLOR_DEMO_MODE_ALLOFF, |
87 | VPP_COLOR_DEMO_MODE_MAX, |
88 | } vpp_color_demomode_t; |
89 | |
90 | typedef enum vpp_color_basemode_e { |
91 | VPP_COLOR_BASE_MODE_OFF, |
92 | VPP_COLOR_BASE_MODE_OPTIMIZE, |
93 | VPP_COLOR_BASE_MODE_ENHANCE, |
94 | VPP_COLOR_BASE_MODE_DEMO, |
95 | VPP_COLOR_BASE_MODE_MAX, |
96 | } vpp_color_basemode_t; |
97 | |
98 | typedef enum vpp_color_management2_e { |
99 | VPP_COLOR_MANAGEMENT2_MODE_OFF, |
100 | VPP_COLOR_MANAGEMENT2_MODE_OPTIMIZE, |
101 | VPP_COLOR_MANAGEMENT2_MODE_ENHANCE, |
102 | VPP_COLOR_MANAGEMENT2_MODE_DEMO, |
103 | VPP_COLOR_MANAGEMENT2_MODE_MAX, |
104 | } vpp_color_management2_t; |
105 | |
106 | typedef enum vpp_noise_reduction2_mode_e { |
107 | VPP_NOISE_REDUCTION2_MODE_OFF, |
108 | VPP_NOISE_REDUCTION2_MODE_LOW, |
109 | VPP_NOISE_REDUCTION2_MODE_MID, |
110 | VPP_NOISE_REDUCTION2_MODE_HIGH, |
111 | VPP_NOISE_REDUCTION2_MODE_AUTO, |
112 | VPP_NOISE_REDUCTION2_MODE_MAX, |
113 | } vpp_noise_reduction2_mode_t; |
114 | typedef enum vpp_xvycc_mode_e { |
115 | VPP_XVYCC_MODE_OFF, |
116 | VPP_XVYCC_MODE_STANDARD, |
117 | VPP_XVYCC_MODE_ENHANCE, |
118 | VPP_XVYCC_MODE_MAX, |
119 | } vpp_xvycc_mode_t; |
120 | |
121 | typedef enum vpp_mcdi_mode_e { |
122 | VPP_MCDI_MODE_OFF, |
123 | VPP_MCDI_MODE_STANDARD, |
124 | VPP_MCDI_MODE_ENHANCE, |
125 | VPP_MCDI_MODE_MAX, |
126 | } vpp_mcdi_mode_t; |
127 | |
128 | typedef enum vpp_picture_mode_e { |
129 | VPP_PICTURE_MODE_STANDARD, |
130 | VPP_PICTURE_MODE_BRIGHT, |
131 | VPP_PICTURE_MODE_SOFT, |
132 | VPP_PICTURE_MODE_USER, |
133 | VPP_PICTURE_MODE_MOVIE, |
134 | VPP_PICTURE_MODE_COLORFUL, |
135 | VPP_PICTURE_MODE_MAX, |
136 | } vpp_picture_mode_t; |
137 | |
138 | typedef enum vpp_color_temperature_mode_e { |
139 | VPP_COLOR_TEMPERATURE_MODE_STANDARD, |
140 | VPP_COLOR_TEMPERATURE_MODE_WARM, |
141 | VPP_COLOR_TEMPERATURE_MODE_COLD, |
142 | VPP_COLOR_TEMPERATURE_MODE_USER, |
143 | VPP_COLOR_TEMPERATURE_MODE_MAX, |
144 | } vpp_color_temperature_mode_t; |
145 | |
146 | typedef enum vpp_noise_reduction_mode_e { |
147 | VPP_NOISE_REDUCTION_MODE_OFF, |
148 | VPP_NOISE_REDUCTION_MODE_LOW, |
149 | VPP_NOISE_REDUCTION_MODE_MID, |
150 | VPP_NOISE_REDUCTION_MODE_HIGH, |
151 | VPP_NOISE_REDUCTION_MODE_AUTO, |
152 | VPP_NOISE_REDUCTION_MODE_MAX, |
153 | } vpp_noise_reduction_mode_t; |
154 | |
155 | typedef enum vpp_test_pattern_e { |
156 | VPP_TEST_PATTERN_NONE, |
157 | VPP_TEST_PATTERN_RED, |
158 | VPP_TEST_PATTERN_GREEN, |
159 | VPP_TEST_PATTERN_BLUE, |
160 | VPP_TEST_PATTERN_WHITE, |
161 | VPP_TEST_PATTERN_BLACK, |
162 | VPP_TEST_PATTERN_MAX, |
163 | } vpp_test_pattern_e; |
164 | |
165 | typedef struct vpp_pq_para_s { |
166 | int brightness; |
167 | int contrast; |
168 | int saturation; |
169 | int hue; |
170 | int sharpness; |
171 | int backlight; |
172 | int nr; |
173 | } vpp_pq_para_t; |
174 | |
175 | typedef enum noline_params_type_e { |
176 | NOLINE_PARAMS_TYPE_BRIGHTNESS, |
177 | NOLINE_PARAMS_TYPE_CONTRAST, |
178 | NOLINE_PARAMS_TYPE_SATURATION, |
179 | NOLINE_PARAMS_TYPE_HUE, |
180 | NOLINE_PARAMS_TYPE_SHARPNESS, |
181 | NOLINE_PARAMS_TYPE_VOLUME, |
182 | NOLINE_PARAMS_TYPE_BACKLIGHT, |
183 | NOLINE_PARAMS_TYPE_MAX, |
184 | } noline_params_type_t; |
185 | |
186 | typedef struct noline_params_s { |
187 | int osd0; |
188 | int osd25; |
189 | int osd50; |
190 | int osd75; |
191 | int osd100; |
192 | } noline_params_t; |
193 | |
194 | typedef enum vpp_dream_panel_e { |
195 | VPP_DREAM_PANEL_OFF, |
196 | VPP_DREAM_PANEL_LIGHT, |
197 | VPP_DREAM_PANEL_SCENE, |
198 | VPP_DREAM_PANEL_FULL, |
199 | VPP_DREAM_PANEL_DEMO, |
200 | VPP_DREAM_PANEL_MAX, |
201 | } vpp_dream_panel_t; |
202 | |
203 | class CPqData; |
204 | |
205 | class CVpp |
206 | { |
207 | public: |
208 | CVpp(); |
209 | ~CVpp(); |
210 | int Vpp_Init ( void ); |
211 | int Vpp_Uninit ( void ); |
212 | CPqData *getPqData(); |
213 | int Vpp_ResetLastVppSettingsSourceType ( void ); |
214 | int Vpp_SetColorDemoMode ( vpp_color_demomode_t demomode ); |
215 | int Vpp_SetBaseColorMode ( vpp_color_basemode_t basemode , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
216 | int Vpp_SetColorTemperatureUser ( vpp_color_temperature_mode_t temp_mode, tv_source_input_type_t source_type ); |
217 | int Vpp_SetColorTemperature ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type, tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt); |
218 | int Vpp_SetBrightness ( int value, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
219 | int Vpp_SetContrast ( int value, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
220 | int Vpp_SetSaturation ( int value, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
221 | int Vpp_SetHue ( int value, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_port_t source_port, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
222 | int Vpp_SetSharpness ( int value, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
223 | int Vpp_SetPQMode ( vpp_picture_mode_t pq_mode, tv_source_input_type_t source_type, tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
224 | int Vpp_SetNoiseReductionMode ( vpp_noise_reduction_mode_t nr_mode, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
225 | int Vpp_SetXVYCCMode ( vpp_xvycc_mode_t xvycc_mode, tv_source_input_type_t source_type, tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
226 | int Vpp_SetMCDIMode ( vpp_mcdi_mode_t mcdi_mode, tv_source_input_type_t source_type , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
227 | int Vpp_SetZoom ( int value ); |
228 | int Vpp_LoadBasicRegs ( tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
229 | int VppRegisterInterface(); |
230 | int Tv_RGBGainValueSSMToRisterMapping ( int gainValue ); |
231 | int Tv_RGBOffsetValueSSMToRisterMapping ( int gainValue ); |
232 | int Tv_SetRGBValue ( vpp_color_temperature_mode_t temp_mode, unsigned char data_buf[] ); |
233 | int Tv_GetRGBValue ( vpp_color_temperature_mode_t temp_mode, tcon_rgb_ogo_t *p_rgbogo ); |
234 | int Tv_SetColorSpaceMode ( vpp_color_space_type_t colorSpace ); |
235 | //int Tv_SetGammaValue(int gammaValue); |
236 | int Tv_GetGammaValue(); |
237 | //int Tv_SetColorDemoMode ( vpp_color_demomode_t demomode ); |
238 | vpp_color_demomode_t Tv_GetColorDemoMode ( void ); |
239 | |
240 | int Tv_SetBaseColorMode ( vpp_color_basemode_t basemode , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
241 | vpp_color_basemode_t Tv_GetBaseColorMode ( void ); |
242 | int Tv_SetBaseColorModeWithoutSave ( vpp_color_basemode_t basemode , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
243 | int Tv_SaveBaseColorMode ( vpp_color_basemode_t basemode ); |
244 | int Tv_SetColorTemperature ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type, int is_save ); |
245 | vpp_color_temperature_mode_t Tv_GetColorTemperature ( tv_source_input_type_t source_type ); |
246 | int Tv_SetColorTempWithoutSave ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type ); |
247 | int Tv_SaveColorTemp ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type ); |
248 | int Tv_SetBrightness ( int value, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, is_3d_type_t is3d, int is_save ); |
249 | int Tv_GetBrightness ( tv_source_input_type_t source_type ); |
250 | int Tv_SetContrast ( int value, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, is_3d_type_t is3d, int is_save ); |
251 | int Tv_GetContrast ( tv_source_input_type_t source_type ); |
252 | int Tv_SetSaturation ( int value, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, is_3d_type_t is3d, int is_save ); |
253 | int Tv_GetSaturation ( tv_source_input_type_t source_type ); |
254 | int Tv_SetHue ( int value, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, is_3d_type_t is3d, int is_save ); |
255 | int Tv_GetHue ( tv_source_input_type_t source_type ); |
256 | int Tv_SetSharpness ( int value, tv_source_input_type_t source_type, int is_enable, is_3d_type_t is3d, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, int is_save ); |
257 | int Tv_GetSharpness ( tv_source_input_type_t source_type ); |
258 | int Tv_SetBacklight ( int value, tv_source_input_type_t source_type, int is_save ); |
259 | int Tv_GetBacklight ( tv_source_input_type_t source_type ); |
260 | int Tv_SetBacklightWithoutSave ( int value, tv_source_input_type_t source_type ); |
261 | int Tv_SaveBacklight ( int value, tv_source_input_type_t source_type ); |
262 | int Tv_SetPQMode ( vpp_picture_mode_t pq_mode, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt, is_3d_type_t is3d, int is_save ); |
263 | vpp_picture_mode_t Tv_GetPQMode ( tv_source_input_type_t source_type ); |
264 | int Tv_SavePQMode ( vpp_picture_mode_t pq_mode, tv_source_input_type_t source_type ); |
265 | int Tv_SetDisplayMode ( vpp_display_mode_t display_mode, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, int is_save ); |
266 | vpp_display_mode_t Tv_GetDisplayMode ( tv_source_input_type_t source_type ); |
267 | int Tv_SaveNoiseReductionMode ( vpp_noise_reduction_mode_t nr_mode, tv_source_input_type_t source_type ); |
268 | int Tv_SetNoiseReductionMode ( vpp_noise_reduction_mode_t nr_mode, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt, int is_save ); |
269 | vpp_noise_reduction_mode_t Tv_GetNoiseReductionMode ( tv_source_input_type_t source_type ); |
270 | int Tv_SetRGBOGO_PostOffset(int rgb, int offset); |
271 | int Tv_SetRGBOGO_Gain(int rgb, int gain); |
272 | int Tv_GetRGBOGO_PostOffset ( int rgb ); |
273 | int Tv_GetRGBOGO_Gain( int rgb ); |
274 | int Tv_SetDNLP ( tv_source_input_type_t source_type, tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
275 | int Tv_LoadVppSettings ( tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
276 | //int Tv_SetVppParamDefault(void); |
277 | |
278 | |
279 | int Tv_FactorySetPQMode_Brightness ( int source_type, int pq_mode, int brightness ); |
280 | int Tv_FactoryGetPQMode_Brightness ( int source_type, int pq_mode ); |
281 | int Tv_FactorySetPQMode_Contrast ( int source_type, int pq_mode, int contrast ); |
282 | int Tv_FactoryGetPQMode_Contrast ( int source_type, int pq_mode ); |
283 | int Tv_FactorySetPQMode_Saturation ( int source_type, int pq_mode, int saturation ); |
284 | int Tv_FactoryGetPQMode_Saturation ( int source_type, int pq_mode ); |
285 | int Tv_FactorySetPQMode_Hue ( int source_type, int pq_mode, int hue ); |
286 | int Tv_FactoryGetPQMode_Hue ( int source_type, int pq_mode ); |
287 | int Tv_FactorySetPQMode_Sharpness ( int source_type, int pq_mode, int sharpness ); |
288 | int Tv_FactoryGetPQMode_Sharpness ( int source_type, int pq_mode ); |
289 | int Tv_FactorySetColorTemp_Rgain ( int source_type, int colortemp_mode, int rgain ); |
290 | int Tv_FactorySaveColorTemp_Rgain ( int source_type, int colortemp_mode, int rgain ); |
291 | int Tv_FactoryGetColorTemp_Rgain ( int source_type, int colortemp_mode ); |
292 | int Tv_FactorySetColorTemp_Ggain ( int source_type, int colortemp_mode, int ggain ); |
293 | int Tv_FactorySaveColorTemp_Ggain ( int source_type, int colortemp_mode, int ggain ); |
294 | int Tv_FactoryGetColorTemp_Ggain ( int source_type, int colortemp_mode ); |
295 | int Tv_FactorySetColorTemp_Bgain ( int source_type, int colortemp_mode, int bgain ); |
296 | int Tv_FactorySaveColorTemp_Bgain ( int source_type, int colortemp_mode, int bgain ); |
297 | int Tv_FactoryGetColorTemp_Bgain ( int source_type, int colortemp_mode ); |
298 | int Tv_FactorySetColorTemp_Roffset ( int source_type, int colortemp_mode, int roffset ); |
299 | int Tv_FactorySaveColorTemp_Roffset ( int source_type, int colortemp_mode, int roffset ); |
300 | int Tv_FactoryGetColorTemp_Roffset ( int source_type, int colortemp_mode ); |
301 | int Tv_FactorySetColorTemp_Goffset ( int source_type, int colortemp_mode, int goffset ); |
302 | int Tv_FactorySaveColorTemp_Goffset ( int source_type, int colortemp_mode, int goffset ); |
303 | int Tv_FactoryGetColorTemp_Goffset ( int source_type, int colortemp_mode ); |
304 | int Tv_FactorySetColorTemp_Boffset ( int source_type, int colortemp_mode, int boffset ); |
305 | int Tv_FactorySaveColorTemp_Boffset ( int source_type, int colortemp_mode, int boffset ); |
306 | int Tv_FactoryGetColorTemp_Boffset ( int source_type, int colortemp_mode ); |
307 | //int Tv_FactorySaveRGBDatatoAllSrc ( int source_type, int colortemp_mode ); |
308 | int Tv_FactoryGetTestPattern ( void ); |
309 | int Tv_FactoryResetPQMode ( void ); |
310 | int TV_FactoryResetNonlinear ( void ); |
311 | int Tv_FactoryResetColorTemp ( void ); |
312 | int Tv_FactorySetParamsDefault ( void ); |
313 | int Tv_FactorySetDDRSSC ( int step ); |
314 | int Tv_FactoryGetDDRSSC(); |
315 | int Tv_FactorySetLVDSSSC ( int step ); |
316 | int Tv_FactoryGetLVDSSSC(); |
317 | int Tv_FactorySetNolineParams ( int type, int source_type, noline_params_t noline_params ); |
318 | noline_params_t Tv_FactoryGetNolineParams ( int type, int source_type ); |
319 | int Tv_FactorySetOverscan ( int source_type, int fmt, int status_3d, int trans_fmt, tvin_cutwin_t cutwin_t ); |
320 | tvin_cutwin_t Tv_FactoryGetOverscan ( int source_type, int fmt, is_3d_type_t is3d, int trans_fmt ); |
321 | int Tv_FactorySetBacklightPWM_Frequency(int freq); |
322 | int Tv_FactoryGetBacklightPWM_Frequency ( void ); |
323 | int Tv_FactorySetBacklight_Switch_status ( int status ); |
324 | int Tv_FactoryGetBacklight_Switch_status ( void ); |
325 | int Tv_FactorySetBacklightPWM_Duty ( int duty ); |
326 | int Tv_FactoryGetBacklightPWM_Duty ( void ); |
327 | int Tv_FactorySetLVDS_ColorDepth ( int depth ); |
328 | int Tv_FactoryGetLVDS_ColorDepth ( void ); |
329 | int Tv_FactorySetLVDS_ColorDither_status ( int status ); |
330 | int Tv_FactoryGetLVDS_ColorDither_status ( void ); |
331 | int Tv_FactorySetLVDS_Mapping_status ( int status ); |
332 | int Tv_FactoryGetLVDS_Mapping_status ( void ); |
333 | int Tv_FactorySetLVDS_PortSwap_status ( int status ); |
334 | int Tv_FactoryGetLVDS_PortSwap_status ( void ); |
335 | |
336 | int VPPSSMRestoreDefault(); |
337 | int VPPSSMFacRestoreDefault(); |
338 | |
339 | |
340 | int Tv_GetHistogram_AVE(); |
341 | int Tv_SetDnlp_OFF(); |
342 | int Tv_SetDnlp_ON ( void ); |
343 | int Tv_GetDnlp_Status(); |
344 | |
345 | int GetColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t *params ); |
346 | int ReadColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t *params ); |
347 | int SetColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t params ); |
348 | int SaveColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t params ); |
349 | unsigned short CalColorTemperatureParamsChecksum ( void ); |
350 | int SetColorTempParamsChecksum ( void ); |
351 | unsigned short GetColorTempParamsChecksum ( void ); |
352 | int CheckTempDataLable ( void ); |
353 | int SetTempDataLable ( void ); |
354 | int CheckColorTemperatureParams ( void ); |
355 | int RestoeColorTemperatureParamsFromDB ( tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt ); |
356 | int CheckColorTemperatureParamAlldata ( tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt ); |
357 | void Tvin_SetVideoScreenColorType ( int type ); |
358 | int Vpp_GetVppConfig(); |
359 | int Vpp_GetPQModeValue ( tv_source_input_type_t, vpp_picture_mode_t, vpp_pq_para_t * ); |
360 | int Vpp_SetPQParams ( tv_source_input_type_t source_type, vpp_picture_mode_t pq_mode, vpp_pq_para_t pq_para , tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
361 | |
362 | int Vpp_LoadGammaDefault ( tv_source_input_type_t, tvin_sig_fmt_t ); |
363 | int Vpp_LoadGammaSpecial ( int ); |
364 | int Vpp_LoadGamma ( tv_source_input_type_t, tvin_sig_fmt_t ); |
365 | int Tv_FactoryResetNonlinear(); |
366 | tvin_cutwin_t Tv_GetOverscan ( tv_source_input_type_t source_type, tvin_sig_fmt_t fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
367 | static is_3d_type_t Check2Dor3D ( is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
368 | //api |
369 | int VPP_SetVEBlackExtension ( const struct ve_bext_s *pBExt ); |
370 | int VPP_SetVideoCrop ( int Voffset0, int Hoffset0, int Voffset1, int Hoffset1 ); |
371 | int VPP_SetNonLinearFactor ( int value ); |
372 | int VPP_SetGrayPattern(int value); |
373 | int VPP_GetGrayPattern(); |
374 | private: |
375 | // |
376 | int VPP_OpenModule ( void ); |
377 | int VPP_CloseModule ( void ); |
378 | int VPP_SetVideoBrightness ( int value ); |
379 | int VPP_SetVideoContrast ( int value ); |
380 | int VPP_SetVideoSaturationHue ( int satVal, int hueVal ); |
381 | int VPP_SetCMRegisterMap ( struct cm_regmap_s *pRegMap ); |
382 | int Vpp_LoadRegs ( am_regs_t regs ); |
383 | int VPP_SetRGBOGO ( const struct tcon_rgb_ogo_s *rgbogo ); |
384 | int VPP_GetRGBOGO ( const struct tcon_rgb_ogo_s *rgbogo ); |
385 | int VPP_SetGammaOnOff ( unsigned char onoff ); |
386 | int VPP_SetGammaTbl_R ( unsigned short red[256] ); |
387 | int VPP_SetGammaTbl_G ( unsigned short green[256] ); |
388 | int VPP_SetGammaTbl_B ( unsigned short blue[256] ); |
389 | void video_set_saturation_hue ( signed char saturation, signed char hue, signed long *mab ); |
390 | void video_get_saturation_hue ( signed char *sat, signed char *hue, signed long *mab ); |
391 | int VPP_SetBackLightLevel ( int value ); |
392 | int VPP_SetVEDNLP ( const struct ve_dnlp_s *pDNLP ); |
393 | int VPP_SetVENewDNLP ( const ve_dnlp_table_t *pDNLP ); |
394 | int Vpp_GetAVGHistogram ( struct ve_hist_s *hist ); |
395 | int Vpp_SetDnlpOff ( void ); |
396 | int Vpp_SetDnlpOn ( void ); |
397 | int VPP_SetVESharpness ( const ve_hsvs_s * ); |
398 | int VPP_SetVEChromaCoring ( const ve_ccor_s * ); |
399 | int VPP_SetVEBlueEnh ( const ve_benh_s * ); |
400 | int VPP_SetVEDemo ( const ve_demo_s * ); |
401 | int VPP_SetVERegisterMap ( const ve_regmap_s * ); |
402 | int VPP_SetVEDebug ( const long long unsigned int * ); |
403 | int VPP_SetCMRegion ( const cm_region_s * ); |
404 | int VPP_SetCMTopLayer ( const cm_top_s * ); |
405 | int VPP_SetCMDemo ( const cm_demo_s * ); |
406 | |
407 | int VPP_DeviceIOCtl ( int request, ... ); |
408 | int VPP3D_DeviceIOCtl ( int, ... ); |
409 | int VPP_SetCMDebug ( const long long unsigned int * ); |
410 | int VPP_SetAVSyncEnable ( unsigned int ); |
411 | int VPP_SetVideoNoiseReduction ( int ); |
412 | int VPP_SetVideoSaturation ( int ); |
413 | int VPP_SetVideoHue ( int ); |
414 | int VPP_SetDeinterlaceMode ( int ); |
415 | |
416 | |
417 | tv_source_input_type_t vpp_setting_last_source_type; |
418 | tvin_sig_fmt_t vpp_setting_last_sig_fmt; |
419 | tvin_trans_fmt_t vpp_setting_last_trans_fmt; |
420 | //cfg |
421 | bool mbVppCfg_backlight_reverse; |
422 | bool mbVppCfg_backlight_init; |
423 | bool mbVppCfg_pqmode_without_hue; |
424 | bool mbVppCfg_hue_reverse; |
425 | bool mbVppCfg_gamma_onoff; |
426 | bool mbVppCfg_whitebalance_sameparam; |
427 | bool mbVppCfg_new_cm; |
428 | bool mbVppCfg_new_nr; |
429 | bool mbVppCfg_panorama_switch; |
430 | bool mbVppCfg_pqmode_depend_bklight; |
431 | bool mbVppCfg_colortemp_by_source; |
432 | |
433 | CPqData *mpPqData; |
434 | |
435 | int vpp_amvideo_fd; |
436 | int vpp_amvideo_3d_fd; |
437 | }; |
438 | #endif |
439 |