[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/plat/inc/msp/zte_dc.h b/cp/ps/plat/inc/msp/zte_dc.h
new file mode 100644
index 0000000..0648fed
--- /dev/null
+++ b/cp/ps/plat/inc/msp/zte_dc.h
@@ -0,0 +1,114 @@
+/*****************************************************************************
+ * °æ±¾ËùÓÐ (C)2008ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
+ * Ä£¿éÃû £º
+ * ʵÏÖ¹¦ÄÜ £º
+ * ×÷Õß £º
+ * °æ±¾ £º
+ * Íê³ÉÈÕÆÚ £º
+ * ÆäËü˵Ã÷ £º MSPÅÄÕÕ¶ÔÍâ½Ó¿ÚÍ·Îļþ
+ * ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
+ * ---------------------------------------------------------------------
+ * 2008/08/01 V1.0 XXXX XXXX
+************************************************************************/
+#ifndef ZTE_DC_H
+#define ZTE_DC_H
+
+/**************************************************************************
+ * Í·Îļþ°üº¬ *
+ **************************************************************************/
+#include "zte_display.h"
+
+/**************************************************************************
+ * ºê *
+ **************************************************************************/
+
+
+/**************************************************************************
+ * Êý¾ÝÀàÐÍ *
+ **************************************************************************/
+/*³ß´ç*/
+typedef struct
+{
+ UINT16 dwWidth;
+ UINT16 dwHeight;
+}CAM_SIZE;
+typedef struct
+{
+ LCD_ID_E lcd_id;
+ APP_PREVIEW_E previewtype;
+ DCAMERA_SENSOR_E sensor;
+ RECT_T disp_rect; // ÏÔÊ¾ÇøÓò
+ EFFECT_TYPE_E effect; //ÌØÊâЧ¹û
+ ZOOM_LEVEL_E zoomlevel; //Ëõ·Åˮƽ
+ MAN_ROTATE_TYPE rotation_mode; // Ðýת½Ç¶È
+ BRITENESS_E brightness; //ÁÁ¶È
+ CONTRAST_E contrastness; //¶Ô±È¶È
+ CAPTURE_MODE_E mode; //ģʽ
+ CAM_SIZE resolution; //·Ö±çÂÊ
+ QUALITY_MODE_E quality; //ÖÊÁ¿
+ WHITEBALANCE_MODE_E whitebalance; //°×ƽºâ
+ MIRROR_PARAM_T mirror; //¾µÏñ
+}PREVIEW_PARAM_T;
+
+typedef struct
+{
+ UINT8 *data_buffer;
+ UINT32 data_length;
+ CHAR *data_display_ptr; //ÔÚLCDÉÏÏÔʾµÄbufferÖ¸Õë
+ BOOL flash_enable; //ÊÇ·ñÉÁ¹â
+ UINT16 photonumber;
+}SNAPSHOT_PARAM_T;
+
+typedef struct
+{
+ UINT8 *data_buffer;
+ UINT32 data_length;
+ CHAR *data_display_ptr; //ÔÚLCDÉÏÏÔʾµÄbufferÖ¸Õë
+ RECT_T display_rect; // ÏÔʾÕÕÆ¬ÇøÓò
+ MAN_ROTATE_TYPE rotation_mode; // Ðýת½Ç¶È
+}REVIEW_PARAM_T;
+
+typedef struct
+{
+ UINT8 *buf_ptr; //Êý¾ÝÖ¸Õë
+ UINT16 color; //͸Ã÷É«
+}FRAME_PARAM_T;
+
+/**************************************************************************
+ * º¯ÊýÔÐÍ *
+ **************************************************************************/
+DCAMERA_RETURN_VALUE_E DC_Open(DCAMERA_SENSOR_E param);
+
+DCAMERA_RETURN_VALUE_E DC_Close(void);
+
+DCAMERA_RETURN_VALUE_E DC_Startpreview(PREVIEW_PARAM_T *param);
+
+DCAMERA_RETURN_VALUE_E DC_Stoppreview(void);
+
+DCAMERA_RETURN_VALUE_E DC_CaptureOne(SNAPSHOT_PARAM_T *param);
+
+DCAMERA_RETURN_VALUE_E DC_PhotoReview(REVIEW_PARAM_T *param);
+
+DCAMERA_RETURN_VALUE_E DC_SetRotate(MAN_ROTATE_TYPE param);
+
+DCAMERA_RETURN_VALUE_E DC_SetZoom(ZOOM_LEVEL_E param);
+
+DCAMERA_RETURN_VALUE_E DC_SetBright(BRITENESS_E level);
+
+DCAMERA_RETURN_VALUE_E DC_SetContrast(CONTRAST_E level);
+
+DCAMERA_RETURN_VALUE_E DC_SetEffect(EFFECT_TYPE_E effect);
+
+DCAMERA_RETURN_VALUE_E DC_SetCaputureMode(CAPTURE_MODE_E mode);
+
+DCAMERA_RETURN_VALUE_E DC_SetFrame(FRAME_PARAM_T *frame);
+
+DCAMERA_RETURN_VALUE_E DC_SetWhiteBalance(WHITEBALANCE_MODE_E param);
+
+DCAMERA_RETURN_VALUE_E DC_SetResolution(CAM_SIZE *param);
+
+DCAMERA_RETURN_VALUE_E DC_SetQuality(QUALITY_MODE_E param);
+
+DCAMERA_RETURN_VALUE_E DC_SetMirror(MIRROR_PARAM_T *param);
+
+#endif