blob: 0648fed3c8bfc9446a32d117ed12d2dbf80c31a8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*****************************************************************************
2 * °æ±¾ËùÓÐ (C)2008ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
3 * Ä£¿éÃû £º
4 * ʵÏÖ¹¦ÄÜ £º
5 * ×÷Õß £º
6 * °æ±¾ £º
7 * Íê³ÉÈÕÆÚ £º
8 * ÆäËü˵Ã÷ £º MSPÅÄÕÕ¶ÔÍâ½Ó¿ÚÍ·Îļþ
9 * ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
10 * ---------------------------------------------------------------------
11 * 2008/08/01 V1.0 XXXX XXXX
12************************************************************************/
13#ifndef ZTE_DC_H
14#define ZTE_DC_H
15
16/**************************************************************************
17 * Í·Îļþ°üº¬ *
18 **************************************************************************/
19#include "zte_display.h"
20
21/**************************************************************************
22 * ºê *
23 **************************************************************************/
24
25
26/**************************************************************************
27 * Êý¾ÝÀàÐÍ *
28 **************************************************************************/
29/*³ß´ç*/
30typedef struct
31{
32 UINT16 dwWidth;
33 UINT16 dwHeight;
34}CAM_SIZE;
35typedef struct
36{
37 LCD_ID_E lcd_id;
38 APP_PREVIEW_E previewtype;
39 DCAMERA_SENSOR_E sensor;
40 RECT_T disp_rect; // ÏÔÊ¾ÇøÓò
41 EFFECT_TYPE_E effect; //ÌØÊâЧ¹û
42 ZOOM_LEVEL_E zoomlevel; //Ëõ·Åˮƽ
43 MAN_ROTATE_TYPE rotation_mode; // Ðýת½Ç¶È
44 BRITENESS_E brightness; //ÁÁ¶È
45 CONTRAST_E contrastness; //¶Ô±È¶È
46 CAPTURE_MODE_E mode; //ģʽ
47 CAM_SIZE resolution; //·Ö±çÂÊ
48 QUALITY_MODE_E quality; //ÖÊÁ¿
49 WHITEBALANCE_MODE_E whitebalance; //°×ƽºâ
50 MIRROR_PARAM_T mirror; //¾µÏñ
51}PREVIEW_PARAM_T;
52
53typedef struct
54{
55 UINT8 *data_buffer;
56 UINT32 data_length;
57 CHAR *data_display_ptr; //ÔÚLCDÉÏÏÔʾµÄbufferÖ¸Õë
58 BOOL flash_enable; //ÊÇ·ñÉÁ¹â
59 UINT16 photonumber;
60}SNAPSHOT_PARAM_T;
61
62typedef struct
63{
64 UINT8 *data_buffer;
65 UINT32 data_length;
66 CHAR *data_display_ptr; //ÔÚLCDÉÏÏÔʾµÄbufferÖ¸Õë
67 RECT_T display_rect; // ÏÔʾÕÕÆ¬ÇøÓò
68 MAN_ROTATE_TYPE rotation_mode; // Ðýת½Ç¶È
69}REVIEW_PARAM_T;
70
71typedef struct
72{
73 UINT8 *buf_ptr; //Êý¾ÝÖ¸Õë
74 UINT16 color; //͸Ã÷É«
75}FRAME_PARAM_T;
76
77/**************************************************************************
78 * º¯ÊýÔ­ÐÍ *
79 **************************************************************************/
80DCAMERA_RETURN_VALUE_E DC_Open(DCAMERA_SENSOR_E param);
81
82DCAMERA_RETURN_VALUE_E DC_Close(void);
83
84DCAMERA_RETURN_VALUE_E DC_Startpreview(PREVIEW_PARAM_T *param);
85
86DCAMERA_RETURN_VALUE_E DC_Stoppreview(void);
87
88DCAMERA_RETURN_VALUE_E DC_CaptureOne(SNAPSHOT_PARAM_T *param);
89
90DCAMERA_RETURN_VALUE_E DC_PhotoReview(REVIEW_PARAM_T *param);
91
92DCAMERA_RETURN_VALUE_E DC_SetRotate(MAN_ROTATE_TYPE param);
93
94DCAMERA_RETURN_VALUE_E DC_SetZoom(ZOOM_LEVEL_E param);
95
96DCAMERA_RETURN_VALUE_E DC_SetBright(BRITENESS_E level);
97
98DCAMERA_RETURN_VALUE_E DC_SetContrast(CONTRAST_E level);
99
100DCAMERA_RETURN_VALUE_E DC_SetEffect(EFFECT_TYPE_E effect);
101
102DCAMERA_RETURN_VALUE_E DC_SetCaputureMode(CAPTURE_MODE_E mode);
103
104DCAMERA_RETURN_VALUE_E DC_SetFrame(FRAME_PARAM_T *frame);
105
106DCAMERA_RETURN_VALUE_E DC_SetWhiteBalance(WHITEBALANCE_MODE_E param);
107
108DCAMERA_RETURN_VALUE_E DC_SetResolution(CAM_SIZE *param);
109
110DCAMERA_RETURN_VALUE_E DC_SetQuality(QUALITY_MODE_E param);
111
112DCAMERA_RETURN_VALUE_E DC_SetMirror(MIRROR_PARAM_T *param);
113
114#endif