FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiCameraApp.h @ 421:6a4d9f47793e
src/ui3/bmi: file renames to make the case consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:28:53 +0000 |
parents | src/ui3/bmi/MmiCameraApp.h@e8ddbb0837ed |
children |
comparison
equal
deleted
inserted
replaced
420:e8ddbb0837ed | 421:6a4d9f47793e |
---|---|
1 #ifndef _MMICAMERAAPP_H_ | |
2 #define _MMICAMERAAPP_H_ | |
3 | |
4 /******************************************************************************* | |
5 | |
6 CONDAT (UK) | |
7 | |
8 ******************************************************************************** | |
9 | |
10 This software product is the property of Condat (UK) Ltd and may not be | |
11 disclosed to any third party without the express permission of the owner. | |
12 | |
13 ******************************************************************************** | |
14 | |
15 $Project name: Basic MMI | |
16 $Project code: BMI (6349) | |
17 $Module: CameraTest | |
18 $File: MmiCameraApp.h | |
19 $Revision: 1.0 | |
20 | |
21 $Author: Texas Instruments France | |
22 $Date: 16/06/04 | |
23 | |
24 ******************************************************************************** | |
25 | |
26 Description: | |
27 | |
28 This module provides the Camera functionality. | |
29 | |
30 ******************************************************************************** | |
31 $History: MmiCameraApp.h | |
32 | |
33 April 03 2007 ER:OMAPS00116772 x0061088(Prachi) | |
34 Description:Support of 1.3 Mpixel camera on Locosto Plus | |
35 | |
36 Jan 10 2006, xdeepadh - LOCOSTO-ENH- | |
37 Description: Application to test camera | |
38 Solution: Implemented the camera application with following functionalities | |
39 preview, snapshot ,configure and image saving. | |
40 16/06/04 | |
41 | |
42 $End | |
43 | |
44 *******************************************************************************/ | |
45 | |
46 | |
47 /******************************************************************************* | |
48 | |
49 Include files | |
50 | |
51 *******************************************************************************/ | |
52 | |
53 | |
54 | |
55 | |
56 /******************************************************************************* | |
57 | |
58 Interface constants | |
59 | |
60 *******************************************************************************/ | |
61 typedef struct | |
62 { | |
63 void * buffer; | |
64 U16 width; | |
65 U16 height; | |
66 } T_FRAME; | |
67 | |
68 //Maximum border frames to be displayed in the MMI | |
69 #define FRAME_MAX_FILES 2 | |
70 typedef struct | |
71 { | |
72 BOOL quality; | |
73 BOOL rotate; | |
74 BOOL burstmode; | |
75 BOOL filename; | |
76 BOOL frame; | |
77 BOOL zoom; | |
78 /*April 03 2007 ER:OMAPS00116772 x0061088(Prachi)*/ | |
79 BOOL AutoSave; | |
80 } T_CONFIGURATIONS; | |
81 | |
82 typedef enum { | |
83 CAM_INIT=0, | |
84 CAM_DRAW, | |
85 CAM_SUSPEND, | |
86 CAM_RESUME, | |
87 CAM_DEINT, | |
88 CAM_EXIT, | |
89 CAM_EDITOR_INIT, | |
90 CAM_EDITOR_CANCEL, | |
91 CAM_EDITOR_SELECT | |
92 }CAM_WIN_EVENT; | |
93 typedef struct | |
94 { | |
95 T_MMI_CONTROL mmi_control; | |
96 T_MFW_HND win; | |
97 T_MFW_HND mfwwin; | |
98 T_MFW_HND optwin; | |
99 T_MFW_HND infowin; | |
100 T_MFW_HND parent; | |
101 T_MFW_HND kbd; | |
102 MfwIcnAttr ct_bitmap; | |
103 SHORT id; | |
104 T_MFW_CAM_STATE cam_current_state; | |
105 } T_MMI_CAM_Win_data; | |
106 | |
107 //editor data structure | |
108 typedef struct | |
109 { | |
110 T_MMI_CONTROL mmi_control; | |
111 MfwHnd win; | |
112 MfwHnd cam_win_editor; | |
113 UBYTE cam_buffer[CAM_FILENAME_EDITOR_INPUT_LEN+1]; | |
114 } T_CAM_Editor_Data; | |
115 | |
116 | |
117 //Dialog Screen timeout | |
118 #define CAM_INFO_SCRN_TIMEOUT 1000 | |
119 #define TRANSP_INDEX 0x0020 | |
120 //Input length of Editor | |
121 /******************************************************************************* | |
122 | |
123 Public methods | |
124 | |
125 *******************************************************************************/ | |
126 GLOBAL int mmi_camera_launch_view_finder (MfwMnu* m, MfwMnuItem* i); | |
127 GLOBAL int mmi_camera_set_quality (MfwMnu* m, MfwMnuItem* i); | |
128 GLOBAL int mmi_camera_set_storage (MfwMnu* m, MfwMnuItem* i); | |
129 GLOBAL int mmi_camera_set_borderframe (MfwMnu* m, MfwMnuItem* i); | |
130 GLOBAL int mmi_camera_set_rotation (MfwMnu* m, MfwMnuItem* i); | |
131 GLOBAL int mmi_camera_set_burstmode (MfwMnu* m, MfwMnuItem* i); | |
132 GLOBAL int mmi_camera_edit_filename(MfwMnu* m, MfwMnuItem* i); | |
133 /*April 03 2007 ER:OMAPS00116772 x0061088(Prachi)*/ | |
134 GLOBAL int mmi_camera_set_auto_save(MfwMnu* m, MfwMnuItem* i); | |
135 #if CAM_SENSOR == 1 | |
136 GLOBAL int mmi_camera_set_resolution (MfwMnu* m, MfwMnuItem* i); | |
137 #endif | |
138 | |
139 /******************************************************************************* | |
140 | |
141 End of File | |
142 | |
143 *******************************************************************************/ | |
144 | |
145 #endif //_MMICAMERAAPP_H_ | |
146 |