blob: 2131815770c5dd6e30cb3d48861a58656fec04a1
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_deblock_mode_e { |
49 | VPP_DEBLOCK_MODE_OFF, |
50 | VPP_DEBLOCK_MODE_LOW, |
51 | VPP_DEBLOCK_MODE_MIDDLE, |
52 | VPP_DEBLOCK_MODE_HIGH, |
53 | VPP_DEBLOCK_MODE_AUTO, |
54 | } vpp_deblock_mode_t; |
55 | |
56 | typedef enum vpp_panorama_mode_e { |
57 | VPP_PANORAMA_MODE_FULL, |
58 | VPP_PANORAMA_MODE_NORMAL, |
59 | VPP_PANORAMA_MODE_MAX, |
60 | } vpp_panorama_mode_t; |
61 | |
62 | typedef enum vpp_color_space_type_e { |
63 | VPP_COLOR_SPACE_AUTO, |
64 | VPP_COLOR_SPACE_YUV, |
65 | VPP_COLOR_SPACE_RGB, |
66 | } vpp_color_space_type_t; |
67 | |
68 | typedef enum vpp_display_mode_e { |
69 | VPP_DISPLAY_MODE_169, |
70 | VPP_DISPLAY_MODE_PERSON, |
71 | VPP_DISPLAY_MODE_MOVIE, |
72 | VPP_DISPLAY_MODE_CAPTION, |
73 | VPP_DISPLAY_MODE_MODE43, |
74 | VPP_DISPLAY_MODE_FULL, |
75 | VPP_DISPLAY_MODE_NORMAL, |
76 | VPP_DISPLAY_MODE_NOSCALEUP, |
77 | VPP_DISPLAY_MODE_CROP_FULL, |
78 | VPP_DISPLAY_MODE_CROP, |
79 | VPP_DISPLAY_MODE_ZOOM, |
80 | VPP_DISPLAY_MODE_FULL_REAL,//add for N360 by haifeng.liu |
81 | VPP_DISPLAY_MODE_MAX, |
82 | } vpp_display_mode_t; |
83 | |
84 | typedef enum vpp_color_demomode_e { |
85 | VPP_COLOR_DEMO_MODE_ALLON, |
86 | VPP_COLOR_DEMO_MODE_YOFF, |
87 | VPP_COLOR_DEMO_MODE_COFF, |
88 | VPP_COLOR_DEMO_MODE_GOFF, |
89 | VPP_COLOR_DEMO_MODE_MOFF, |
90 | VPP_COLOR_DEMO_MODE_ROFF, |
91 | VPP_COLOR_DEMO_MODE_BOFF, |
92 | VPP_COLOR_DEMO_MODE_RGBOFF, |
93 | VPP_COLOR_DEMO_MODE_YMCOFF, |
94 | VPP_COLOR_DEMO_MODE_ALLOFF, |
95 | VPP_COLOR_DEMO_MODE_MAX, |
96 | } vpp_color_demomode_t; |
97 | |
98 | typedef enum vpp_color_basemode_e { |
99 | VPP_COLOR_BASE_MODE_OFF, |
100 | VPP_COLOR_BASE_MODE_OPTIMIZE, |
101 | VPP_COLOR_BASE_MODE_ENHANCE, |
102 | VPP_COLOR_BASE_MODE_DEMO, |
103 | VPP_COLOR_BASE_MODE_MAX, |
104 | } vpp_color_basemode_t; |
105 | |
106 | typedef enum vpp_color_management2_e { |
107 | VPP_COLOR_MANAGEMENT2_MODE_OFF, |
108 | VPP_COLOR_MANAGEMENT2_MODE_OPTIMIZE, |
109 | VPP_COLOR_MANAGEMENT2_MODE_ENHANCE, |
110 | VPP_COLOR_MANAGEMENT2_MODE_DEMO, |
111 | VPP_COLOR_MANAGEMENT2_MODE_MAX, |
112 | } vpp_color_management2_t; |
113 | |
114 | typedef enum vpp_noise_reduction2_mode_e { |
115 | VPP_NOISE_REDUCTION2_MODE_OFF, |
116 | VPP_NOISE_REDUCTION2_MODE_LOW, |
117 | VPP_NOISE_REDUCTION2_MODE_MID, |
118 | VPP_NOISE_REDUCTION2_MODE_HIGH, |
119 | VPP_NOISE_REDUCTION2_MODE_AUTO, |
120 | VPP_NOISE_REDUCTION2_MODE_MAX, |
121 | } vpp_noise_reduction2_mode_t; |
122 | typedef enum vpp_xvycc_mode_e { |
123 | VPP_XVYCC_MODE_OFF, |
124 | VPP_XVYCC_MODE_STANDARD, |
125 | VPP_XVYCC_MODE_ENHANCE, |
126 | VPP_XVYCC_MODE_MAX, |
127 | } vpp_xvycc_mode_t; |
128 | |
129 | typedef enum vpp_mcdi_mode_e { |
130 | VPP_MCDI_MODE_OFF, |
131 | VPP_MCDI_MODE_STANDARD, |
132 | VPP_MCDI_MODE_ENHANCE, |
133 | VPP_MCDI_MODE_MAX, |
134 | } vpp_mcdi_mode_t; |
135 | |
136 | typedef enum vpp_picture_mode_e { |
137 | VPP_PICTURE_MODE_STANDARD, |
138 | VPP_PICTURE_MODE_BRIGHT, |
139 | VPP_PICTURE_MODE_SOFT, |
140 | VPP_PICTURE_MODE_USER, |
141 | VPP_PICTURE_MODE_MOVIE, |
142 | VPP_PICTURE_MODE_COLORFUL, |
143 | VPP_PICTURE_MODE_MAX, |
144 | } vpp_picture_mode_t; |
145 | |
146 | typedef enum vpp_color_temperature_mode_e { |
147 | VPP_COLOR_TEMPERATURE_MODE_STANDARD, |
148 | VPP_COLOR_TEMPERATURE_MODE_WARM, |
149 | VPP_COLOR_TEMPERATURE_MODE_COLD, |
150 | VPP_COLOR_TEMPERATURE_MODE_USER, |
151 | VPP_COLOR_TEMPERATURE_MODE_MAX, |
152 | } vpp_color_temperature_mode_t; |
153 | |
154 | typedef enum vpp_noise_reduction_mode_e { |
155 | VPP_NOISE_REDUCTION_MODE_OFF, |
156 | VPP_NOISE_REDUCTION_MODE_LOW, |
157 | VPP_NOISE_REDUCTION_MODE_MID, |
158 | VPP_NOISE_REDUCTION_MODE_HIGH, |
159 | VPP_NOISE_REDUCTION_MODE_AUTO, |
160 | VPP_NOISE_REDUCTION_MODE_MAX, |
161 | } vpp_noise_reduction_mode_t; |
162 | |
163 | typedef enum vpp_test_pattern_e { |
164 | VPP_TEST_PATTERN_NONE, |
165 | VPP_TEST_PATTERN_RED, |
166 | VPP_TEST_PATTERN_GREEN, |
167 | VPP_TEST_PATTERN_BLUE, |
168 | VPP_TEST_PATTERN_WHITE, |
169 | VPP_TEST_PATTERN_BLACK, |
170 | VPP_TEST_PATTERN_MAX, |
171 | } vpp_test_pattern_e; |
172 | |
173 | typedef struct vpp_pq_para_s { |
174 | int brightness; |
175 | int contrast; |
176 | int saturation; |
177 | int hue; |
178 | int sharpness; |
179 | int backlight; |
180 | int nr; |
181 | } vpp_pq_para_t; |
182 | |
183 | typedef enum noline_params_type_e { |
184 | NOLINE_PARAMS_TYPE_BRIGHTNESS, |
185 | NOLINE_PARAMS_TYPE_CONTRAST, |
186 | NOLINE_PARAMS_TYPE_SATURATION, |
187 | NOLINE_PARAMS_TYPE_HUE, |
188 | NOLINE_PARAMS_TYPE_SHARPNESS, |
189 | NOLINE_PARAMS_TYPE_VOLUME, |
190 | NOLINE_PARAMS_TYPE_BACKLIGHT, |
191 | NOLINE_PARAMS_TYPE_MAX, |
192 | } noline_params_type_t; |
193 | |
194 | typedef struct noline_params_s { |
195 | int osd0; |
196 | int osd25; |
197 | int osd50; |
198 | int osd75; |
199 | int osd100; |
200 | } noline_params_t; |
201 | |
202 | typedef enum vpp_dream_panel_e { |
203 | VPP_DREAM_PANEL_OFF, |
204 | VPP_DREAM_PANEL_LIGHT, |
205 | VPP_DREAM_PANEL_SCENE, |
206 | VPP_DREAM_PANEL_FULL, |
207 | VPP_DREAM_PANEL_DEMO, |
208 | VPP_DREAM_PANEL_MAX, |
209 | } vpp_dream_panel_t; |
210 | |
211 | class CPqData; |
212 | |
213 | class CVpp { |
214 | public: |
215 | CVpp(); |
216 | ~CVpp(); |
217 | int doSuspend(); |
218 | int doResume(); |
219 | int Vpp_Init ( const char *pq_db_path ); |
220 | int Vpp_Uninit ( void ); |
221 | CPqData *getPqData(); |
222 | int Vpp_ResetLastVppSettingsSourceType ( void ); |
223 | int Vpp_SetColorDemoMode ( vpp_color_demomode_t demomode ); |
224 | 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); |
225 | int Vpp_SetColorTemperatureUser ( vpp_color_temperature_mode_t temp_mode, tv_source_input_type_t source_type ); |
226 | 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); |
227 | 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 ); |
228 | 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 ); |
229 | 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 ); |
230 | 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 ); |
231 | 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 ); |
232 | 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 ); |
233 | 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 ); |
234 | 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 ); |
235 | int Vpp_SetDeblockMode(vpp_deblock_mode_t mode, tvin_port_t source_port, tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
236 | 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); |
237 | int Vpp_SetZoom ( int value ); |
238 | int Vpp_LoadDI(tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt); |
239 | 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 ); |
240 | int VppRegisterInterface(); |
241 | int RGBGainValueSSMToRisterMapping ( int gainValue ); |
242 | int RGBOffsetValueSSMToRisterMapping ( int gainValue ); |
243 | int SetRGBValue ( vpp_color_temperature_mode_t temp_mode, unsigned char data_buf[] ); |
244 | int GetRGBValue ( vpp_color_temperature_mode_t temp_mode, tcon_rgb_ogo_t *p_rgbogo ); |
245 | int SetColorSpaceMode ( vpp_color_space_type_t colorSpace ); |
246 | //int Tv_SetGammaValue(int gammaValue); |
247 | int GetGammaValue(); |
248 | //int Tv_SetColorDemoMode ( vpp_color_demomode_t demomode ); |
249 | vpp_color_demomode_t GetColorDemoMode ( void ); |
250 | |
251 | int 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); |
252 | vpp_color_basemode_t GetBaseColorMode ( void ); |
253 | int 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); |
254 | int SaveBaseColorMode ( vpp_color_basemode_t basemode ); |
255 | int SetColorTemperature ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type, int is_save ); |
256 | vpp_color_temperature_mode_t GetColorTemperature ( tv_source_input_type_t source_type ); |
257 | int SetColorTempWithoutSave ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type ); |
258 | int SaveColorTemp ( vpp_color_temperature_mode_t Tempmode, tv_source_input_type_t source_type ); |
259 | int 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 ); |
260 | int GetBrightness ( tv_source_input_type_t source_type ); |
261 | int 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 ); |
262 | int GetContrast ( tv_source_input_type_t source_type ); |
263 | int 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 ); |
264 | int GetSaturation ( tv_source_input_type_t source_type ); |
265 | int 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 ); |
266 | int GetHue ( tv_source_input_type_t source_type ); |
267 | int 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 ); |
268 | int GetSharpness ( tv_source_input_type_t source_type ); |
269 | int SetBacklight ( int value, tv_source_input_type_t source_type, int is_save ); |
270 | int GetBacklight ( tv_source_input_type_t source_type ); |
271 | int SetBacklightWithoutSave ( int value, tv_source_input_type_t source_type ); |
272 | int SaveBacklight ( int value, tv_source_input_type_t source_type ); |
273 | int 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 ); |
274 | vpp_picture_mode_t GetPQMode ( tv_source_input_type_t source_type ); |
275 | int SavePQMode ( vpp_picture_mode_t pq_mode, tv_source_input_type_t source_type ); |
276 | int SetDisplayMode ( vpp_display_mode_t display_mode, tv_source_input_type_t source_type, tvin_sig_fmt_t sig_fmt, int is_save ); |
277 | vpp_display_mode_t GetDisplayMode ( tv_source_input_type_t source_type ); |
278 | int SaveNoiseReductionMode ( vpp_noise_reduction_mode_t nr_mode, tv_source_input_type_t source_type ); |
279 | int 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 ); |
280 | vpp_noise_reduction_mode_t GetNoiseReductionMode ( tv_source_input_type_t source_type ); |
281 | int 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 ); |
282 | int 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 ); |
283 | //int Tv_SetVppParamDefault(void); |
284 | |
285 | |
286 | int FactorySetPQMode_Brightness ( int source_type, int pq_mode, int brightness ); |
287 | int FactoryGetPQMode_Brightness ( int source_type, int pq_mode ); |
288 | int FactorySetPQMode_Contrast ( int source_type, int pq_mode, int contrast ); |
289 | int FactoryGetPQMode_Contrast ( int source_type, int pq_mode ); |
290 | int FactorySetPQMode_Saturation ( int source_type, int pq_mode, int saturation ); |
291 | int FactoryGetPQMode_Saturation ( int source_type, int pq_mode ); |
292 | int FactorySetPQMode_Hue ( int source_type, int pq_mode, int hue ); |
293 | int FactoryGetPQMode_Hue ( int source_type, int pq_mode ); |
294 | int FactorySetPQMode_Sharpness ( int source_type, int pq_mode, int sharpness ); |
295 | int FactoryGetPQMode_Sharpness ( int source_type, int pq_mode ); |
296 | int FactorySetColorTemp_Rgain ( int source_type, int colortemp_mode, int rgain ); |
297 | int FactorySaveColorTemp_Rgain ( int source_type, int colortemp_mode, int rgain ); |
298 | int FactoryGetColorTemp_Rgain ( int source_type, int colortemp_mode ); |
299 | int FactorySetColorTemp_Ggain ( int source_type, int colortemp_mode, int ggain ); |
300 | int FactorySaveColorTemp_Ggain ( int source_type, int colortemp_mode, int ggain ); |
301 | int FactoryGetColorTemp_Ggain ( int source_type, int colortemp_mode ); |
302 | int FactorySetColorTemp_Bgain ( int source_type, int colortemp_mode, int bgain ); |
303 | int FactorySaveColorTemp_Bgain ( int source_type, int colortemp_mode, int bgain ); |
304 | int FactoryGetColorTemp_Bgain ( int source_type, int colortemp_mode ); |
305 | int FactorySetColorTemp_Roffset ( int source_type, int colortemp_mode, int roffset ); |
306 | int FactorySaveColorTemp_Roffset ( int source_type, int colortemp_mode, int roffset ); |
307 | int FactoryGetColorTemp_Roffset ( int source_type, int colortemp_mode ); |
308 | int FactorySetColorTemp_Goffset ( int source_type, int colortemp_mode, int goffset ); |
309 | int FactorySaveColorTemp_Goffset ( int source_type, int colortemp_mode, int goffset ); |
310 | int FactoryGetColorTemp_Goffset ( int source_type, int colortemp_mode ); |
311 | int FactorySetColorTemp_Boffset ( int source_type, int colortemp_mode, int boffset ); |
312 | int FactorySaveColorTemp_Boffset ( int source_type, int colortemp_mode, int boffset ); |
313 | int FactoryGetColorTemp_Boffset ( int source_type, int colortemp_mode ); |
314 | //int Tv_FactorySaveRGBDatatoAllSrc ( int source_type, int colortemp_mode ); |
315 | int FactoryGetTestPattern ( void ); |
316 | int FactoryResetPQMode ( void ); |
317 | int FactoryResetColorTemp ( void ); |
318 | int FactorySetParamsDefault ( void ); |
319 | int FactorySetDDRSSC ( int step ); |
320 | int FactoryGetDDRSSC(); |
321 | int FactorySetLVDSSSC ( int step ); |
322 | int FactoryGetLVDSSSC(); |
323 | int SetLVDSSSC(int step); |
324 | int FactorySetNolineParams ( int type, int source_type, noline_params_t noline_params ); |
325 | noline_params_t FactoryGetNolineParams ( int type, int source_type ); |
326 | int FactorySetOverscan ( int source_type, int fmt, int status_3d, int trans_fmt, tvin_cutwin_t cutwin_t ); |
327 | tvin_cutwin_t FactoryGetOverscan ( int source_type, int fmt, is_3d_type_t is3d, int trans_fmt ); |
328 | int FactorySetBacklightPWM_Frequency(int freq); |
329 | int FactoryGetBacklightPWM_Frequency ( void ); |
330 | int FactorySetBacklight_Switch_status ( int status ); |
331 | int FactoryGetBacklight_Switch_status ( void ); |
332 | int FactorySetBacklightPWM_Duty ( int duty ); |
333 | int FactoryGetBacklightPWM_Duty ( void ); |
334 | int FactorySetLVDS_ColorDepth ( int depth ); |
335 | int FactoryGetLVDS_ColorDepth ( void ); |
336 | int FactorySetLVDS_ColorDither_status ( int status ); |
337 | int FactoryGetLVDS_ColorDither_status ( void ); |
338 | int FactorySetLVDS_Mapping_status ( int status ); |
339 | int FactoryGetLVDS_Mapping_status ( void ); |
340 | int FactorySetLVDS_PortSwap_status ( int status ); |
341 | int FactoryGetLVDS_PortSwap_status ( void ); |
342 | |
343 | int VPPSSMRestoreDefault(); |
344 | int VPPSSMFacRestoreDefault(); |
345 | |
346 | |
347 | int GetHistogram_AVE(); |
348 | int SetDnlp_OFF(); |
349 | int SetDnlp_ON ( void ); |
350 | int GetDnlp_Status(); |
351 | |
352 | int GetColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t *params ); |
353 | int ReadColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t *params ); |
354 | int SetColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t params ); |
355 | int SaveColorTemperatureParams ( vpp_color_temperature_mode_t Tempmode, tcon_rgb_ogo_t params ); |
356 | unsigned short CalColorTemperatureParamsChecksum ( void ); |
357 | int SetColorTempParamsChecksum ( void ); |
358 | unsigned short GetColorTempParamsChecksum ( void ); |
359 | int CheckTempDataLable ( void ); |
360 | int SetTempDataLable ( void ); |
361 | int CheckColorTemperatureParams ( void ); |
362 | int RestoeColorTemperatureParamsFromDB ( tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt ); |
363 | int CheckColorTemperatureParamAlldata ( tvin_port_t source_port , tvin_sig_fmt_t sig_fmt, tvin_trans_fmt_t trans_fmt ); |
364 | void Tvin_SetVideoScreenColorType ( int type ); |
365 | int Vpp_GetVppConfig(); |
366 | int Vpp_GetPQModeValue ( tv_source_input_type_t, vpp_picture_mode_t, vpp_pq_para_t * ); |
367 | 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); |
368 | |
369 | int Vpp_LoadGammaDefault ( tv_source_input_type_t, tvin_sig_fmt_t ); |
370 | int Vpp_LoadGammaSpecial ( int ); |
371 | int Vpp_LoadGamma ( tv_source_input_type_t, tvin_sig_fmt_t ); |
372 | int FactoryResetNonlinear(); |
373 | tvin_cutwin_t GetOverscan ( tv_source_input_type_t source_type, tvin_sig_fmt_t fmt, is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
374 | static is_3d_type_t Check2Dor3D ( is_3d_type_t is3d, tvin_trans_fmt_t trans_fmt ); |
375 | //api |
376 | int VPP_SetVEBlackExtension ( const struct ve_bext_s *pBExt ); |
377 | int VPP_SetVideoCrop ( int Voffset0, int Hoffset0, int Voffset1, int Hoffset1 ); |
378 | int VPP_SetNonLinearFactor ( int value ); |
379 | int VPP_SetGrayPattern(int value); |
380 | int VPP_GetGrayPattern(); |
381 | int VPP_SplitScreenEffect(int width, int v_register); |
382 | int VPP_SetBackLight_Switch ( int value ); |
383 | int VPP_GetBackLight_Switch ( void ); |
384 | int VPP_SetScalerPathSel (const unsigned int value); |
385 | private: |
386 | // |
387 | int VPP_OpenModule ( void ); |
388 | int VPP_CloseModule ( void ); |
389 | int VPP_SetVideoBrightness ( int value ); |
390 | int VPP_SetVideoContrast ( int value ); |
391 | int VPP_SetVideoSaturationHue ( int satVal, int hueVal ); |
392 | int VPP_SetCMRegisterMap ( struct cm_regmap_s *pRegMap ); |
393 | int Vpp_LoadRegs ( am_regs_t regs ); |
394 | int VPP_SetRGBOGO ( const struct tcon_rgb_ogo_s *rgbogo ); |
395 | int VPP_GetRGBOGO ( const struct tcon_rgb_ogo_s *rgbogo ); |
396 | int VPP_SetGammaOnOff ( unsigned char onoff ); |
397 | int VPP_SetGammaTbl_R ( unsigned short red[256] ); |
398 | int VPP_SetGammaTbl_G ( unsigned short green[256] ); |
399 | int VPP_SetGammaTbl_B ( unsigned short blue[256] ); |
400 | void video_set_saturation_hue ( signed char saturation, signed char hue, signed long *mab ); |
401 | void video_get_saturation_hue ( signed char *sat, signed char *hue, signed long *mab ); |
402 | int VPP_SetBackLightLevel ( int value ); |
403 | int VPP_SetVEDNLP ( const struct ve_dnlp_s *pDNLP ); |
404 | int VPP_SetVENewDNLP ( const ve_dnlp_table_t *pDNLP ); |
405 | int Vpp_GetAVGHistogram ( struct ve_hist_s *hist ); |
406 | int Vpp_SetDnlpOff ( void ); |
407 | int Vpp_SetDnlpOn ( void ); |
408 | int VPP_SetVESharpness ( const ve_hsvs_s * ); |
409 | int VPP_SetVEChromaCoring ( const ve_ccor_s * ); |
410 | int VPP_SetVEBlueEnh ( const ve_benh_s * ); |
411 | int VPP_SetVEDemo ( const ve_demo_s * ); |
412 | int VPP_SetVERegisterMap ( const ve_regmap_s * ); |
413 | int VPP_SetVEDebug ( const long long unsigned int * ); |
414 | int VPP_SetCMRegion ( const cm_region_s * ); |
415 | int VPP_SetCMTopLayer ( const cm_top_s * ); |
416 | int VPP_SetCMDemo ( const cm_demo_s * ); |
417 | |
418 | int VPP_DeviceIOCtl ( int request, ... ); |
419 | int VPP3D_DeviceIOCtl ( int, ... ); |
420 | int VPP_SetCMDebug ( const long long unsigned int * ); |
421 | int VPP_SetAVSyncEnable ( unsigned int ); |
422 | int VPP_SetVideoNoiseReduction ( int ); |
423 | int VPP_SetVideoSaturation ( int ); |
424 | int VPP_SetVideoHue ( int ); |
425 | int VPP_SetDeinterlaceMode ( int ); |
426 | |
427 | int isPreviewWindow(); |
428 | |
429 | |
430 | tv_source_input_type_t vpp_setting_last_source_type; |
431 | tvin_sig_fmt_t vpp_setting_last_sig_fmt; |
432 | tvin_trans_fmt_t vpp_setting_last_trans_fmt; |
433 | //cfg |
434 | bool mbVppCfg_backlight_reverse; |
435 | bool mbVppCfg_backlight_init; |
436 | bool mbVppCfg_pqmode_without_hue; |
437 | bool mbVppCfg_hue_reverse; |
438 | bool mbVppCfg_gamma_onoff; |
439 | bool mbVppCfg_whitebalance_sameparam; |
440 | bool mbVppCfg_new_cm; |
441 | bool mbVppCfg_new_nr; |
442 | bool mbVppCfg_panorama_switch; |
443 | bool mbVppCfg_pqmode_depend_bklight; |
444 | bool mbVppCfg_colortemp_by_source; |
445 | |
446 | CPqData *mpPqData; |
447 | |
448 | int vpp_amvideo_fd; |
449 | int vpp_amvideo_3d_fd; |
450 | }; |
451 | #endif |
452 |