resource_camera_skins.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:10k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *  resource_camera_skins.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  Camera customization file.
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *                      
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  * removed!
  68.  * removed!
  69.  * removed!
  70.  *
  71.  * removed!
  72.  * removed!
  73.  * removed!
  74.  *
  75.  * removed!
  76.  * removed!
  77.  * removed!
  78.  *
  79.  * removed!
  80.  * removed!
  81.  * removed!
  82.  *
  83.  * removed!
  84.  * removed!
  85.  * removed!
  86.  *
  87.  * removed!
  88.  * removed!
  89.  * removed!
  90.  *
  91.  * removed!
  92.  * removed!
  93.  * removed!
  94.  *
  95.  *------------------------------------------------------------------------------
  96.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  97.  *============================================================================
  98.  ****************************************************************************/
  99. #ifndef _CAMERA_SKIN_H_
  100. #define _CAMERA_SKIN_H_
  101. #include "MMI_features.h"
  102. #ifdef __MMI_CAMERA__
  103. /***************************************************************************** 
  104. * Define
  105. *****************************************************************************/
  106. #if defined(MT6228) || defined(MT6229)
  107. /* for MT6228 / MT6229, use wav, which have better qty */
  108. #define CAMERA_SOUND_SHUTTER_1_LEN (4798)
  109. #define CAMERA_SOUND_SHUTTER_2_LEN (3532)
  110. #define CAMERA_SOUND_SHUTTER_3_LEN (6960)
  111. #define CAMERA_SOUND_DUMMY_BG_LEN (94)
  112. #define CAMERA_SOUND_AF_SUCCEED_LEN (3695)
  113. #else
  114. #define CAMERA_SOUND_SHUTTER_1_LEN (1199)
  115. #define CAMERA_SOUND_SHUTTER_2_LEN (883)
  116. #define CAMERA_SOUND_SHUTTER_3_LEN (1740)
  117. #define CAMERA_SOUND_DUMMY_BG_LEN (94)
  118. #endif 
  119. #if defined(MT6219) || defined(MT6226) || defined(MT6226M) || defined(MT6227) || defined(MT6228) || defined(MT6229) 
  120. #define CAMREA_SOUND_COUNTDOWN_LEN (1374)
  121. #else
  122. #define CAMREA_SOUND_COUNTDOWN_LEN (164)
  123. #endif
  124. typedef enum {
  125. CAMERA_TEXT_STYLE_NORMAL,
  126. CAMERA_TEXT_STYLE_BORDER,
  127. CAMERA_TEXT_STYLE_SHADOW
  128. } mmi_camera_text_style;
  129. /***************************************************************************** 
  130. * Struct
  131. *****************************************************************************/
  132. typedef struct
  133. {
  134. BOOL  is_show;
  135. S32 offset_x;
  136. S32 offset_y;
  137. U8 group_id;
  138. } camera_osd_icon_struct;
  139. typedef struct
  140. {
  141. U8 r;
  142. U8 g;
  143. U8 b;
  144. } camera_color_struct;
  145. typedef struct {
  146. U8 r;
  147. U8 g;
  148. U8 b;
  149. U8 style_r;
  150. U8 style_g;
  151. U8 style_b;
  152. U16 style;
  153. } camera_style_text_struct;
  154. typedef struct
  155. {
  156. S32  offset_x;
  157. S32 offset_y;
  158. S32 width;
  159. S32  height;
  160. } camera_osd_panel_struct;
  161. typedef struct
  162. {
  163. BOOL is_draw_mmi_softkey;
  164. camera_style_text_struct lsk;
  165. camera_style_text_struct rsk;
  166. } camera_osd_softkey_struct;
  167. typedef struct
  168. {
  169. S32  offset_x;
  170. S32 offset_y;
  171. S32 width;
  172. S32  height;
  173. } camera_preview_wnd_struct;
  174. typedef struct
  175. {
  176. BOOL is_show;
  177. S32  offset_x;
  178. S32 offset_y;
  179. S32 width;
  180. S32  height;
  181. camera_style_text_struct style_text;
  182. } camera_osd_hint_box_struct;
  183. typedef struct 
  184. {
  185. BOOL  is_show;
  186. BOOL is_right_align;
  187. S32  offset_x;
  188. S32     offset_y;
  189. camera_style_text_struct style_text;
  190.     U8 group_id;
  191. } camera_osd_storage_struct;
  192. typedef struct 
  193. {
  194. BOOL  is_draw_bg_image;
  195. BOOL is_draw_bg_color;
  196. U8 r;
  197. U8 g;
  198. U8 b;
  199. } camera_osd_bg_struct;
  200. typedef struct 
  201. {
  202. BOOL  is_draw_mmi_title_bar;
  203. BOOL is_draw_mmi_caption;
  204. } camera_osd_title_struct;
  205. typedef struct
  206. {
  207. S32 offset_x;
  208. S32 offset_y;
  209. S32 icon_per_page;
  210. } camera_osd_iconbar_struct;
  211. typedef struct{
  212. S32 offset_x;
  213. S32 offset_y;
  214. S32 width;
  215. S32 height;
  216. } camera_osd_region_struct;
  217. typedef struct {
  218. /* background */
  219. camera_osd_bg_struct bg;
  220. /* title */
  221. camera_osd_title_struct title;
  222. /* softkey (buttom bar) */
  223. camera_osd_softkey_struct softkey;
  224. /* preview wnd */
  225. camera_preview_wnd_struct preview_wnd;
  226. /* camera setting */
  227. camera_osd_icon_struct  wb;
  228. camera_osd_icon_struct  flash;
  229. camera_osd_icon_struct  led_highlight;
  230. camera_osd_icon_struct  ev;
  231. camera_osd_icon_struct  ev_inc; /* for touch screen */
  232. camera_osd_icon_struct  ev_dec; /* for touch screen */
  233. camera_osd_icon_struct night;
  234. camera_osd_icon_struct closeup;
  235. /* image setting  */ 
  236. camera_osd_icon_struct image_size;
  237. camera_osd_icon_struct image_qty;
  238. /* others */
  239. camera_osd_icon_struct cont_shot;
  240. camera_osd_icon_struct delay_timer;
  241. camera_osd_icon_struct add_frame;
  242. camera_osd_icon_struct storage;
  243. camera_osd_icon_struct effect;
  244. camera_osd_icon_struct ae_meter;
  245. camera_osd_icon_struct iso;
  246. camera_osd_icon_struct dsc_mode ;
  247. camera_osd_icon_struct af_mode;
  248. camera_osd_icon_struct af_meter;
  249. camera_osd_icon_struct zoom_mf_toggle;
  250. camera_osd_icon_struct capture;
  251. camera_osd_icon_struct zoom;
  252. camera_osd_icon_struct  zoom_inc; /* for touch screen */
  253. camera_osd_icon_struct  zoom_dec; /* for touch screen */
  254. camera_osd_icon_struct mms_icon;
  255. camera_osd_icon_struct left_arrow;
  256. camera_osd_icon_struct right_arrow;
  257. /* icon list */
  258. camera_osd_iconbar_struct iconbar;
  259. #if defined(__MMI_CAMERA_5_OSD_LAYER__)
  260. camera_osd_region_struct osd_region0;
  261. camera_osd_region_struct osd_region1;
  262. camera_osd_region_struct osd_region2;
  263. camera_osd_region_struct osd_region3;
  264. camera_osd_region_struct osd_region4;
  265. #elif defined(__MMI_CAMERA_3_OSD_LAYER__)
  266. camera_osd_region_struct osd_region0;
  267. camera_osd_region_struct osd_region1;
  268. camera_osd_region_struct osd_region2;
  269. #endif
  270. camera_osd_hint_box_struct hint_box;
  271. camera_osd_storage_struct remain_storage;
  272. } camera_osd_layeout_struct;
  273. typedef struct {
  274. camera_style_text_struct poplist_title_text;
  275. camera_style_text_struct poplist_list_text;
  276. camera_style_text_struct poplist_list_highlight_text;
  277. camera_color_struct poplist_bg_color;
  278. camera_color_struct poplist_highlight_color;
  279. U16 poplist_bg_trans;
  280. S32 poplist_top_margin;
  281. S32 poplist_bottom_margin;
  282. S32 poplist_left_margin;
  283. S32 poplist_right_margin;
  284. } camera_osd_menu_struct;
  285. /***************************************************************************** 
  286. * Local Variable
  287. *****************************************************************************/
  288. /* camera osd display cntx */
  289. extern camera_osd_layeout_struct g_camera_osd_cntx;
  290. #ifdef __CAMERA_OSD_HORIZONTAL__
  291. extern camera_osd_layeout_struct g_camera_osd_cntx_270;
  292. #endif
  293. extern camera_osd_menu_struct g_camera_osd_menu_cntx;
  294. /* camera sound */
  295. #ifndef WIN32
  296. extern __align(2) const U8 camera_sound_countdown[CAMREA_SOUND_COUNTDOWN_LEN];
  297. extern __align(2) const U8 camera_sound_shutter_1[CAMERA_SOUND_SHUTTER_1_LEN];
  298. extern __align(2) const U8 camera_sound_shutter_2[CAMERA_SOUND_SHUTTER_2_LEN];
  299. extern __align(2) const U8 camera_sound_shutter_3[CAMERA_SOUND_SHUTTER_3_LEN];
  300. extern __align(2) const U8 camera_sound_dummy_bg[CAMERA_SOUND_DUMMY_BG_LEN];
  301. #if defined(MT6228) || defined(MT6229)
  302. extern __align(2) const U8 camera_af_succeed[CAMERA_SOUND_AF_SUCCEED_LEN];
  303. #endif
  304. #else
  305. extern const U8 camera_sound_countdown[CAMREA_SOUND_COUNTDOWN_LEN];
  306. extern const U8 camera_sound_shutter_1[CAMERA_SOUND_SHUTTER_1_LEN];
  307. extern const U8 camera_sound_shutter_2[CAMERA_SOUND_SHUTTER_2_LEN];
  308. extern const U8 camera_sound_shutter_3[CAMERA_SOUND_SHUTTER_3_LEN];
  309. extern const U8 camera_sound_dummy_bg[CAMERA_SOUND_DUMMY_BG_LEN];
  310. #if defined(MT6228) || defined(MT6229)
  311. extern const U8 camera_af_succeed[CAMERA_SOUND_AF_SUCCEED_LEN];
  312. #endif
  313. #endif 
  314. #endif /* __MMI_CAMERA__ */
  315. #endif /* _CAMERA_SKIN_H_ */