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

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.  *  MMI_features_camera.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  Define which Camera features should on/off
  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.  * removed!
  96.  * removed!
  97.  * removed!
  98.  *
  99.  * removed!
  100.  * removed!
  101.  * removed!
  102.  *
  103.  * removed!
  104.  * removed!
  105.  * removed!
  106.  *
  107.  * removed!
  108.  * removed!
  109.  * removed!
  110.  *
  111.  * removed!
  112.  * removed!
  113.  * removed!
  114.  *
  115.  * removed!
  116.  * removed!
  117.  * removed!
  118.  *
  119.  * removed!
  120.  * removed!
  121.  * removed!
  122.  *
  123.  * removed!
  124.  * removed!
  125.  * removed!
  126.  *
  127.  * removed!
  128.  * removed!
  129.  * removed!
  130.  *
  131.  * removed!
  132.  * removed!
  133.  * removed!
  134.  *
  135.  * removed!
  136.  * removed!
  137.  * removed!
  138.  *
  139.  * removed!
  140.  * removed!
  141.  * removed!
  142.  *
  143.  * removed!
  144.  * removed!
  145.  * removed!
  146.  *
  147.  * removed!
  148.  * removed!
  149.  * removed!
  150.  *
  151.  * removed!
  152.  * removed!
  153.  * removed!
  154.  *
  155.  * removed!
  156.  * removed!
  157.  * removed!
  158.  *
  159.  * removed!
  160.  * removed!
  161.  * removed!
  162.  *
  163.  * removed!
  164.  * removed!
  165.  * removed!
  166.  *
  167.  * removed!
  168.  * removed!
  169.  * removed!
  170.  *
  171.  * removed!
  172.  * removed!
  173.  * removed!
  174.  *
  175.  * removed!
  176.  * removed!
  177.  * removed!
  178.  *
  179.  * removed!
  180.  * removed!
  181.  * removed!
  182.  *
  183.  * removed!
  184.  * removed!
  185.  * removed!
  186.  *
  187.  * removed!
  188.  * removed!
  189.  * removed!
  190.  *
  191.  * removed!
  192.  * removed!
  193.  * removed!
  194.  *
  195.  * removed!
  196.  * removed!
  197.  * removed!
  198.  *
  199.  * removed!
  200.  * removed!
  201.  * removed!
  202.  *
  203.  * removed!
  204.  * removed!
  205.  * removed!
  206.  *
  207.  * removed!
  208.  * removed!
  209.  * removed!
  210.  *
  211.  *------------------------------------------------------------------------------
  212.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  213.  *============================================================================
  214.  ****************************************************************************/
  215. #ifndef _CAMERA_FEATURES_H_
  216. #define _CAMERA_FEATURES_H_
  217. #include "MMI_features.h"
  218. #ifdef __MMI_IMAGE_VIEWER__
  219. /****************************************************************************
  220. *
  221. * EXIF CUSTOMIZATION
  222. *
  223. *****************************************************************************/
  224. #ifdef __MMI_EXIF__
  225. #define __MMI_EXIF_MAKE__
  226. #define __MMI_EXIF_MODEL__
  227. //#define __MMI_EXIF_ORIENTATION__
  228. #define __MMI_EXIF_X_RESOLUTION__
  229. #define __MMI_EXIF_Y_RESOLUTION__
  230. //#define __MMI_EXIF_RESOLUTION_UNIT__
  231. #define __MMI_EXIF_SOFTWARE__
  232. #define __MMI_EXIF_DATE_TIME__
  233. #define __MMI_EXIF_YCBCR_POSITIONING__
  234. //#define __MMI_EXIF_EXIF_IFD__
  235. #define __MMI_EXIF_EXPOSURE_TIME__
  236. #define __MMI_EXIF_FNUMBER__
  237. #define __MMI_EXIF_EXPOSURE_PROGRAM__
  238. #define __MMI_EXIF_ISO_SPEED_RATINGS__
  239. #define __MMI_EXIF_EXIF_VERSION__
  240. #define __MMI_EXIF_DATE_TIME_ORIGINAL__
  241. #define __MMI_EXIF_DATE_TIME_DIGITIZED__
  242. //#define __MMI_EXIF_COMPONENTS_CONFIG__
  243. #define __MMI_EXIF_EXPOSURE_BIAS_VALUE__
  244. #define __MMI_EXIF_METERING_MODE__
  245. //#define __MMI_EXIF_LIGHT_SOURCE__
  246. #define __MMI_EXIF_FLASH__
  247. //#define __MMI_EXIF_MAKER_NOTE__
  248. //#define __MMI_EXIF_FLASHPIX_VERSION__
  249. #define __MMI_EXIF_COLOR_SPACE__
  250. #define __MMI_EXIF_PIXEL_X_DIMENSION__
  251. #define __MMI_EXIF_PIXEL_Y_DIMENSION__
  252. #define __MMI_EXIF_EXPOSURE_MODE__
  253. #define __MMI_EXIF_DIGITAL_ZOOM_RATIO__
  254. #define __MMI_EXIF_SCENE_CAPTURE_TYPE__
  255. #endif
  256. #endif
  257. #ifdef __MMI_CAMERA__
  258. #ifdef __MMI_MMS__
  259. #define __MMI_CAMERA_MMS_SUPPORT__
  260. #endif
  261. /****************************************************************************
  262. *
  263. * Camera General Features
  264. *
  265. *****************************************************************************/
  266. #if defined(CAMERA_MODULE)
  267. /***************************************************************************** 
  268. *
  269. *
  270. * MT6218B, MT6217
  271. *
  272. *
  273. *****************************************************************************/
  274. #ifdef HORIZONTAL_CAMERA
  275. #define __CAMERA_OSD_HORIZONTAL__
  276. #define __HORIZONTAL_CAMERA_WALLPAPER_ENABLE__
  277. #endif
  278. #if defined(PAP1301) || defined(PAP1302)
  279. /***************************************************************************** 
  280. *
  281. * Start of PAP1301, PAP1302
  282. *
  283. *****************************************************************************/
  284. /***************************************************************************** 
  285. * OSD
  286. *****************************************************************************/
  287. /* Zooming */
  288. #define __CAMERA_FEATURE_ZOOM__
  289. #define CAMERA_FEATURE_ZOOM_COUNT (3)
  290. #ifdef __MMI_CAMERA_ONLY__
  291. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT] = {10,20,40};
  292. #else
  293. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT];
  294. #endif
  295. /***************************************************************************** 
  296. * Option Menu 
  297. *****************************************************************************/
  298. /* menu [Camera Setting] [Image Setting] [Effect Setting] [Restore Default] will always exist */
  299. #if defined(PAP1302)
  300. #define __CAMERA_FEATURE_EFFECT__
  301. #else /* PAP1301 */
  302. //#define __CAMERA_FEATURE_EFFECT__
  303. #endif /* PAP1302 */
  304. #define __CAMERA_FEATURE_CONT_SHOT__
  305. #define __CAMERA_FEATURE_DELAY_TIMER__
  306. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  307. #define __CAMERA_FEATURE_SELF_CAPTURE__
  308. #endif
  309. #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  310. #define __CAMERA_FEATURE_STORAGE__
  311. #endif
  312. /***************************************************************************** 
  313. * Camera Setting
  314. *****************************************************************************/
  315. /********** settings  ***********/
  316.     /* turn off for internal project */
  317. //#define __CAMERA_FEATURE_LED_HIGHLIGHT__
  318. #define __CAMERA_FEATURE_SHUTTER_SOUND__
  319. #define __CAMERA_FEATURE_EV__
  320. //#define __CAMERA_FEATURE_NIGHT__
  321. //#define __CAMERA_FEATURE_CLOSEUP__
  322. #define __CAMERA_FEATURE_BANDING__
  323. /******** customizable led highlight *********/
  324. //#define __CAMERA_FEATURE_LED_HIGHLIGHT_ON_OFF__
  325. #define __CAMERA_FEATURE_LED_HIGHLIGHT_7_COLOR__
  326. /******* customizable shutter sound *********/
  327. #define __CAMERA_FEATURE_SHUTTER_SOUND_OFF__
  328. #define __CAMERA_FEATURE_SHUTTER_SOUND_1__
  329. #define __CAMERA_FEATURE_SHUTTER_SOUND_2__
  330. #define __CAMERA_FEATURE_SHUTTER_SOUND_3__
  331. /******* customizable ev *********/
  332. /* default will have off [ev 0] and [ev +1] [ev -1] menu if __CAMERA_FEATURE_EV__ is turn on */
  333. #define __CAMERA_FEATURE_EV_2__
  334. #define __CAMERA_FEATURE_EV_3__
  335. #define __CAMERA_FEATURE_EV_4__
  336. /***************************************************************************** 
  337. * Image Setting
  338. *****************************************************************************/
  339. /* Notice, [Image Size] and [Image Qty] will always exist */
  340. /******* customizable image size *********/
  341. /* size */
  342. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  343. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  344. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  345. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  346. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  347. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  348. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  349. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  350. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  351. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  352. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  353. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  354. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  355. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  356. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  357. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (128)
  358. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  359. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  360. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  361. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  362. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  363. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  364. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  365. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  366. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  367. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (128)
  368. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  369. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  370. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  371. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  372. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  373. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  374. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  375. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  376. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  377. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  378. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  379. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  380. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  381. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  382. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  383. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  384. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  385. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  386. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  387. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  388. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (56)
  389. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  390. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (160)
  391. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  392. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  393. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  394. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  395. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  396. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  397. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  398. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  399. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  400. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (160)
  401. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  402. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  403. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  404. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  405. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  406. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  407. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  408. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  409. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  410. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  411. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  412. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  413. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  414. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  415. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  416. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  417. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  418. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  419. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  420. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  421. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  422. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (176)
  423. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (220)
  424. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (176)
  425. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (132)
  426. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (176)
  427. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (132)
  428. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (176)
  429. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (132)
  430. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (176)
  431. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (132)
  432. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (176)
  433. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (220)
  434. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  435. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  436. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  437. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  438. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  439. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  440. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  441. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  442. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  443. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  444. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  445. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  446. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  447. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  448. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  449. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  450. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  451. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  452. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  453. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  454. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  455. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (240)
  456. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (320)
  457. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (240)
  458. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (180)
  459. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (240)
  460. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (180)
  461. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (240)
  462. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (180)
  463. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (240)
  464. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (180)
  465. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (240)
  466. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (320)
  467. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  468. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  469. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  470. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  471. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  472. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  473. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  474. #else /* other LCD size */
  475. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  476. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  477. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  478. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  479. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  480. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (120)
  481. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (120)
  482. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (120)
  483. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (120)
  484. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (120)
  485. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  486. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (120)
  487. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  488. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (120)
  489. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (120)
  490. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (120)
  491. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (120)
  492. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (120)
  493. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (120)
  494. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (120)
  495. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (120)
  496. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (120)
  497. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (120)
  498. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (120)
  499. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (120)
  500. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  501. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (10)
  502. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (10)
  503. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (10)
  504. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (10)
  505. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (10)
  506. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  507. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  508. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  509. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_WIDTH  (SUBLCD_WIDTH)
  510. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_HEIGHT  (SUBLCD_HEIGHT)
  511. #endif 
  512. /******* customizable image qty *********/
  513. #define __CAMERA_FEATURE_IMAGE_QTY_FINE__
  514. #define __CAMERA_FEATURE_IMAGE_QTY_HIGH__
  515. #define __CAMERA_FEATURE_IMAGE_QTY_NORMAL__
  516. #define __CAMERA_FEATURE_IMAGE_QTY_LOW__
  517. /******* customizable effect *********/
  518. #if defined(PAP1302)
  519. #define __CAMERA_FEATURE_EFFECT_NORMAL__
  520. #define __CAMERA_FEATURE_EFFECT_GRAYSCALE__
  521. #define __CAMERA_FEATURE_EFFECT_SEPIA__
  522. //#define __CAMERA_FEATURE_EFFECT_SEPIA_GREEN__
  523. //#define __CAMERA_FEATURE_EFFECT_SEPIA_BLUE__
  524. #define __CAMERA_FEATURE_EFFECT_COLOR_INVERT__
  525. //#define __CAMERA_FEATURE_EFFECT_GRAY_INVERT__
  526. //#define __CAMERA_FEATURE_EFFECT_BLACKBOARD__
  527. //#define __CAMERA_FEATURE_EFFECT_WHITEBOARD__
  528. //#define __CAMERA_FEATURE_EFFECT_COPPER_CARVING__
  529. //#define __CAMERA_FEATURE_EFFECT_BLUE_CARVING__
  530. //#define __CAMERA_FEATURE_EFFECT_EMBOSSMENT__
  531. //#define __CAMERA_FEATURE_EFFECT_CONTRAST__
  532. //#define __CAMERA_FEATURE_EFFECT_JEAN__
  533. //#define __CAMERA_FEATURE_EFFECT_SKETCH__
  534. //#define __CAMERA_FEATURE_EFFECT_OIL__
  535. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_1__
  536. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_2__
  537. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_3__
  538. #else /* PAP1301 */
  539. //#define __CAMERA_FEATURE_EFFECT_NORMAL__
  540. //#define __CAMERA_FEATURE_EFFECT_GRAYSCALE__
  541. //#define __CAMERA_FEATURE_EFFECT_SEPIA__
  542. //#define __CAMERA_FEATURE_EFFECT_SEPIA_GREEN__
  543. //#define __CAMERA_FEATURE_EFFECT_SEPIA_BLUE__
  544. //#define __CAMERA_FEATURE_EFFECT_COLOR_INVERT__
  545. //#define __CAMERA_FEATURE_EFFECT_GRAY_INVERT__
  546. //#define __CAMERA_FEATURE_EFFECT_BLACKBOARD__
  547. //#define __CAMERA_FEATURE_EFFECT_WHITEBOARD__
  548. //#define __CAMERA_FEATURE_EFFECT_COPPER_CARVING__
  549. //#define __CAMERA_FEATURE_EFFECT_BLUE_CARVING__
  550. //#define __CAMERA_FEATURE_EFFECT_EMBOSSMENT__
  551. //#define __CAMERA_FEATURE_EFFECT_CONTRAST__
  552. //#define __CAMERA_FEATURE_EFFECT_JEAN__
  553. //#define __cCAMERA_FEATURE_EFFECT_SKETCH__
  554. //#define __CAMERA_FEATURE_EFFECT_OIL__
  555. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_1__
  556. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_2__
  557. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_3__
  558. #endif /* PAP1302 */
  559. /******* customizable cont shot *********/
  560. /* Notice, [Cont shot Off] and [Cont shot 1] will always exist if turn on __CAMERA_FEATURE_CONT_SHOT__*/
  561. #define __CAMERA_FEATURE_CONT_SHOT_2__
  562. #define __CAMERA_FEATURE_CONT_SHOT_3__
  563. #define __CAMERA_FEATURE_CONT_SHOT_BURST__
  564. //#define __CAMERA_FEATURE_CONT_SHOT_TILE__ /* only MT6219 or after support */
  565. #define CAMERA_FEATURE_CONT_SHOT_1_COUNT (1)
  566. #define CAMERA_FEATURE_CONT_SHOT_2_COUNT (3)
  567. #define CAMERA_FEATURE_CONT_SHOT_3_COUNT (5)
  568. #define CAMERA_FEATURE_CONT_SHOT_BURST_COUNT  (12)
  569. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_ROW (4)
  570. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_COL (3)
  571. /******* customizable delay timer *********/
  572. /* Notice, [Delay Timer Off] and [Delay Timer 1] will always exist if turn on __CAMERA_FEATURE_DELAY_TIMER__*/
  573. #define __CAMERA_FEATURE_DELAY_TIMER_2__
  574. #define __CAMERA_FEATURE_DELAY_TIMER_3__
  575. #define CAMERA_FEATURE_DELAY_TIMER_1_DURATION (5)
  576. #define CAMERA_FEATURE_DELAY_TIMER_2_DURATION (10)
  577. #define CAMERA_FEATURE_DELAY_TIMER_3_DURATION (15)
  578. /* Misc define */
  579. #define CAMERA_SHUTTER_SOUND_VOLUMN (LEVEL5) /* LEVEL1 - LEVEL7 */
  580. #define CAMERA_SHORTCUT_KEY (KEY_CAMERA)
  581. #define CAMERA_CAPTURE_KEY (KEY_CAMERA)
  582. #define CAMERA_CAPTURE_EXTRA_KEY1 (KEY_IP) /* if no extra, set -1 */
  583. #define CAMERA_CAPTURE_EXTRA_KEY2 (-1)
  584. #define CAMERA_TOGGLE_SELF_CAPTURE_KEY (KEY_STAR)
  585. #define CAMERA_TOGGLE_HIDE_OSD_KEY (KEY_POUND)
  586. #if defined(PAP1302)
  587. #define CAMERA_EFFECT_KEY (KEY_1)
  588. #define CAMERA_WB_KEY (KEY_2)
  589. #define CAMERA_FLASH_KEY (-1)
  590. #define CAMERA_NIGHT_KEY (-1)
  591. #define CAMERA_LED_HIGHLIGHT_KEY (-1)
  592. #define CAMERA_CONT_SHOT_KEY (KEY_5)
  593. #define CAMERA_DELAY_TIMER_KEY (KEY_4)
  594. #define CAMERA_IMAGE_QTY_KEY (KEY_6)
  595. #define CAMERA_IMAGE_SIZE_KEY (KEY_3)
  596. #define CAMERA_DSC_MODE_KEY (-1)
  597. #define CAMERA_ISO_KEY (-1)
  598. #define CAMERA_AE_METER_KEY (-1)
  599. #define CAMERA_STORAGE_KEY (-1)
  600. #else /* PAP1301 */
  601. #define CAMERA_EFFECT_KEY (-1) /* if no use hotkey, set -1 */
  602. #define CAMERA_WB_KEY (KEY_1)
  603. #define CAMERA_FLASH_KEY (-1)
  604. #define CAMERA_NIGHT_KEY (-1)
  605. #define CAMERA_LED_HIGHLIGHT_KEY (-1)
  606. #define CAMERA_CONT_SHOT_KEY (KEY_4)
  607. #define CAMERA_DELAY_TIMER_KEY (KEY_3)
  608. #define CAMERA_IMAGE_QTY_KEY (KEY_5)
  609. #define CAMERA_IMAGE_SIZE_KEY (KEY_2)
  610. #define CAMERA_DSC_MODE_KEY (-1)
  611. #define CAMERA_ISO_KEY (-1)
  612. #define CAMERA_AE_METER_KEY (-1)
  613. #define CAMERA_STORAGE_KEY (-1)
  614. #endif /* PAP1302 */
  615. /***************************************************************************** 
  616. * Default Setting 
  617. *****************************************************************************/
  618. /*********** Preview ***********/
  619. #define CAMERA_DEFAULT_SETTING_ZOOM_IDX (0) /* index - start from 0 */
  620. #define CAMERA_DEFAULT_SETTING_WB CAMERA_SETTING_WB_AUTO
  621. #define CAMERA_DEFAULT_SETTING_FLASH (0)
  622. #define CAMERA_DEFAULT_SETTING_LED_HIGHLIGHT CAMERA_SETTING_LED_HIGHLIGHT_OFF
  623. #define CAMERA_DEFAULT_SETTING_SHUTTER_SOUND CAMERA_SETTING_SHUTTER_SOUND_1
  624. #define CAMERA_DEFAULT_SETTING_EV CAMERA_SETTING_EV_0
  625. #define CAMERA_DEFAULT_SETTING_NIGHT (0)
  626. #define CAMERA_DEFAULT_SETTING_CLOSEUP (0)
  627. #define CAMERA_DEFAULT_SETTING_BANDING CAMERA_SETTING_BANDING_60HZ
  628. #define CAMERA_DEFAULT_SETTING_EFFECT (0)
  629. #define CAMERA_DEFAULT_SETTING_ADD_FRAME CAMERA_SETTING_ADD_FRAME_OFF
  630. #define CAMERA_DEFAULT_SETTING_CONT_SHOT CAMERA_SETTING_CONT_SHOT_OFF
  631. #define CAMERA_DEFAULT_SETTING_DELAY_TIMER CAMERA_SETTING_DELAY_TIMER_OFF
  632. #define CAMERA_DEFAULT_SETTING_AE_METER (0)
  633. #define CAMERA_DEFAULT_SETTING_ISO (0)
  634. #define CAMERA_DEFAULT_SETTING_DSC_MODE (0)
  635. #define CAMERA_DEFAULT_SETTING_STORAGE CAMERA_SETTING_STORAGE_PHONE
  636. #define CAMERA_DEFAULT_SETTING_AUTOFOCUS (0)
  637. /* custom fx */
  638. #define CAMERA_DEFAULT_SETTING_BRIGHTNESS (128)
  639. #define CAMERA_DEFAULT_SETTING_SATURATION (128)
  640. #define CAMERA_DEFAULT_SETTING_CONTRAST (128)
  641. #define CAMERA_DEFAULT_SETTING_HUE (0)
  642. /* led highlight/flash value */
  643. #define CAMERA_DEFAULT_PREVIEW_LED_VALUE (80)
  644. #define CAMERA_DEFAULT_CAPTURE_LED_VALUE (80)
  645. #define CAMERA_DEFAULT_PREVIEW_FLASH_VALUE (100)
  646. #define CAMERA_DEFAULT_CAPTURE_FLASH_VALUE (100)
  647. /* capture */
  648. #define CAMERA_DEFAULT_SETTING_IMAGE_SIZE CAMERA_SETTING_IMAGE_SIZE_SS
  649. #define CAMERA_DEFAULT_SETTING_IMAGE_QTY CAMERA_SETTING_IMAGE_QTY_NORMAL
  650. /* preview rotation */
  651. #if defined(SENSOR_ON_BODY)
  652. #if defined(SENSOR_ROTATE_0)
  653. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  654. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  655. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  656. #elif defined(SENSOR_ROTATE_180)
  657. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  658. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  659. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  660. #else
  661. /* rotate 90, 270 not used yet */
  662. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  663. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  664. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  665. #endif
  666. #elif defined(SENSOR_ON_COVER)
  667. #if defined(SENSOR_ROTATE_0)
  668. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  669. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  670. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  671. #elif defined(SENSOR_ROTATE_180)
  672. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  673. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  674. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  675. #else
  676. /* rotate 90, 270 not used yet */
  677. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  678. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  679. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  680. #endif
  681. #else /* not define SENSOR_LCATION */
  682. #if defined(SENSOR_ROTATE_0)
  683. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  684. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  685. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  686. #elif defined(SENSOR_ROTATE_180)
  687. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  688. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  689. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  690. #else
  691. /* rotate 90, 270 not used yet */
  692. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  693. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  694. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  695. #endif
  696. #endif /* SENSOR_LOCATION */
  697. /* lcd rotate */
  698. #ifdef HORIZONTAL_CAMERA
  699. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_RORATE_270
  700. #else
  701. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_ROTATE_0
  702. #endif
  703. #define CAMERA_LCM_SUBLCD_CLAM_OPEN_ROTATE CAMERA_LCM_ROTATE_180
  704. #define CAMERA_LCM_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_LCM_ROTATE_0
  705. /* display rotate */
  706. #define CAMERA_DISPLAY_ROTATE_0 CAMERA_PREVIEW_ROTATE_0
  707. #define CAMERA_DISPLAY_ROTATE_90 CAMERA_PREVIEW_ROTATE_90
  708. #define CAMERA_DISPLAY_ROTATE_180 CAMERA_PREVIEW_ROTATE_180 
  709. #define CAMERA_DISPLAY_ROTATE_270 CAMERA_PREVIEW_RORATE_270
  710. #define CAMERA_DISPLAY_ROTATE_RESET 255
  711. /* Factory mode */
  712. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  713. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  714. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (128)
  715. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  716. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  717. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (160)
  718. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  719. #define CAMERA_FACTORY_PREVIEW_WIDTH   (176)
  720. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (220)
  721. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  722. #define CAMERA_FACTORY_PREVIEW_WIDTH   (240)
  723. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (320)
  724. #else /* other LCD size */
  725. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  726. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (96)
  727. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  728. /***************************************************************************** 
  729. * Manual White Balance 
  730. *****************************************************************************/
  731. #define __CAMERA_FEATURE_WB__
  732. #define __CAMERA_FEATURE_WB_AUTO__
  733. #define __CAMERA_FEATURE_WB_DAYLIGHT__
  734. #define __CAMERA_FEATURE_WB_TUNGSTEN__
  735. #define __CAMERA_FEATURE_WB_FLUORESCENT__
  736. //#define __CAMERA_FEATURE_WB_CLOUD__
  737. //#define __CAMERA_FEATURE_WB_INCANDESCENCE__
  738. //#define __CAMERA_FEATURE_WB_MANUAL__
  739. /***************************************************************************** 
  740. * Flash Mode
  741. *****************************************************************************/
  742. /***************************************************************************** 
  743. * Auto Exposure 
  744. *****************************************************************************/
  745. /***************************************************************************** 
  746. * Auto Focus  
  747. *****************************************************************************/
  748. /***************************************************************************** 
  749. * DSC Mode 
  750. *****************************************************************************/
  751. /***************************************************************************** 
  752. * Add Frame 
  753. *****************************************************************************/
  754. #define __CAMERA_FEATURE_ADD_FRAME__
  755. #define __CAMERA_FEATURE_ADD_FRAME_NORMAL__
  756. //#define __CAMERA_FEATURE_ADD_FRAME_TILESHOT__
  757. #define __CAMERA_FEATURE_ADD_FRAME_1__
  758. #define __CAMERA_FEATURE_ADD_FRAME_2__
  759.     /*
  760.     #define __CAMERA_FEATURE_ADD_FRAME_3__
  761. #define __CAMERA_FEATURE_ADD_FRAME_4__
  762. #define __CAMERA_FEATURE_ADD_FRAME_5__
  763. #define __CAMERA_FEATURE_ADD_FRAME_6__
  764. #define __CAMERA_FEATURE_ADD_FRAME_7__
  765. #define __CAMERA_FEATURE_ADD_FRAME_8__
  766. #define __CAMERA_FEATURE_ADD_FRAME_9__
  767. #define __CAMERA_FEATURE_ADD_FRAME_10__
  768. */
  769. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_1__ /* not implment yet */
  770. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_2__ /* not implment yet */
  771. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_3__ /* not implment yet */
  772. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_4__ /* not implment yet */
  773. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_5__ /* not implment yet */
  774. /***************************************************************************** 
  775. * END OF SETTING
  776. *****************************************************************************/
  777. /***************************************************************************** 
  778. *
  779. * End of PAP1301, PAP1302
  780. *
  781. *****************************************************************************/
  782. #elif defined(AIT700) || defined(AIT701)
  783. /***************************************************************************** 
  784. *
  785. * Start of AIT700, AIT701
  786. *
  787. *****************************************************************************/
  788. /***************************************************************************** 
  789. * OSD
  790. *****************************************************************************/
  791. /* Zooming */
  792. #define __CAMERA_FEATURE_ZOOM__
  793. #define CAMERA_FEATURE_ZOOM_COUNT (3)
  794.    #ifdef __MMI_CAMERA_ONLY__
  795. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT] = {10,20,40};
  796. #else
  797. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT];
  798. #endif
  799. /***************************************************************************** 
  800. * Option Menu 
  801. *****************************************************************************/
  802. /* menu [Camera Setting] [Image Setting] [Effect Setting] [Restore Default] will always exist */
  803. #define __CAMERA_FEATURE_EFFECT__
  804. #define __CAMERA_FEATURE_CONT_SHOT__
  805. #define __CAMERA_FEATURE_DELAY_TIMER__
  806. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  807. #define __CAMERA_FEATURE_SELF_CAPTURE__
  808. #endif
  809. #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  810. #define __CAMERA_FEATURE_STORAGE__
  811. #endif
  812. /***************************************************************************** 
  813. * Camera Setting
  814. *****************************************************************************/
  815. /********** settings  ***********/
  816. #define __CAMERA_FEATURE_LED_HIGHLIGHT__
  817. #define __CAMERA_FEATURE_SHUTTER_SOUND__
  818. #define __CAMERA_FEATURE_EV__
  819. #define __CAMERA_FEATURE_NIGHT__
  820. //#define __CAMERA_FEATURE_CLOSEUP__
  821. #define __CAMERA_FEATURE_BANDING__
  822. /******** customizable led highlight *********/
  823. //#define __CAMERA_FEATURE_LED_HIGHLIGHT_ON_OFF__
  824. #define __CAMERA_FEATURE_LED_HIGHLIGHT_7_COLOR__
  825. /******* customizable shutter sound *********/
  826. #define __CAMERA_FEATURE_SHUTTER_SOUND_OFF__
  827. #define __CAMERA_FEATURE_SHUTTER_SOUND_1__
  828. #define __CAMERA_FEATURE_SHUTTER_SOUND_2__
  829. #define __CAMERA_FEATURE_SHUTTER_SOUND_3__
  830. /******* customizable ev *********/
  831. /* default will have off [ev 0] and [ev +1] [ev -1] menu if __CAMERA_FEATURE_EV__ is turn on */
  832. #define __CAMERA_FEATURE_EV_2__
  833. #define __CAMERA_FEATURE_EV_3__
  834. #define __CAMERA_FEATURE_EV_4__
  835. /***************************************************************************** 
  836. * Image Setting
  837. *****************************************************************************/
  838. /* Notice, [Image Size] and [Image Qty] will always exist */
  839. /******* customizable image size *********/
  840. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  841. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  842. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  843. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  844. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  845. /******* customizable image size *********/
  846. /* size */
  847. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  848. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  849. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  850. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  851. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  852. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  853. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  854. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  855. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  856. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  857. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  858. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  859. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  860. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  861. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  862. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (128)
  863. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  864. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  865. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  866. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  867. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  868. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  869. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  870. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  871. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  872. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (128)
  873. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  874. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  875. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  876. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  877. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  878. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  879. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  880. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  881. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  882. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  883. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  884. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  885. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  886. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  887. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  888. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  889. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  890. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  891. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  892. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  893. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  894. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  895. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (160)
  896. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  897. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  898. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  899. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  900. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  901. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  902. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  903. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  904. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  905. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (160)
  906. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  907. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  908. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  909. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  910. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  911. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  912. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  913. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  914. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  915. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  916. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  917. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  918. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  919. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  920. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  921. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  922. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  923. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  924. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  925. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  926. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  927. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (176)
  928. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (220)
  929. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (176)
  930. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (132)
  931. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (176)
  932. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (132)
  933. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (176)
  934. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (132)
  935. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (176)
  936. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (132)
  937. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (176)
  938. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (220)
  939. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  940. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  941. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  942. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  943. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  944. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  945. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  946. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  947. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  948. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  949. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  950. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  951. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  952. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  953. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  954. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  955. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  956. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  957. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  958. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  959. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  960. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (176)
  961. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (220)
  962. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (240)
  963. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (180)
  964. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (240)
  965. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (180)
  966. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (240)
  967. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (180)
  968. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (240)
  969. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (180)
  970. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (240)
  971. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (320)
  972. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  973. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  974. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  975. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  976. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  977. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  978. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  979. #else /* other LCD size */
  980. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  981. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  982. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  983. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  984. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  985. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (120)
  986. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (120)
  987. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (120)
  988. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (120)
  989. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (120)
  990. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  991. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (120)
  992. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  993. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (120)
  994. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (120)
  995. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (120)
  996. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (120)
  997. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (120)
  998. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (120)
  999. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (120)
  1000. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (120)
  1001. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (120)
  1002. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (120)
  1003. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (120)
  1004. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (120)
  1005. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1006. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (10)
  1007. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (10)
  1008. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (10)
  1009. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (10)
  1010. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (10)
  1011. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1012. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  1013. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* not used */
  1014. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  1015. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_WIDTH  (SUBLCD_WIDTH)
  1016. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_HEIGHT  (SUBLCD_HEIGHT)
  1017. #endif 
  1018. /******* customizable image qty *********/
  1019. //#define __CAMERA_FEATURE_IMAGE_QTY_FINE__
  1020. #define __CAMERA_FEATURE_IMAGE_QTY_HIGH__
  1021. #define __CAMERA_FEATURE_IMAGE_QTY_NORMAL__
  1022. #define __CAMERA_FEATURE_IMAGE_QTY_LOW__
  1023. /******* customizable effect *********/
  1024. #define __CAMERA_FEATURE_EFFECT_NORMAL__
  1025. #define __CAMERA_FEATURE_EFFECT_GRAYSCALE__
  1026. #define __CAMERA_FEATURE_EFFECT_SEPIA__
  1027. //#define __CAMERA_FEATURE_EFFECT_SEPIA_GREEN__
  1028. //#define __CAMERA_FEATURE_EFFECT_SEPIA_BLUE__
  1029. #define __CAMERA_FEATURE_EFFECT_COLOR_INVERT__
  1030. #define __CAMERA_FEATURE_EFFECT_GRAY_INVERT__
  1031. #define __CAMERA_FEATURE_EFFECT_BLACKBOARD__
  1032. #define __CAMERA_FEATURE_EFFECT_WHITEBOARD__
  1033. //#define __CAMERA_FEATURE_EFFECT_COPPER_CARVING__
  1034. //#define __CAMERA_FEATURE_EFFECT_BLUE_CARVING__
  1035. //#define __CAMERA_FEATURE_EFFECT_EMBOSSMENT__
  1036. //#define __CAMERA_FEATURE_EFFECT_CONTRAST__
  1037. //#define __CAMERA_FEATURE_EFFECT_JEAN__
  1038. //#define __CAMERA_FEATURE_EFFECT_SKETCH__
  1039. //#define __CAMERA_FEATURE_EFFECT_OIL__
  1040. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_1__
  1041. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_2__
  1042. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_3__
  1043. /******* customizable cont shot *********/
  1044. /* Notice, [Cont shot Off] and [Cont shot 1] will always exist if turn on __CAMERA_FEATURE_CONT_SHOT__*/
  1045. #define __CAMERA_FEATURE_CONT_SHOT_2__
  1046. #define __CAMERA_FEATURE_CONT_SHOT_3__
  1047. //#define __CAMERA_FEATURE_CONT_SHOT_BURST__
  1048. //#define __CAMERA_FEATURE_CONT_SHOT_TILE__ /* only MT6219 or after support */
  1049. #define CAMERA_FEATURE_CONT_SHOT_1_COUNT (1)
  1050. #define CAMERA_FEATURE_CONT_SHOT_2_COUNT (3)
  1051. #define CAMERA_FEATURE_CONT_SHOT_3_COUNT (5)
  1052. #define CAMERA_FEATURE_CONT_SHOT_BURST_COUNT  (12)
  1053. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_ROW (4)
  1054. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_COL (3)
  1055. /******* customizable delay timer *********/
  1056. /* Notice, [Delay Timer Off] and [Delay Timer 1] will always exist if turn on __CAMERA_FEATURE_DELAY_TIMER__*/
  1057. #define __CAMERA_FEATURE_DELAY_TIMER_2__
  1058. #define __CAMERA_FEATURE_DELAY_TIMER_3__
  1059. #define CAMERA_FEATURE_DELAY_TIMER_1_DURATION (5)
  1060. #define CAMERA_FEATURE_DELAY_TIMER_2_DURATION (10)
  1061. #define CAMERA_FEATURE_DELAY_TIMER_3_DURATION (15)
  1062. /* Misc define */
  1063. #define CAMERA_SHUTTER_SOUND_VOLUMN (LEVEL5) /* LEVEL1 - LEVEL7 */
  1064. #define CAMERA_SHORTCUT_KEY (KEY_CAMERA)
  1065. #define CAMERA_CAPTURE_KEY (KEY_CAMERA)
  1066. #define CAMERA_CAPTURE_EXTRA_KEY1 (KEY_IP) /* if no extra, set -1 */
  1067. #define CAMERA_CAPTURE_EXTRA_KEY2 (-1)
  1068. #define CAMERA_TOGGLE_SELF_CAPTURE_KEY (KEY_STAR)
  1069. #define CAMERA_TOGGLE_HIDE_OSD_KEY (KEY_POUND)
  1070. #define CAMERA_EFFECT_KEY (KEY_1) /* if no use hotkey, set -1 */
  1071. #define CAMERA_WB_KEY (KEY_2)
  1072. #define CAMERA_FLASH_KEY (-1)
  1073. #define CAMERA_NIGHT_KEY (KEY_8)
  1074. #define CAMERA_LED_HIGHLIGHT_KEY (KEY_3)
  1075. #define CAMERA_CONT_SHOT_KEY (KEY_5)
  1076. #define CAMERA_DELAY_TIMER_KEY (KEY_4)
  1077. #define CAMERA_IMAGE_QTY_KEY (KEY_6)
  1078. #define CAMERA_IMAGE_SIZE_KEY (KEY_7)
  1079. #define CAMERA_STORAGE_KEY (-1)
  1080. /***************************************************************************** 
  1081. * Default Setting 
  1082. *****************************************************************************/
  1083. /*********** Preview ***********/
  1084. #define CAMERA_DEFAULT_SETTING_ZOOM_IDX (0) /* index - start from 0 */
  1085. #define CAMERA_DEFAULT_SETTING_WB CAMERA_SETTING_WB_AUTO
  1086. #define CAMERA_DEFAULT_SETTING_FLASH (0)
  1087. #define CAMERA_DEFAULT_SETTING_LED_HIGHLIGHT CAMERA_SETTING_LED_HIGHLIGHT_OFF
  1088. #define CAMERA_DEFAULT_SETTING_SHUTTER_SOUND CAMERA_SETTING_SHUTTER_SOUND_1
  1089. #define CAMERA_DEFAULT_SETTING_EV CAMERA_SETTING_EV_0
  1090. #define CAMERA_DEFAULT_SETTING_NIGHT CAMERA_SETTING_NIGHT_OFF
  1091. #define CAMERA_DEFAULT_SETTING_CLOSEUP (0)
  1092. #define CAMERA_DEFAULT_SETTING_BANDING CAMERA_SETTING_BANDING_60HZ
  1093. #define CAMERA_DEFAULT_SETTING_EFFECT CAMERA_SETTING_EFFECT_NORMAL
  1094. #define CAMERA_DEFAULT_SETTING_ADD_FRAME CAMERA_SETTING_ADD_FRAME_OFF
  1095. #define CAMERA_DEFAULT_SETTING_CONT_SHOT CAMERA_SETTING_CONT_SHOT_OFF
  1096. #define CAMERA_DEFAULT_SETTING_DELAY_TIMER CAMERA_SETTING_DELAY_TIMER_OFF
  1097. #define CAMERA_DEFAULT_SETTING_AE_METER (0)
  1098. #define CAMERA_DEFAULT_SETTING_ISO (0)
  1099. #define CAMERA_DEFAULT_SETTING_DSC_MODE (0)
  1100. #define CAMERA_DEFAULT_SETTING_STORAGE CAMERA_SETTING_STORAGE_PHONE
  1101. #define CAMERA_DEFAULT_SETTING_AUTOFOCUS (0)
  1102. /* custom fx */
  1103. #define CAMERA_DEFAULT_SETTING_BRIGHTNESS (128)
  1104. #define CAMERA_DEFAULT_SETTING_SATURATION (128)
  1105. #define CAMERA_DEFAULT_SETTING_CONTRAST (128)
  1106. #define CAMERA_DEFAULT_SETTING_HUE (0)
  1107. /* led highlight/flash value */
  1108. #define CAMERA_DEFAULT_PREVIEW_LED_VALUE (80)
  1109. #define CAMERA_DEFAULT_CAPTURE_LED_VALUE (80)
  1110. #define CAMERA_DEFAULT_PREVIEW_FLASH_VALUE (100)
  1111. #define CAMERA_DEFAULT_CAPTURE_FLASH_VALUE (100)
  1112. /* capture */
  1113. #define CAMERA_DEFAULT_SETTING_IMAGE_SIZE CAMERA_SETTING_IMAGE_SIZE_SS
  1114. #define CAMERA_DEFAULT_SETTING_IMAGE_QTY CAMERA_SETTING_IMAGE_QTY_NORMAL
  1115. /* preview rotation */
  1116. #if defined(SENSOR_ON_BODY)
  1117. #if defined(SENSOR_ROTATE_0)
  1118. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1119. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1120. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1121. #elif defined(SENSOR_ROTATE_180)
  1122. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1123. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1124. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1125. #else
  1126. /* rotate 90, 270 not used yet */
  1127. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1128. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1129. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1130. #endif
  1131. #elif defined(SENSOR_ON_COVER)
  1132. #if defined(SENSOR_ROTATE_0)
  1133. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1134. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1135. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1136. #elif defined(SENSOR_ROTATE_180)
  1137. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1138. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1139. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1140. #else
  1141. /* rotate 90, 270 not used yet */
  1142. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1143. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1144. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1145. #endif
  1146. #else /* not define SENSOR_LCATION */
  1147. #if defined(SENSOR_ROTATE_0)
  1148. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1149. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1150. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1151. #elif defined(SENSOR_ROTATE_180)
  1152. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1153. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1154. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1155. #else
  1156. /* rotate 90, 270 not used yet */
  1157. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1158. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1159. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1160. #endif
  1161. #endif /* SENSOR_LOCATION */
  1162. /* lcd rotate */
  1163. #ifdef HORIZONTAL_CAMERA
  1164. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_RORATE_270
  1165. #else
  1166. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_ROTATE_0
  1167. #endif
  1168. #define CAMERA_LCM_SUBLCD_CLAM_OPEN_ROTATE CAMERA_LCM_ROTATE_180
  1169. #define CAMERA_LCM_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_LCM_ROTATE_0
  1170. /* display rotate */
  1171. #define CAMERA_DISPLAY_ROTATE_0 CAMERA_PREVIEW_ROTATE_0
  1172. #define CAMERA_DISPLAY_ROTATE_90 CAMERA_PREVIEW_ROTATE_90
  1173. #define CAMERA_DISPLAY_ROTATE_180 CAMERA_PREVIEW_ROTATE_180 
  1174. #define CAMERA_DISPLAY_ROTATE_270 CAMERA_PREVIEW_RORATE_270
  1175. #define CAMERA_DISPLAY_ROTATE_RESET 255
  1176. /* Factory mode */
  1177. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  1178. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1179. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (128)
  1180. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  1181. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1182. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (160)
  1183. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  1184. #define CAMERA_FACTORY_PREVIEW_WIDTH   (176)
  1185. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (220)
  1186. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  1187. #define CAMERA_FACTORY_PREVIEW_WIDTH   (240)
  1188. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (320)
  1189. #else /* other LCD size */
  1190. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1191. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (96)
  1192. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  1193. /***************************************************************************** 
  1194. * Manual White Balance 
  1195. *****************************************************************************/
  1196. #define __CAMERA_FEATURE_WB__
  1197. #define __CAMERA_FEATURE_WB_AUTO__
  1198. #define __CAMERA_FEATURE_WB_DAYLIGHT__
  1199. #define __CAMERA_FEATURE_WB_TUNGSTEN__
  1200. #define __CAMERA_FEATURE_WB_FLUORESCENT__
  1201. //#define __CAMERA_FEATURE_WB_CLOUD__
  1202. //#define __CAMERA_FEATURE_WB_INCANDESCENCE__
  1203. /***************************************************************************** 
  1204. * Flash Mode
  1205. *****************************************************************************/
  1206. /***************************************************************************** 
  1207. * Auto Exposure 
  1208. *****************************************************************************/
  1209. /***************************************************************************** 
  1210. * Auto Focus  
  1211. *****************************************************************************/
  1212. /***************************************************************************** 
  1213. * DSC Mode 
  1214. *****************************************************************************/
  1215. /***************************************************************************** 
  1216. * Add Frame 
  1217. *****************************************************************************/
  1218. #define __CAMERA_FEATURE_ADD_FRAME__
  1219. #define __CAMERA_FEATURE_ADD_FRAME_NORMAL__
  1220. //#define __CAMERA_FEATURE_ADD_FRAME_TILESHOT__
  1221. #define __CAMERA_FEATURE_ADD_FRAME_1__
  1222. #define __CAMERA_FEATURE_ADD_FRAME_2__
  1223.     /*
  1224.     #define __CAMERA_FEATURE_ADD_FRAME_3__
  1225. #define __CAMERA_FEATURE_ADD_FRAME_4__
  1226. #define __CAMERA_FEATURE_ADD_FRAME_5__
  1227. #define __CAMERA_FEATURE_ADD_FRAME_6__
  1228. #define __CAMERA_FEATURE_ADD_FRAME_7__
  1229. #define __CAMERA_FEATURE_ADD_FRAME_8__
  1230. #define __CAMERA_FEATURE_ADD_FRAME_9__
  1231. #define __CAMERA_FEATURE_ADD_FRAME_10__
  1232. */
  1233. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_1__ /* not implment yet */
  1234. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_2__ /* not implment yet */
  1235. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_3__ /* not implment yet */
  1236. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_4__ /* not implment yet */
  1237. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_5__ /* not implment yet */
  1238. /***************************************************************************** 
  1239. * END OF SETTING
  1240. *****************************************************************************/
  1241. /***************************************************************************** 
  1242. *
  1243. * End of AIT700, AIT701
  1244. *
  1245. *****************************************************************************/
  1246. #elif defined(AIT800) || defined(AIT703)
  1247. /***************************************************************************** 
  1248. *
  1249. * Start of AIT800, AIT703
  1250. *
  1251. *****************************************************************************/
  1252. /***************************************************************************** 
  1253. * OSD
  1254. *****************************************************************************/
  1255. /* Zooming */
  1256. #define __CAMERA_FEATURE_ZOOM__
  1257. #define CAMERA_FEATURE_ZOOM_COUNT (3)
  1258. #ifdef __MMI_CAMERA_ONLY__
  1259. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT] = {10,20,40};
  1260. #else
  1261. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT];
  1262. #endif
  1263. /***************************************************************************** 
  1264. * Option Menu 
  1265. *****************************************************************************/
  1266. /* menu [Camera Setting] [Image Setting] [Effect Setting] [Restore Default] will always exist */
  1267. #define __CAMERA_FEATURE_EFFECT__
  1268. #define __CAMERA_FEATURE_CONT_SHOT__
  1269. #define __CAMERA_FEATURE_DELAY_TIMER__
  1270. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  1271. #define __CAMERA_FEATURE_SELF_CAPTURE__
  1272. #endif
  1273. #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  1274. #define __CAMERA_FEATURE_STORAGE__
  1275. #endif
  1276. /***************************************************************************** 
  1277. * Camera Setting
  1278. *****************************************************************************/
  1279. /********** settings  ***********/
  1280. //#define __CAMERA_FEATURE_LED_HIGHLIGHT__
  1281. #define __CAMERA_FEATURE_SHUTTER_SOUND__
  1282. #define __CAMERA_FEATURE_EV__
  1283. #define __CAMERA_FEATURE_NIGHT__
  1284. //#define __CAMERA_FEATURE_CLOSEUP__
  1285. #define __CAMERA_FEATURE_BANDING__
  1286. /******** customizable led highlight *********/
  1287. //#define __CAMERA_FEATURE_LED_HIGHLIGHT_ON_OFF__
  1288. //#define __CAMERA_FEATURE_LED_HIGHLIGHT_7_COLOR__
  1289. /******* customizable shutter sound *********/
  1290. #define __CAMERA_FEATURE_SHUTTER_SOUND_OFF__
  1291. #define __CAMERA_FEATURE_SHUTTER_SOUND_1__
  1292. #define __CAMERA_FEATURE_SHUTTER_SOUND_2__
  1293. #define __CAMERA_FEATURE_SHUTTER_SOUND_3__
  1294. /******* customizable ev *********/
  1295. /* default will have off [ev 0] and [ev +1] [ev -1] menu if __CAMERA_FEATURE_EV__ is turn on */
  1296. #define __CAMERA_FEATURE_EV_2__
  1297. #define __CAMERA_FEATURE_EV_3__
  1298. #define __CAMERA_FEATURE_EV_4__
  1299. /***************************************************************************** 
  1300. * Image Setting
  1301. *****************************************************************************/
  1302. /* Notice, [Image Size] and [Image Qty] will always exist */
  1303. /******* customizable image size *********/
  1304. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1305. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1306. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1307. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1308. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1309. /******* customizable image size *********/
  1310. /* size */
  1311. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  1312. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1313. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1314. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1315. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1316. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1317. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (1280)
  1318. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (1024)
  1319. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (640)
  1320. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (480)
  1321. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (320)
  1322. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (240)
  1323. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (160)
  1324. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  1325. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  1326. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (128)
  1327. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  1328. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (103)
  1329. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  1330. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  1331. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  1332. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  1333. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  1334. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  1335. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  1336. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (128)
  1337. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1338. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1339. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1340. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1341. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (40)
  1342. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (40)
  1343. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1344. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  1345. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1346. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1347. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1348. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1349. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1350. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (1280)
  1351. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (1024)
  1352. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (640)
  1353. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (480)
  1354. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (320)
  1355. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (240)
  1356. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (160)
  1357. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  1358. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  1359. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (160)
  1360. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  1361. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (103)
  1362. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  1363. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  1364. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  1365. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  1366. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  1367. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  1368. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  1369. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (160)
  1370. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1371. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1372. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1373. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1374. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (40)
  1375. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (40)
  1376. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1377. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  1378. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1379. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1380. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1381. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1382. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1383. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (1280)
  1384. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (1024)
  1385. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (640)
  1386. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (480)
  1387. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (320)
  1388. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (240)
  1389. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (160)
  1390. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  1391. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (176)
  1392. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (220)
  1393. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (176)
  1394. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (141)
  1395. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (176)
  1396. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (132)
  1397. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (176)
  1398. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (132)
  1399. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (176)
  1400. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (132)
  1401. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (176)
  1402. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (220)
  1403. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1404. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1405. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1406. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1407. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (40)
  1408. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (40)
  1409. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1410. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  1411. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1412. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1413. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1414. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1415. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1416. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (1280)
  1417. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (1024)
  1418. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (640)
  1419. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (480)
  1420. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (320)
  1421. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (240)
  1422. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (160)
  1423. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  1424. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (240)
  1425. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (320)
  1426. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (240)
  1427. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (192)
  1428. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (240)
  1429. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (180)
  1430. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (240)
  1431. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (180)
  1432. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (240)
  1433. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (180)
  1434. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (240)
  1435. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (320)
  1436. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1437. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1438. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1439. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1440. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (40)
  1441. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (40)
  1442. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1443. #else /* other LCD size */
  1444. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1445. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1446. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1447. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1448. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1449. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (120)
  1450. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (120)
  1451. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (120)
  1452. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (120)
  1453. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (120)
  1454. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  1455. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (120)
  1456. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (120)
  1457. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (120)
  1458. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (120)
  1459. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (120)
  1460. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (120)
  1461. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (120)
  1462. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (120)
  1463. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (120)
  1464. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (120)
  1465. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (120)
  1466. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (120)
  1467. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (120)
  1468. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (120)
  1469. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1470. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (10)
  1471. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (10)
  1472. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (10)
  1473. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (10)
  1474. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (10)
  1475. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1476. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  1477. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1478. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  1479. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_WIDTH  (SUBLCD_WIDTH)
  1480. #define CAMERA_FEATURE_SUBLCD_PREVIEW_SIZE_HEIGHT  (SUBLCD_HEIGHT)
  1481. #endif 
  1482. /******* customizable image qty *********/
  1483. //#define __CAMERA_FEATURE_IMAGE_QTY_FINE__
  1484. #define __CAMERA_FEATURE_IMAGE_QTY_HIGH__
  1485. #define __CAMERA_FEATURE_IMAGE_QTY_NORMAL__
  1486. #define __CAMERA_FEATURE_IMAGE_QTY_LOW__
  1487. /******* customizable effect *********/
  1488. #define __CAMERA_FEATURE_EFFECT_NORMAL__
  1489. #define __CAMERA_FEATURE_EFFECT_GRAYSCALE__
  1490. #define __CAMERA_FEATURE_EFFECT_SEPIA__
  1491. //#define __CAMERA_FEATURE_EFFECT_SEPIA_GREEN__
  1492. //#define __CAMERA_FEATURE_EFFECT_SEPIA_BLUE__
  1493. #define __CAMERA_FEATURE_EFFECT_COLOR_INVERT__
  1494. #define __CAMERA_FEATURE_EFFECT_GRAY_INVERT__
  1495. #define __CAMERA_FEATURE_EFFECT_BLACKBOARD__
  1496. #define __CAMERA_FEATURE_EFFECT_WHITEBOARD__
  1497. //#define __CAMERA_FEATURE_EFFECT_COPPER_CARVING__
  1498. //#define __CAMERA_FEATURE_EFFECT_BLUE_CARVING__
  1499. //#define __CAMERA_FEATURE_EFFECT_EMBOSSMENT__
  1500. //#define __CAMERA_FEATURE_EFFECT_CONTRAST__
  1501. //#define __CAMERA_FEATURE_EFFECT_JEAN__
  1502. //#define __CAMERA_FEATURE_EFFECT_SKETCH__
  1503. //#define __CAMERA_FEATURE_EFFECT_OIL__
  1504. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_1__
  1505. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_2__
  1506. //#define __CAMERA_FEATURE_EFFECT_CUSTOM_FX_3__
  1507. /******* customizable cont shot *********/
  1508. /* Notice, [Cont shot Off] and [Cont shot 1] will always exist if turn on __CAMERA_FEATURE_CONT_SHOT__*/
  1509. #define __CAMERA_FEATURE_CONT_SHOT_2__
  1510. #define __CAMERA_FEATURE_CONT_SHOT_3__
  1511. //#define __CAMERA_FEATURE_CONT_SHOT_BURST__
  1512. //#define __CAMERA_FEATURE_CONT_SHOT_TILE__ /* only MT6219 or after support */
  1513. #define CAMERA_FEATURE_CONT_SHOT_1_COUNT (1)
  1514. #define CAMERA_FEATURE_CONT_SHOT_2_COUNT (3)
  1515. #define CAMERA_FEATURE_CONT_SHOT_3_COUNT (5)
  1516. #define CAMERA_FEATURE_CONT_SHOT_BURST_COUNT  (12)
  1517. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_ROW (4)
  1518. #define CAMERA_FEATURE_CONT_SHOT_BURST_SAVE_COL (3)
  1519. /******* customizable delay timer *********/
  1520. /* Notice, [Delay Timer Off] and [Delay Timer 1] will always exist if turn on __CAMERA_FEATURE_DELAY_TIMER__*/
  1521. #define __CAMERA_FEATURE_DELAY_TIMER_2__
  1522. #define __CAMERA_FEATURE_DELAY_TIMER_3__
  1523. #define CAMERA_FEATURE_DELAY_TIMER_1_DURATION (5)
  1524. #define CAMERA_FEATURE_DELAY_TIMER_2_DURATION (10)
  1525. #define CAMERA_FEATURE_DELAY_TIMER_3_DURATION (15)
  1526. /* Misc define */
  1527. #define CAMERA_SHUTTER_SOUND_VOLUMN (LEVEL5) /* LEVEL1 - LEVEL7 */
  1528. #define CAMERA_SHORTCUT_KEY (KEY_CAMERA)
  1529. #define CAMERA_CAPTURE_KEY (KEY_CAMERA)
  1530. #define CAMERA_CAPTURE_EXTRA_KEY1 (KEY_IP) /* if no extra, set -1 */
  1531. #define CAMERA_CAPTURE_EXTRA_KEY2 (-1)
  1532. #define CAMERA_TOGGLE_SELF_CAPTURE_KEY (KEY_STAR)
  1533. #define CAMERA_TOGGLE_HIDE_OSD_KEY (KEY_POUND)
  1534. #define CAMERA_EFFECT_KEY (KEY_1) /* if no use hotkey, set -1 */
  1535. #define CAMERA_WB_KEY (KEY_2)
  1536. #define CAMERA_FLASH_KEY (KEY_3)
  1537. #define CAMERA_NIGHT_KEY (KEY_8)
  1538. #define CAMERA_LED_HIGHLIGHT_KEY (-1)
  1539. #define CAMERA_CONT_SHOT_KEY (KEY_5)
  1540. #define CAMERA_IMAGE_QTY_KEY (KEY_6)
  1541. #define CAMERA_IMAGE_SIZE_KEY (KEY_7)
  1542. #define CAMERA_DSC_MODE_KEY (-1)
  1543. #define CAMERA_ISO_KEY (-1)
  1544.     #ifdef __CAMERA_FEATURE_AE_METER__
  1545. #define CAMERA_DELAY_TIMER_KEY (-1)
  1546.         #define CAMERA_AE_METER_KEY (KEY_4)
  1547.     #else
  1548. #define CAMERA_DELAY_TIMER_KEY (KEY_4)
  1549.         #define CAMERA_AE_METER_KEY (-1)
  1550.     #endif
  1551. #define CAMERA_STORAGE_KEY (-1)
  1552. /***************************************************************************** 
  1553. * Default Setting 
  1554. *****************************************************************************/
  1555. /*********** Preview ***********/
  1556. #define CAMERA_DEFAULT_SETTING_ZOOM_IDX (0) /* index - start from 0 */
  1557. #define CAMERA_DEFAULT_SETTING_WB CAMERA_SETTING_WB_AUTO
  1558. #define CAMERA_DEFAULT_SETTING_FLASH CAMERA_SETTING_FLASH_OFF
  1559. #define CAMERA_DEFAULT_SETTING_LED_HIGHLIGHT CAMERA_SETTING_LED_HIGHLIGHT_OFF
  1560. #define CAMERA_DEFAULT_SETTING_SHUTTER_SOUND CAMERA_SETTING_SHUTTER_SOUND_1
  1561. #define CAMERA_DEFAULT_SETTING_EV CAMERA_SETTING_EV_0
  1562. #define CAMERA_DEFAULT_SETTING_NIGHT CAMERA_SETTING_NIGHT_OFF
  1563. #define CAMERA_DEFAULT_SETTING_CLOSEUP (0)
  1564. #define CAMERA_DEFAULT_SETTING_BANDING CAMERA_SETTING_BANDING_60HZ
  1565. #define CAMERA_DEFAULT_SETTING_EFFECT CAMERA_SETTING_EFFECT_NORMAL
  1566. #define CAMERA_DEFAULT_SETTING_ADD_FRAME CAMERA_SETTING_ADD_FRAME_OFF
  1567. #define CAMERA_DEFAULT_SETTING_CONT_SHOT CAMERA_SETTING_CONT_SHOT_OFF
  1568. #define CAMERA_DEFAULT_SETTING_DELAY_TIMER CAMERA_SETTING_DELAY_TIMER_OFF
  1569. #define CAMERA_DEFAULT_SETTING_AE_METER (0)
  1570. #define CAMERA_DEFAULT_SETTING_ISO (0)
  1571. #define CAMERA_DEFAULT_SETTING_DSC_MODE (0)
  1572. #define CAMERA_DEFAULT_SETTING_STORAGE CAMERA_SETTING_STORAGE_PHONE
  1573. #define CAMERA_DEFAULT_SETTING_AUTOFOCUS (0)
  1574. /* custom fx */
  1575. #define CAMERA_DEFAULT_SETTING_BRIGHTNESS (128)
  1576. #define CAMERA_DEFAULT_SETTING_SATURATION (128)
  1577. #define CAMERA_DEFAULT_SETTING_CONTRAST (128)
  1578. #define CAMERA_DEFAULT_SETTING_HUE (0)
  1579. /* led highlight/flash value */
  1580. #define CAMERA_DEFAULT_PREVIEW_LED_VALUE (80)
  1581. #define CAMERA_DEFAULT_CAPTURE_LED_VALUE (80)
  1582. #define CAMERA_DEFAULT_PREVIEW_FLASH_VALUE (100)
  1583. #define CAMERA_DEFAULT_CAPTURE_FLASH_VALUE (100)
  1584. /* capture */
  1585. #define CAMERA_DEFAULT_SETTING_IMAGE_SIZE CAMERA_SETTING_IMAGE_SIZE_SS
  1586. #define CAMERA_DEFAULT_SETTING_IMAGE_QTY CAMERA_SETTING_IMAGE_QTY_NORMAL
  1587. /* preview rotation */
  1588. #if defined(SENSOR_ON_BODY)
  1589. #if defined(SENSOR_ROTATE_0)
  1590. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1591. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1592. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1593. #elif defined(SENSOR_ROTATE_180)
  1594. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1595. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1596. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1597. #else
  1598. /* rotate 90, 270 not used yet */
  1599. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1600. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1601. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1602. #endif
  1603. #elif defined(SENSOR_ON_COVER)
  1604. #if defined(SENSOR_ROTATE_0)
  1605. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1606. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1607. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1608. #elif defined(SENSOR_ROTATE_180)
  1609. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1610. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1611. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1612. #else
  1613. /* rotate 90, 270 not used yet */
  1614. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1615. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1616. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1617. #endif
  1618. #else /* not define SENSOR_LCATION */
  1619. #if defined(SENSOR_ROTATE_0)
  1620. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1621. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1622. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1623. #elif defined(SENSOR_ROTATE_180)
  1624. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_180
  1625. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1626. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1627. #else
  1628. /* rotate 90, 270 not used yet */
  1629. #define CAMERA_PREVIEW_MAINLCD_ROTATE CAMERA_PREVIEW_ROTATE_0
  1630. #define CAMERA_PREVIEW_SUBLCD_CLAM_OPEN_ROTATE CAMERA_PREVIEW_ROTATE_0_MIRROR
  1631. #define CAMERA_PREVIEW_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_PREVIEW_ROTATE_180_MIRROR
  1632. #endif
  1633. #endif /* SENSOR_LOCATION */
  1634. /* lcd rotate */
  1635. #ifdef HORIZONTAL_CAMERA
  1636. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_RORATE_270
  1637. #else
  1638. #define CAMERA_LCM_MAINLCD_ROTATE CAMERA_LCM_ROTATE_0
  1639. #endif
  1640. #define CAMERA_LCM_SUBLCD_CLAM_OPEN_ROTATE CAMERA_LCM_ROTATE_180
  1641. #define CAMERA_LCM_SUBLCD_CLAM_CLOSE_ROTATE CAMERA_LCM_ROTATE_0
  1642. /* display rotate */
  1643. #define CAMERA_DISPLAY_ROTATE_0 CAMERA_PREVIEW_ROTATE_0
  1644. #define CAMERA_DISPLAY_ROTATE_90 CAMERA_PREVIEW_ROTATE_90
  1645. #define CAMERA_DISPLAY_ROTATE_180 CAMERA_PREVIEW_ROTATE_180 
  1646. #define CAMERA_DISPLAY_ROTATE_270 CAMERA_PREVIEW_RORATE_270
  1647. #define CAMERA_DISPLAY_ROTATE_RESET 255
  1648. /* Factory mode */
  1649. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  1650. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1651. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (128)
  1652. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  1653. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1654. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (160)
  1655. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  1656. #define CAMERA_FACTORY_PREVIEW_WIDTH   (176)
  1657. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (160)
  1658. #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
  1659. #define CAMERA_FACTORY_PREVIEW_WIDTH   (176)
  1660. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (220)
  1661. #else /* other LCD size */
  1662. #define CAMERA_FACTORY_PREVIEW_WIDTH   (128)
  1663. #define CAMERA_FACTORY_PREVIEW_HEIGHT  (96)
  1664. #endif /* (LCD_WIDTH == XXX && LCD_HEIGHT == xxx) */
  1665. /***************************************************************************** 
  1666. * Manual White Balance 
  1667. *****************************************************************************/
  1668. #define __CAMERA_FEATURE_WB__
  1669. #define __CAMERA_FEATURE_WB_AUTO__
  1670. #define __CAMERA_FEATURE_WB_DAYLIGHT__
  1671. #define __CAMERA_FEATURE_WB_TUNGSTEN__
  1672. #define __CAMERA_FEATURE_WB_FLUORESCENT__
  1673. //#define __CAMERA_FEATURE_WB_CLOUD__
  1674. //#define __CAMERA_FEATURE_WB_INCANDESCENCE__
  1675. //#define __CAMERA_FEATURE_WB_MANUAL__
  1676. /***************************************************************************** 
  1677. * Flash Mode
  1678. *****************************************************************************/
  1679. #define __CAMERA_FEATURE_FLASH__
  1680. #define __CAMERA_FEATURE_FLASH_AUTO__
  1681. //#define __CAMERA_FEATURE_FLASH_REDEYE__
  1682. /***************************************************************************** 
  1683. * Auto Exposure 
  1684. *****************************************************************************/
  1685. /***************************************************************************** 
  1686. * Auto Focus  
  1687. *****************************************************************************/
  1688. /***************************************************************************** 
  1689. * DSC Mode 
  1690. *****************************************************************************/
  1691. /***************************************************************************** 
  1692. * Add Frame 
  1693. *****************************************************************************/
  1694. #define __CAMERA_FEATURE_ADD_FRAME__
  1695. #define __CAMERA_FEATURE_ADD_FRAME_NORMAL__
  1696. //#define __CAMERA_FEATURE_ADD_FRAME_TILESHOT__
  1697. /******* customizable add frame *********/
  1698. #define __CAMERA_FEATURE_ADD_FRAME_1__
  1699. #define __CAMERA_FEATURE_ADD_FRAME_2__
  1700.         /*
  1701. #define __CAMERA_FEATURE_ADD_FRAME_3__
  1702. #define __CAMERA_FEATURE_ADD_FRAME_4__
  1703. #define __CAMERA_FEATURE_ADD_FRAME_5__
  1704. #define __CAMERA_FEATURE_ADD_FRAME_6__
  1705. #define __CAMERA_FEATURE_ADD_FRAME_7__
  1706. #define __CAMERA_FEATURE_ADD_FRAME_8__
  1707. #define __CAMERA_FEATURE_ADD_FRAME_9__
  1708. #define __CAMERA_FEATURE_ADD_FRAME_10__
  1709.         */
  1710. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_1__ /* not implment yet */
  1711. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_2__ /* not implment yet */
  1712. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_3__ /* not implment yet */
  1713. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_4__ /* not implment yet */
  1714. //#define __CAMERA_FEATURE_ADD_FRAME_CUSTOM_5__ /* not implment yet */
  1715. /***************************************************************************** 
  1716. * END OF SETTING
  1717. *****************************************************************************/
  1718. /***************************************************************************** 
  1719. *
  1720. * End of AIT800, AIT703
  1721. *
  1722. *****************************************************************************/
  1723. #elif defined(VC0558) 
  1724. /***************************************************************************** 
  1725. *
  1726. * Start of VC0558
  1727. *
  1728. *****************************************************************************/
  1729. /***************************************************************************** 
  1730. * OSD
  1731. *****************************************************************************/
  1732. /* Zooming */
  1733. #define __CAMERA_FEATURE_ZOOM__
  1734. #define CAMERA_FEATURE_ZOOM_COUNT (3)
  1735. #ifdef __MMI_CAMERA_ONLY__
  1736. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT] = {10,20,40};
  1737. #else
  1738. extern int g_camera_feature_zoom[CAMERA_FEATURE_ZOOM_COUNT];
  1739. #endif
  1740. /***************************************************************************** 
  1741. * Option Menu 
  1742. *****************************************************************************/
  1743. /* menu [Camera Setting] [Image Setting] [Effect Setting] [Restore Default] will always exist */
  1744. #define __CAMERA_FEATURE_EFFECT__
  1745. #define __CAMERA_FEATURE_CONT_SHOT__
  1746. #define __CAMERA_FEATURE_DELAY_TIMER__
  1747. #if defined(__MMI_SUBLCD__) && defined(__MMI_SUBLCD_COLOR__)
  1748. #define __CAMERA_FEATURE_SELF_CAPTURE__
  1749. #endif
  1750. #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  1751. #define __CAMERA_FEATURE_STORAGE__
  1752. #endif
  1753. /***************************************************************************** 
  1754. * Camera Setting
  1755. *****************************************************************************/
  1756. /********** settings  ***********/
  1757. #define __CAMERA_FEATURE_LED_HIGHLIGHT__
  1758. #define __CAMERA_FEATURE_SHUTTER_SOUND__
  1759. //#define __CAMERA_FEATURE_EV__  
  1760. //#define __CAMERA_FEATURE_NIGHT__
  1761. //#define __CAMERA_FEATURE_CLOSEUP__
  1762. #define __CAMERA_FEATURE_BANDING__
  1763. /******** customizable led highlight *********/
  1764. //#define __CAMERA_FEATURE_LED_HIGHLIGHT_ON_OFF__
  1765. #define __CAMERA_FEATURE_LED_HIGHLIGHT_7_COLOR__
  1766. /******* customizable shutter sound *********/
  1767. #define __CAMERA_FEATURE_SHUTTER_SOUND_OFF__
  1768. #define __CAMERA_FEATURE_SHUTTER_SOUND_1__
  1769. #define __CAMERA_FEATURE_SHUTTER_SOUND_2__
  1770. #define __CAMERA_FEATURE_SHUTTER_SOUND_3__
  1771. /******* customizable ev *********/
  1772. /* default will have off [ev 0] and [ev +1] [ev -1] menu if __CAMERA_FEATURE_EV__ is turn on */
  1773. #define __CAMERA_FEATURE_EV_2__
  1774. #define __CAMERA_FEATURE_EV_3__
  1775. #define __CAMERA_FEATURE_EV_4__
  1776. /***************************************************************************** 
  1777. * Image Setting
  1778. *****************************************************************************/
  1779. /* Notice, [Image Size] and [Image Qty] will always exist */
  1780. /******* customizable image size *********/
  1781. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1782. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1783. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1784. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1785. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1786. /******* customizable image size *********/
  1787. /* size */
  1788. #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
  1789. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1790. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1791. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1792. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1793. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1794. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  1795. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  1796. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  1797. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  1798. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  1799. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  1800. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  1801. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  1802. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  1803. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (128)
  1804. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  1805. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  1806. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  1807. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  1808. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  1809. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  1810. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  1811. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  1812. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  1813. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (128)
  1814. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1815. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1816. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1817. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1818. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (40)
  1819. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (40)
  1820. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1821. #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
  1822. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__
  1823. #define __CAMERA_FEATURE_IMAGE_SIZE_L__
  1824. #define __CAMERA_FEATURE_IMAGE_SIZE_M__
  1825. #define __CAMERA_FEATURE_IMAGE_SIZE_S__
  1826. #define __CAMERA_FEATURE_IMAGE_SIZE_SS__
  1827. #define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH  (640)
  1828. #define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT  (480)
  1829. #define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH  (320)
  1830. #define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT  (240)
  1831. #define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH  (160)
  1832. #define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT  (120)
  1833. #define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH  (80)
  1834. #define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT  (60)
  1835. #define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH  (128)
  1836. #define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT  (160)
  1837. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
  1838. #define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
  1839. #define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
  1840. #define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
  1841. #define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
  1842. #define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
  1843. #define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
  1844. #define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
  1845. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
  1846. #define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (160)
  1847. #define CAMERA_FEATURE_PREVIEW_LL_ZOOM_LIMIT (10)
  1848. #define CAMERA_FEATURE_PREVIEW_L_ZOOM_LIMIT (20)
  1849. #define CAMERA_FEATURE_PREVIEW_M_ZOOM_LIMIT (40)
  1850. #define CAMERA_FEATURE_PREVIEW_S_ZOOM_LIMIT (40)
  1851. #define CAMERA_FEATURE_PREVIEW_SS_ZOOM_LIMIT (20)
  1852. #define CAMERA_FEATURE_PREVIEW_TILE_ZOOM_LIMIT (20)
  1853. #define CAMERA_FEATURE_CONT_SHOT_BURST_IMAGE_IDX (2)   /* SS, S, [M], L, LL */
  1854. #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
  1855. #define __CAMERA_FEATURE_IMAGE_SIZE_LL__