blob: 0648fed3c8bfc9446a32d117ed12d2dbf80c31a8 [file] [log] [blame]
/*****************************************************************************
* °æ±¾ËùÓÐ (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