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

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_video.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  Vdieo Feature Customization
  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.  *------------------------------------------------------------------------------
  200.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  201.  *============================================================================
  202.  ****************************************************************************/
  203. #ifndef _VIDEO_FEATURES_H_
  204. #define _VIDEO_FEATURES_H_
  205. #include "MMI_features.h"
  206. #if defined(__MMI_VIDEO_PLAYER__) || defined(__MMI_VIDEO_RECORDER__)
  207. #if defined(CAMERA_MODULE)
  208. /***************************************************************************** 
  209. *
  210. *
  211. * MT6218B, MT6217
  212. *
  213. *
  214. *****************************************************************************/
  215.     #if defined(PAP1301) || defined(PAP1302)
  216.     /***************************************************************************** 
  217.     *
  218.     * Start of PAP1031, PAP1302
  219.     *
  220.     *****************************************************************************/
  221.     /***************************************************************************** 
  222.     * Video Recorder Feature
  223.     *****************************************************************************/
  224.     
  225.     #define __VDOREC_FEATURE_ZOOM__
  226.     #define __VDOREC_FEATURE_WB__
  227.     #define __VDOREC_FEATURE_EV__
  228.     //#define __VDOREC_FEATURE_NIGHT__
  229.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT__
  230.     #define __VDOREC_FEATURE_BANDING__                                                                 
  231.     #define __VDOREC_FEATURE_VIDEO_QTY__
  232.     //#define __VDOREC_FEATURE_SIZE_LIMIT__
  233.     //#define __VDOREC_FEATURE_TIME_LIMIT__
  234.     #define __VDOREC_FEATURE_RECORD_AUD__
  235.     //#define __VDOREC_FEATURE_VIDEO_FORMAT__
  236.     #if defined(PAP1302)
  237.         #define __VDOREC_FEATURE_EFFECT__
  238.     #else /* PAP1301 */
  239.         //#define __VDOREC_FEATURE_EFFECT__
  240.     #endif
  241.     
  242.     #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  243.         #define __VDOREC_FEATURE_STORAGE__
  244.     #endif 
  245.     #define __VDOREC_FEATURE_MERGE_MENU__           /* will merge "Camcoder Setting" & "Video Setting" into one */
  246.     //#define __VDOREC_FEATURE_RECORDING_ZOOM__ /* allows zooming while recording */
  247.     //#define __VDOREC_FEATURE_RECORDING_EV__       /* allows adjust ev while recording */
  248.     /***************************************************************************** 
  249.     * Zoom
  250.     *****************************************************************************/
  251.     #define VDOREC_FEATURE_ZOOM_COUNT           (3)
  252.     #define VDOREC_FEAUTRE_ZOOM_LIMIT           (40)
  253.     #define VDOREC_FEATURE_ZOOM_0               (10)
  254.     #define VDOREC_FEATURE_ZOOM_1               (20)
  255.     #define VDOREC_FEATURE_ZOOM_2               (40)
  256.     #define VDOREC_FEATURE_ZOOM_3               (0)
  257.     #define VDOREC_FEATURE_ZOOM_4               (0)
  258.     #define VDOREC_FEATURE_ZOOM_5               (0)
  259.     #define VDOREC_FEATURE_ZOOM_6               (0)
  260.     #define VDOREC_FEATURE_ZOOM_7               (0)
  261.     #define VDOREC_FEATURE_ZOOM_8               (0)
  262.     #define VDOREC_FEATURE_ZOOM_9               (0)
  263.     #define VDOREC_FEATURE_ZOOM_10              (0)
  264.     #define VDOREC_FEATURE_ZOOM_11              (0)
  265.     #define VDOREC_FEATURE_ZOOM_12              (0)
  266.     #define VDOREC_FEATURE_ZOOM_13              (0)
  267.     #define VDOREC_FEATURE_ZOOM_14              (0)
  268.     #define VDOREC_FEATURE_ZOOM_15              (0)
  269.     #define VDOREC_FEATURE_ZOOM_16              (0)
  270.     #define VDOREC_FEATURE_ZOOM_17              (0)
  271.     #define VDOREC_FEATURE_ZOOM_18              (0)
  272.     #define VDOREC_FEATURE_ZOOM_19              (0)
  273.     #define VDOREC_FEATURE_ZOOM_20              (0)
  274.     #define VDOREC_FEATURE_ZOOM_21              (0)
  275.     #define VDOREC_FEATURE_ZOOM_22              (0)
  276.     #define VDOREC_FEATURE_ZOOM_23              (0)
  277.     #define VDOREC_FEATURE_ZOOM_24              (0)
  278.     #define VDOREC_FEATURE_ZOOM_25              (0)
  279.     #define VDOREC_FEATURE_ZOOM_26              (0)
  280.     #define VDOREC_FEATURE_ZOOM_27              (0)
  281.     #define VDOREC_FEATURE_ZOOM_28              (0)
  282.     #define VDOREC_FEATURE_ZOOM_29              (0)
  283.     #define VDOREC_FEATURE_ZOOM_30              (0)
  284.     #define VDOREC_FEATURE_ZOOM_31              (0)
  285.     #define VDOREC_FEATURE_ZOOM_32              (0)
  286.     #define VDOREC_FEATURE_ZOOM_33              (0)
  287.     #define VDOREC_FEATURE_ZOOM_34              (0)
  288.     #define VDOREC_FEATURE_ZOOM_35              (0)    
  289.     /***************************************************************************** 
  290.     * CamCoder Setting
  291.     *****************************************************************************/
  292.     /******** customizable led highlight *********/
  293.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__
  294.     #define __VDOREC_FEATURE_LED_HIGHLIGHT_7_COLOR__
  295.     /***************************************************************************** 
  296.     * Video Recorder Setting
  297.     *****************************************************************************/
  298.     /******* customizable video qualtiy *********/
  299.     //#define __VDOREC_FEATURE_VIDEO_QTY_FINE__
  300.     #define __VDOREC_FEATURE_VIDEO_QTY_HIGH__
  301.     #define __VDOREC_FEATURE_VIDEO_QTY_NORMAL__
  302.     #define __VDOREC_FEATURE_VIDEO_QTY_LOW__
  303.     /******** customizable wb *********/
  304.     #define __VDOREC_FEATURE_WB_AUTO__
  305.     #define __VDOREC_FEATURE_WB_DAYLIGHT__
  306.     #define __VDOREC_FEATURE_WB_TUNGSTEN__
  307.     #define __VDOREC_FEATURE_WB_FLUORESCENT__
  308.     //#define __VDOREC_FEATURE_WB_CLOUD__
  309.     //#define __VDOREC_FEATURE_WB_INCANDESCENCE__
  310.     /******* customizable ev *********/
  311.     /* default will have off [ev 0] and [ev +1] [ev -1] menu if __VDOREC_FEATURE_EV__ is turn on */
  312.     #define __VDOREC_FEATURE_EV_2__
  313.     #define __VDOREC_FEATURE_EV_3__
  314.     #define __VDOREC_FEATURE_EV_4__
  315.     #if defined(PAP1302)
  316.         #define __VDOREC_FEATURE_EFFECT_NORMAL__
  317.         #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  318.         #define __VDOREC_FEATURE_EFFECT_SEPIA__
  319.         //#define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  320.         //#define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  321.         #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  322.         //#define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  323.         #define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  324.         #define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  325.         //#define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  326.         //#define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  327.         //#define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  328.         //#define __VDOREC_FEATURE_EFFECT_CONTRAST__
  329.         //#define __VDOREC_FEATURE_EFFECT_JEAN__
  330.         //#define __VDOREC_FEATURE_EFFECT_SKETCH__
  331.         //#define __VDOREC_FEATURE_EFFECT_OIL__
  332.     #else /* PAP1301 */
  333.         /******* customizable effect *********/
  334.         #define __VDOREC_FEATURE_EFFECT_NORMAL__
  335.         //#define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  336.         //#define __VDOREC_FEATURE_EFFECT_SEPIA__
  337.         //#define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  338.         //#define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  339.         //#define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  340.         //#define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  341.         //#define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  342.         //#define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  343.         //#define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  344.         //#define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  345.         //#define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  346.         //#define __VDOREC_FEATURE_EFFECT_CONTRAST__
  347.         //#define __VDOREC_FEATURE_EFFECT_JEAN__    
  348.         //#define __VDOREC_FEATURE_EFFECT_SKETCH__
  349.         //#define __VDOREC_FEATURE_EFFECT_OIL__ 
  350.     #endif 
  351.     /******* customizable size limit *********/
  352.     //#define VDOREC_FEATURE_SIZE_LIMIT_1           (25)            /* 25k */
  353.     //#define VDOREC_FEATURE_SIZE_LIMIT_2           (50)            /* 50k */
  354.     //#define VDOREC_FEATURE_SIZE_LIMIT_3           (200)           /* 200k */
  355.     /******* customizable time limit *********/
  356.     //#define VDOREC_FEATURE_TIME_LIMIT_1           (15)            /* 15 sec */
  357.     //#define VDOREC_FEATURE_TIME_LIMIT_2           (30)            /* 30 sec */
  358.     //#define VDOREC_FEATURE_TIME_LIMIT_3           (60)            /* 60 sec */
  359.     
  360.     /******* SubLCD ********/
  361.     #ifdef __MMI_SUBLCD__
  362.     //  #define __VDOREC_FEATURE_SELF_RECORD__  /* not implement yet */
  363.     #endif /* __MMI_SUBLCD__ */
  364.     #define VDOREC_RECORD_KEY                   (KEY_CAMERA)
  365.     #define VDOREC_RECORD_EXTRA_KEY1            (KEY_IP)            /* if no extra, use -1 */
  366.     #define VDOREC_RECORD_EXTRA_KEY2            (-1)                /* if no extra, use -1 */
  367.     #if defined(PAP1302)
  368.         #define VDOREC_EFFECT_KEY               (KEY_1)             /* if no use hotkey, set -1 */
  369.         #define VDOREC_WB_KEY                   (KEY_2)
  370.         #define VDOREC_NIGHT_KEY                (-1)
  371.         #define VDOREC_LED_HIGHLIGHT_KEY        (KEY_3)
  372.     #else /* PAP1301 */
  373.         #define VDOREC_EFFECT_KEY               (-1)                /* if no use hotkey, set -1 */
  374.         #define VDOREC_WB_KEY                   (KEY_1)
  375.         #define VDOREC_NIGHT_KEY                (-1)
  376.         #define VDOREC_LED_HIGHLIGHT_KEY        (KEY_2)
  377.     #endif
  378.     
  379.     /***************************************************************************** 
  380.     *   Default Setting 
  381.     *****************************************************************************/
  382.     /*********** Preview ***********/
  383.     #define VDOREC_DEFAULT_SETTING_ZOOM                 (0)  /* index - start from 0 */
  384.     #define VDOREC_DEFAULT_SETTING_WB                   VDOREC_SETTING_WB_AUTO
  385.     #define VDOREC_DEFAULT_SETTING_LED_HIGHLIGHT        VDOREC_SETTING_LED_HIGHLIGHT_OFF
  386.     #define VDOREC_DEFAULT_SETTING_EV                   VDOREC_SETTING_EV_ZERO      
  387.     #define VDOREC_DEFAULT_SETTING_NIGHT                VDOREC_SETTING_NIGHT_OFF
  388.     #define VDOREC_DEFAULT_SETTING_BANDING              VDOREC_SETTING_BANDING_60HZ
  389.     #define VDOREC_DEFAULT_SETTING_EFFECT               VDOREC_SETTING_EFFECT_NORMAL
  390.     #define VDOREC_DEFAULT_SETTING_VIDEO_SIZE           VDOREC_SETTING_VIDEO_SIZE_QCIF
  391.     #define VDOREC_DEFAULT_SETTING_VIDEO_QTY            VDOREC_SETTING_VIDEO_QTY_NORMAL
  392.     #define VDOREC_DEFAULT_SETTING_SIZE_LIMIT           VDOREC_SETTING_SIZE_LIMIT_NO_LIMIT
  393.     #define VDOREC_DEFAULT_SETTING_TIME_LIMIT           VDOREC_SETTING_TIME_LIMIT_NO_LIMIT
  394.     #define VDOREC_DEFAULT_SETTING_RECORD_AUD           VDOREC_SETTING_RECORD_AUD_ON
  395.     #define VDOREC_DEFAULT_SETTING_VIDEO_FORMAT         VDOREC_SETTING_VIDEO_FORMAT_MP4
  396.     #define VDOREC_DEFAULT_SETTING_COLOR_IDX_FRAME      VDOREC_SETTING_COLOR_IDX_FRAME_OFF
  397.     #define VDOREC_DEFAULT_SETTING_STORAGE              VDOREC_SETTING_STORAGE_PHONE
  398.     #define VDOREC_DEFAULT_PREVIEW_LED_VALUE            (80)
  399.     /* preview rotation */
  400.     #if defined(SENSOR_ON_BODY)
  401.         #if defined(SENSOR_ROTATE_0)
  402.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  403.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  404.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  405.         #elif defined(SENSOR_ROTATE_180)
  406.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  407.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  408.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  409.         #else
  410.             /* rotate 90, 270 not used yet */
  411.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  412.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  413.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  414.         #endif
  415.     #elif defined(SENSOR_ON_COVER)
  416.         #if defined(SENSOR_ROTATE_0)
  417.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  418.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  419.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  420.         #elif defined(SENSOR_ROTATE_180)
  421.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  422.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  423.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  424.         #else
  425.             /* rotate 90, 270 not used yet */
  426.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  427.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  428.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  429.         #endif
  430.     #else /* not define SENSOR_ROTATION */
  431.         #if defined(SENSOR_ROTATE_0)
  432.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  433.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  434.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  435.         #elif defined(SENSOR_ROTATE_180)
  436.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  437.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  438.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  439.         #else
  440.             /* rotate 90, 270 not used yet */
  441.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  442.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  443.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  444.         #endif
  445.     #endif /* SENSOR_ROTATION */
  446.     /***************************************************************************** 
  447.     * Video Player Feature
  448.     *****************************************************************************/
  449.     //#define __VDOPLY_FEATURE_SPEED__
  450.     #define __VDOPLY_FEATURE_VOLUME__
  451.     
  452. #if !defined(__MMI_MAINLCD_128X128__) && !defined(MT6218B)
  453.     #define __VDOPLY_FEATURE_FULLSCREEN__
  454. #endif
  455.     //#define __VDOPLY_FEATURE_SNAPSHOT__       /* 6218B, 6217 dont support jpeg encoder */
  456.     /* misc config */
  457.     //#define __VDOPLY_FEATURE_VOLUME_MUTE__      /* allows audio mute */
  458.     #define VDOPLY_FEATURE_SPEED_COUNT  (2)
  459.     
  460.     #define VDOPLY_FEATURE_SPEED_0      (-100)
  461.     #define VDOPLY_FEATURE_SPEED_1      (100)
  462.     #define VDOPLY_FEATURE_SPEED_2      (0)
  463.     #define VDOPLY_FEATURE_SPEED_3      (0)
  464.     #define VDOPLY_FEATURE_SPEED_4      (0)
  465.     #define VDOPLY_FEATURE_SPEED_5      (0)
  466.     #define VDOPLY_FEATURE_SPEED_6      (0)
  467.     #define VDOPLY_FEATURE_SPEED_7      (0)
  468.     #define VDOPLY_FEATURE_SPEED_8      (0)
  469.     #define VDOPLY_DEFAULT_SPEED            (1)  /* index - start from 0 */
  470.     #define __VDOPLY_FEATURE_FWD_BWD_SPEED__    /* foward and backward speed */
  471.     /***************************************************************************** 
  472.     *
  473.     * End of PAP1031
  474.     *
  475.     *****************************************************************************/
  476.     
  477.     #elif defined(AIT700) || defined(AIT701)
  478.     /***************************************************************************** 
  479.     *
  480.     * Start of AIT700, AIT701PAP1302
  481.     *
  482.     *****************************************************************************/
  483.     /***************************************************************************** 
  484.     * Video Recorder Feature
  485.     *****************************************************************************/
  486.     
  487.     #define __VDOREC_FEATURE_ZOOM__
  488.     #define __VDOREC_FEATURE_WB__
  489.     #define __VDOREC_FEATURE_EV__
  490.     //#define __VDOREC_FEATURE_NIGHT__
  491.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT__
  492.     #define __VDOREC_FEATURE_BANDING__                                                                 
  493.     #define __VDOREC_FEATURE_VIDEO_QTY__
  494.     //#define __VDOREC_FEATURE_SIZE_LIMIT__
  495.     //#define __VDOREC_FEATURE_TIME_LIMIT__
  496.     //#define __VDOREC_FEATURE_RECORD_AUD__
  497.     //#define __VDOREC_FEATURE_VIDEO_FORMAT__
  498.     #define __VDOREC_FEATURE_EFFECT__
  499.     
  500.     #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  501.         #define __VDOREC_FEATURE_STORAGE__
  502.     #endif 
  503.     //#define __VDOREC_FEATURE_MERGE_MENU__         /* will merge "Camcoder Setting" & "Video Setting" into one */
  504.     #define __VDOREC_FEATURE_RECORDING_ZOOM__   /* allows zooming while recording */
  505.     #define __VDOREC_FEATURE_RECORDING_EV__     /* allows adjust ev while recording */
  506.     /***************************************************************************** 
  507.     * Zoom
  508.     *****************************************************************************/
  509.     #define VDOREC_FEATURE_ZOOM_COUNT           (3)
  510.     #define VDOREC_FEAUTRE_ZOOM_LIMIT           (40)
  511.     
  512.     #define VDOREC_FEATURE_ZOOM_0               (10)
  513.     #define VDOREC_FEATURE_ZOOM_1               (20)
  514.     #define VDOREC_FEATURE_ZOOM_2               (40)
  515.     #define VDOREC_FEATURE_ZOOM_3               (0)
  516.     #define VDOREC_FEATURE_ZOOM_4               (0)
  517.     #define VDOREC_FEATURE_ZOOM_5               (0)
  518.     #define VDOREC_FEATURE_ZOOM_6               (0)
  519.     #define VDOREC_FEATURE_ZOOM_7               (0)
  520.     #define VDOREC_FEATURE_ZOOM_8               (0)
  521.     #define VDOREC_FEATURE_ZOOM_9               (0)
  522.     #define VDOREC_FEATURE_ZOOM_10              (0)
  523.     #define VDOREC_FEATURE_ZOOM_11              (0)
  524.     #define VDOREC_FEATURE_ZOOM_12              (0)
  525.     #define VDOREC_FEATURE_ZOOM_13              (0)
  526.     #define VDOREC_FEATURE_ZOOM_14              (0)
  527.     #define VDOREC_FEATURE_ZOOM_15              (0)
  528.     #define VDOREC_FEATURE_ZOOM_16              (0)
  529.     #define VDOREC_FEATURE_ZOOM_17              (0)
  530.     #define VDOREC_FEATURE_ZOOM_18              (0)
  531.     #define VDOREC_FEATURE_ZOOM_19              (0)
  532.     #define VDOREC_FEATURE_ZOOM_20              (0)
  533.     #define VDOREC_FEATURE_ZOOM_21              (0)
  534.     #define VDOREC_FEATURE_ZOOM_22              (0)
  535.     #define VDOREC_FEATURE_ZOOM_23              (0)
  536.     #define VDOREC_FEATURE_ZOOM_24              (0)
  537.     #define VDOREC_FEATURE_ZOOM_25              (0)
  538.     #define VDOREC_FEATURE_ZOOM_26              (0)
  539.     #define VDOREC_FEATURE_ZOOM_27              (0)
  540.     #define VDOREC_FEATURE_ZOOM_28              (0)
  541.     #define VDOREC_FEATURE_ZOOM_29              (0)
  542.     #define VDOREC_FEATURE_ZOOM_30              (0)
  543.     #define VDOREC_FEATURE_ZOOM_31              (0)
  544.     #define VDOREC_FEATURE_ZOOM_32              (0)
  545.     #define VDOREC_FEATURE_ZOOM_33              (0)
  546.     #define VDOREC_FEATURE_ZOOM_34              (0)
  547.     #define VDOREC_FEATURE_ZOOM_35              (0)  
  548.     /***************************************************************************** 
  549.     * CamCoder Setting
  550.     *****************************************************************************/
  551.     /******** customizable led highlight *********/
  552.     #define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__
  553.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_7_COLOR__
  554.     /***************************************************************************** 
  555.     * Video Recorder Setting
  556.     *****************************************************************************/
  557.     /******* customizable video qualtiy *********/
  558.     //#define __VDOREC_FEATURE_VIDEO_QTY_FINE__
  559.     #define __VDOREC_FEATURE_VIDEO_QTY_HIGH__
  560.     #define __VDOREC_FEATURE_VIDEO_QTY_NORMAL__
  561.     #define __VDOREC_FEATURE_VIDEO_QTY_LOW__
  562.     /******** customizable wb *********/
  563.     #define __VDOREC_FEATURE_WB_AUTO__
  564.     #define __VDOREC_FEATURE_WB_DAYLIGHT__
  565.     #define __VDOREC_FEATURE_WB_TUNGSTEN__
  566.     #define __VDOREC_FEATURE_WB_FLUORESCENT__
  567.     //#define __VDOREC_FEATURE_WB_CLOUD__
  568.     //#define __VDOREC_FEATURE_WB_INCANDESCENCE__
  569.     /******* customizable ev *********/
  570.     /* default will have off [ev 0] and [ev +1] [ev -1] menu if __VDOREC_FEATURE_EV__ is turn on */
  571.     #define __VDOREC_FEATURE_EV_2__
  572.     #define __VDOREC_FEATURE_EV_3__
  573.     #define __VDOREC_FEATURE_EV_4__
  574.     
  575.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  576.     #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  577.     #define __VDOREC_FEATURE_EFFECT_SEPIA__
  578.     //#define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  579.     //#define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  580.     #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  581.     #define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  582.     #define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  583.     #define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  584.     //#define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  585.     //#define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  586.     //#define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  587.     //#define __VDOREC_FEATURE_EFFECT_CONTRAST__
  588.     //#define __VDOREC_FEATURE_EFFECT_JEAN__
  589.     //#define __VDOREC_FEATURE_EFFECT_SKETCH__
  590.     //#define __VDOREC_FEATURE_EFFECT_OIL__
  591.     /******* customizable size limit *********/
  592.     //#define VDOREC_FEATURE_SIZE_LIMIT_1           (25)            /* 25k */
  593.     //#define VDOREC_FEATURE_SIZE_LIMIT_2           (50)            /* 50k */
  594.     //#define VDOREC_FEATURE_SIZE_LIMIT_3           (200)           /* 200k */
  595.     /******* customizable time limit *********/
  596.     //#define VDOREC_FEATURE_TIME_LIMIT_1           (15)            /* 15 sec */
  597.     //#define VDOREC_FEATURE_TIME_LIMIT_2           (30)            /* 30 sec */
  598.     //#define VDOREC_FEATURE_TIME_LIMIT_3           (60)            /* 60 sec */
  599.     
  600.     /******* SubLCD ********/
  601.     #ifdef __MMI_SUBLCD__
  602.     //  #define __VDOREC_FEATURE_SELF_RECORD__  /* not implement yet */
  603.     #endif /* __MMI_SUBLCD__ */
  604.     #define VDOREC_RECORD_KEY                   (KEY_CAMERA)
  605.     #define VDOREC_RECORD_EXTRA_KEY1            (KEY_IP)            /* if no extra, use -1 */
  606.     #define VDOREC_RECORD_EXTRA_KEY2            (-1)                /* if no extra, use -1 */
  607.     /* disable hot key since AIT700, AIT701 cant display hint */
  608.     #define VDOREC_EFFECT_KEY                       (-1)            /* if no use hotkey, set -1 */
  609.     #define VDOREC_WB_KEY                           (-1)
  610.     #define VDOREC_NIGHT_KEY                        (-1)
  611.     #define VDOREC_LED_HIGHLIGHT_KEY                (-1)
  612.     
  613.     /***************************************************************************** 
  614.     *   Default Setting 
  615.     *****************************************************************************/
  616.     /*********** Preview ***********/
  617.     #define VDOREC_DEFAULT_SETTING_ZOOM             (0)  /* index - start from 0 */
  618.     #define VDOREC_DEFAULT_SETTING_WB               VDOREC_SETTING_WB_AUTO
  619.     #define VDOREC_DEFAULT_SETTING_LED_HIGHLIGHT    VDOREC_SETTING_LED_HIGHLIGHT_OFF
  620.     #define VDOREC_DEFAULT_SETTING_EV               VDOREC_SETTING_EV_ZERO      
  621.     #define VDOREC_DEFAULT_SETTING_NIGHT            VDOREC_SETTING_NIGHT_OFF
  622.     #define VDOREC_DEFAULT_SETTING_BANDING          VDOREC_SETTING_BANDING_60HZ
  623.     #define VDOREC_DEFAULT_SETTING_EFFECT           VDOREC_SETTING_EFFECT_NORMAL
  624.     #define VDOREC_DEFAULT_SETTING_VIDEO_SIZE       VDOREC_SETTING_VIDEO_SIZE_QCIF
  625.     #define VDOREC_DEFAULT_SETTING_VIDEO_QTY        VDOREC_SETTING_VIDEO_QTY_NORMAL
  626.     #define VDOREC_DEFAULT_SETTING_SIZE_LIMIT       VDOREC_SETTING_SIZE_LIMIT_NO_LIMIT
  627.     #define VDOREC_DEFAULT_SETTING_TIME_LIMIT       VDOREC_SETTING_TIME_LIMIT_NO_LIMIT
  628.     #define VDOREC_DEFAULT_SETTING_RECORD_AUD       VDOREC_SETTING_RECORD_AUD_ON
  629.     #define VDOREC_DEFAULT_SETTING_VIDEO_FORMAT     VDOREC_SETTING_VIDEO_FORMAT_MP4
  630.     #define VDOREC_DEFAULT_SETTING_COLOR_IDX_FRAME  VDOREC_SETTING_COLOR_IDX_FRAME_OFF
  631.     
  632.     #define VDOREC_DEFAULT_SETTING_STORAGE              VDOREC_SETTING_STORAGE_PHONE
  633.     #define VDOREC_DEFAULT_PREVIEW_LED_VALUE            (80)
  634.     /* preview rotation */
  635.     #if defined(SENSOR_ON_BODY)
  636.         #if defined(SENSOR_ROTATE_0)
  637.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  638.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  639.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  640.         #elif defined(SENSOR_ROTATE_180)
  641.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  642.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  643.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  644.         #else
  645.             /* rotate 90, 270 not used yet */
  646.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  647.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  648.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  649.         #endif
  650.     #elif defined(SENSOR_ON_COVER)
  651.         #if defined(SENSOR_ROTATE_0)
  652.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  653.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  654.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  655.         #elif defined(SENSOR_ROTATE_180)
  656.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  657.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  658.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  659.         #else
  660.             /* rotate 90, 270 not used yet */
  661.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  662.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  663.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  664.         #endif
  665.     #else /* not define SENSOR_ROTATION */
  666.         #if defined(SENSOR_ROTATE_0)
  667.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  668.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  669.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  670.         #elif defined(SENSOR_ROTATE_180)
  671.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  672.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  673.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  674.         #else
  675.             /* rotate 90, 270 not used yet */
  676.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  677.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  678.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  679.         #endif
  680.     #endif /* SENSOR_ROTATION */
  681.     /***************************************************************************** 
  682.     * Video Player Feature
  683.     *****************************************************************************/
  684.     #define __VDOPLY_FEATURE_SPEED__
  685.     #define __VDOPLY_FEATURE_VOLUME__
  686.     
  687. #if !defined(__MMI_MAINLCD_128X128__) && !defined(MT6218B)
  688.     #define __VDOPLY_FEATURE_FULLSCREEN__
  689. #endif
  690.     //#define __VDOPLY_FEATURE_SNAPSHOT__       /* 6218B, 6217 dont support jpeg encoder */
  691.     /* misc config */
  692.     #define __VDOPLY_FEATURE_VOLUME_MUTE__      /* allows audio mute */
  693.     #define VDOPLY_FEATURE_SPEED_COUNT  (2)
  694.     
  695.     #define VDOPLY_FEATURE_SPEED_0      (-100)
  696.     #define VDOPLY_FEATURE_SPEED_1      (100)
  697.     #define VDOPLY_FEATURE_SPEED_2      (0)
  698.     #define VDOPLY_FEATURE_SPEED_3      (0)
  699.     #define VDOPLY_FEATURE_SPEED_4      (0)
  700.     #define VDOPLY_FEATURE_SPEED_5      (0)
  701.     #define VDOPLY_FEATURE_SPEED_6      (0)
  702.     #define VDOPLY_FEATURE_SPEED_7      (0)
  703.     #define VDOPLY_FEATURE_SPEED_8      (0)
  704.     #define VDOPLY_DEFAULT_SPEED            (1)  /* index - start from 0 */
  705.     #define __VDOPLY_FEATURE_FWD_BWD_SPEED__    /* foward and backward speed */
  706.     /***************************************************************************** 
  707.     *
  708.     * End of AIT700, AIT701
  709.     *
  710.     *****************************************************************************/
  711.     
  712.     #else
  713.     /***************************************************************************** 
  714.     *
  715.     * Start of Undefine Camera Module 
  716.     *
  717.     *****************************************************************************/
  718.     /***************************************************************************** 
  719.     * Video Recorder Feature
  720.     *****************************************************************************/
  721.     #define __VDOREC_FEATURE_ZOOM__
  722.     #define __VDOREC_FEATURE_WB__
  723.     #define __VDOREC_FEATURE_EV__
  724.     //#define __VDOREC_FEATURE_NIGHT__
  725.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT__
  726.     #define __VDOREC_FEATURE_BANDING__                                                                 
  727.     #define __VDOREC_FEATURE_VIDEO_QTY__
  728.     //#define __VDOREC_FEATURE_SIZE_LIMIT__
  729.     //#define __VDOREC_FEATURE_TIME_LIMIT__
  730.     //#define __VDOREC_FEATURE_RECORD_AUD__
  731.     //#define __VDOREC_FEATURE_VIDEO_FORMAT__
  732.     //#define __VDOREC_FEATURE_EFFECT__
  733.     #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  734.         #define __VDOREC_FEATURE_STORAGE__
  735.     #endif 
  736.     #if(defined(__MMI_MMS__) && defined(__MMI_WGUI_CSK_ENABLE__))
  737.         #define __MMI_VDOREC_MMS_SUPPORT__
  738.     #endif
  739.     #define __VDOREC_FEATURE_MERGE_MENU__           /* will merge "Camcoder Setting" & "Video Setting" into one */
  740.     //#define __VDOREC_FEATURE_RECORDING_ZOOM__ /* allows zooming while recording */
  741.     //#define __VDOREC_FEATURE_RECORDING_EV__       /* allows adjust ev while recording */
  742.     /***************************************************************************** 
  743.     * Zoom
  744.     *****************************************************************************/
  745.     #define VDOREC_FEATURE_ZOOM_COUNT           (3)
  746.     #define VDOREC_FEAUTRE_ZOOM_LIMIT           (40)
  747.     #define VDOREC_FEATURE_ZOOM_0               (10)
  748.     #define VDOREC_FEATURE_ZOOM_1               (20)
  749.     #define VDOREC_FEATURE_ZOOM_2               (40)
  750.     #define VDOREC_FEATURE_ZOOM_3               (0)
  751.     #define VDOREC_FEATURE_ZOOM_4               (0)
  752.     #define VDOREC_FEATURE_ZOOM_5               (0)
  753.     #define VDOREC_FEATURE_ZOOM_6               (0)
  754.     #define VDOREC_FEATURE_ZOOM_7               (0)
  755.     #define VDOREC_FEATURE_ZOOM_8               (0)
  756.     #define VDOREC_FEATURE_ZOOM_9               (0)
  757.     #define VDOREC_FEATURE_ZOOM_10              (0)
  758.     #define VDOREC_FEATURE_ZOOM_11              (0)
  759.     #define VDOREC_FEATURE_ZOOM_12              (0)
  760.     #define VDOREC_FEATURE_ZOOM_13              (0)
  761.     #define VDOREC_FEATURE_ZOOM_14              (0)
  762.     #define VDOREC_FEATURE_ZOOM_15              (0)
  763.     #define VDOREC_FEATURE_ZOOM_16              (0)
  764.     #define VDOREC_FEATURE_ZOOM_17              (0)
  765.     #define VDOREC_FEATURE_ZOOM_18              (0)
  766.     #define VDOREC_FEATURE_ZOOM_19              (0)
  767.     #define VDOREC_FEATURE_ZOOM_20              (0)
  768.     #define VDOREC_FEATURE_ZOOM_21              (0)
  769.     #define VDOREC_FEATURE_ZOOM_22              (0)
  770.     #define VDOREC_FEATURE_ZOOM_23              (0)
  771.     #define VDOREC_FEATURE_ZOOM_24              (0)
  772.     #define VDOREC_FEATURE_ZOOM_25              (0)
  773.     #define VDOREC_FEATURE_ZOOM_26              (0)
  774.     #define VDOREC_FEATURE_ZOOM_27              (0)
  775.     #define VDOREC_FEATURE_ZOOM_28              (0)
  776.     #define VDOREC_FEATURE_ZOOM_29              (0)
  777.     #define VDOREC_FEATURE_ZOOM_30              (0)
  778.     #define VDOREC_FEATURE_ZOOM_31              (0)
  779.     #define VDOREC_FEATURE_ZOOM_32              (0)
  780.     #define VDOREC_FEATURE_ZOOM_33              (0)
  781.     #define VDOREC_FEATURE_ZOOM_34              (0)
  782.     #define VDOREC_FEATURE_ZOOM_35              (0)  
  783.     /***************************************************************************** 
  784.     * CamCoder Setting
  785.     *****************************************************************************/
  786.     /******** customizable led highlight *********/
  787.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__
  788.     #define __VDOREC_FEATURE_LED_HIGHLIGHT_7_COLOR__
  789.     /***************************************************************************** 
  790.     * Video Recorder Setting
  791.     *****************************************************************************/
  792.     /******* customizable video qualtiy *********/
  793.     //#define __VDOREC_FEATURE_VIDEO_QTY_FINE__
  794.     #define __VDOREC_FEATURE_VIDEO_QTY_HIGH__
  795.     #define __VDOREC_FEATURE_VIDEO_QTY_NORMAL__
  796.     #define __VDOREC_FEATURE_VIDEO_QTY_LOW__
  797.     /******** customizable wb *********/
  798.     #define __VDOREC_FEATURE_WB_AUTO__
  799.     #define __VDOREC_FEATURE_WB_DAYLIGHT__
  800.     #define __VDOREC_FEATURE_WB_TUNGSTEN__
  801.     #define __VDOREC_FEATURE_WB_FLUORESCENT__
  802.     #define __VDOREC_FEATURE_WB_CLOUD__
  803.     #define __VDOREC_FEATURE_WB_INCANDESCENCE__
  804.     /******* customizable ev *********/
  805.     /* default will have off [ev 0] and [ev +1] [ev -1] menu if __VDOREC_FEATURE_EV__ is turn on */
  806.     #define __VDOREC_FEATURE_EV_2__
  807.     #define __VDOREC_FEATURE_EV_3__
  808.     #define __VDOREC_FEATURE_EV_4__
  809.     /******* customizable effect *********/
  810.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  811.     //#define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  812.     //#define __VDOREC_FEATURE_EFFECT_SEPIA__
  813.     //#define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  814.     //#define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  815.     //#define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  816.     //#define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  817.     //#define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  818.     //#define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  819.     //#define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  820.     //#define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  821.     //#define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  822.     //#define __VDOREC_FEATURE_EFFECT_CONTRAST__
  823.     //#define __VDOREC_FEATURE_EFFECT_JEAN__    
  824.     //#define __VDOREC_FEATURE_EFFECT_SKETCH__
  825.     //#define __VDOREC_FEATURE_EFFECT_OIL__ 
  826.     /******* customizable size limit *********/
  827.     //#define VDOREC_FEATURE_SIZE_LIMIT_1           (25)            /* 25k */
  828.     //#define VDOREC_FEATURE_SIZE_LIMIT_2           (50)            /* 50k */
  829.     //#define VDOREC_FEATURE_SIZE_LIMIT_3           (200)           /* 200k */
  830.     /******* customizable time limit *********/
  831.     //#define VDOREC_FEATURE_TIME_LIMIT_1           (15)            /* 15 sec */
  832.     //#define VDOREC_FEATURE_TIME_LIMIT_2           (30)            /* 30 sec */
  833.     //#define VDOREC_FEATURE_TIME_LIMIT_3           (60)            /* 60 sec */
  834.     
  835.     /******* SubLCD ********/
  836.     #ifdef __MMI_SUBLCD__
  837.     //  #define __VDOREC_FEATURE_SELF_RECORD__  /* not implement yet */
  838.     #endif /* __MMI_SUBLCD__ */
  839.     #define VDOREC_RECORD_KEY                   (KEY_CAMERA)
  840.     #define VDOREC_RECORD_EXTRA_KEY1            (KEY_IP)            /* if no extra, use -1 */
  841.     #define VDOREC_RECORD_EXTRA_KEY2            (-1)                /* if no extra, use -1 */
  842.     
  843.     #define VDOREC_EFFECT_KEY                   (KEY_1)         /* if no use hotkey, set -1 */
  844.     #define VDOREC_WB_KEY                       (KEY_2)
  845.     #define VDOREC_NIGHT_KEY                    (KEY_4)
  846.     #define VDOREC_LED_HIGHLIGHT_KEY            (KEY_3)
  847.     
  848.     /***************************************************************************** 
  849.     *   Default Setting 
  850.     *****************************************************************************/
  851.     /*********** Preview ***********/
  852.     #define VDOREC_DEFAULT_SETTING_ZOOM                 (0)  /* index - start from 0 */
  853.     #define VDOREC_DEFAULT_SETTING_WB                   VDOREC_SETTING_WB_AUTO
  854.     #define VDOREC_DEFAULT_SETTING_LED_HIGHLIGHT        VDOREC_SETTING_LED_HIGHLIGHT_OFF
  855.     #define VDOREC_DEFAULT_SETTING_EV                   VDOREC_SETTING_EV_ZERO      
  856.     #define VDOREC_DEFAULT_SETTING_NIGHT                VDOREC_SETTING_NIGHT_OFF
  857.     #define VDOREC_DEFAULT_SETTING_BANDING              VDOREC_SETTING_BANDING_60HZ
  858.     #define VDOREC_DEFAULT_SETTING_EFFECT               VDOREC_SETTING_EFFECT_NORMAL
  859.     #define VDOREC_DEFAULT_SETTING_VIDEO_SIZE           VDOREC_SETTING_VIDEO_SIZE_QCIF
  860.     #define VDOREC_DEFAULT_SETTING_VIDEO_QTY            VDOREC_SETTING_VIDEO_QTY_NORMAL
  861.     #define VDOREC_DEFAULT_SETTING_SIZE_LIMIT           VDOREC_SETTING_SIZE_LIMIT_NO_LIMIT
  862.     #define VDOREC_DEFAULT_SETTING_TIME_LIMIT           VDOREC_SETTING_TIME_LIMIT_NO_LIMIT
  863.     #define VDOREC_DEFAULT_SETTING_RECORD_AUD           VDOREC_SETTING_RECORD_AUD_ON
  864.     #define VDOREC_DEFAULT_SETTING_VIDEO_FORMAT         VDOREC_SETTING_VIDEO_FORMAT_MP4
  865.     #define VDOREC_DEFAULT_SETTING_COLOR_IDX_FRAME      VDOREC_SETTING_COLOR_IDX_FRAME_OFF
  866.     #define VDOREC_DEFAULT_SETTING_STORAGE              VDOREC_SETTING_STORAGE_PHONE
  867.     #define VDOREC_DEFAULT_PREVIEW_LED_VALUE            (80)
  868.     /* preview rotation */
  869.     #if defined(SENSOR_ON_BODY)
  870.         #if defined(SENSOR_ROTATE_0)
  871.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  872.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  873.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  874.         #elif defined(SENSOR_ROTATE_180)
  875.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  876.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  877.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  878.         #else
  879.             /* rotate 90, 270 not used yet */
  880.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  881.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  882.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  883.         #endif
  884.     #elif defined(SENSOR_ON_COVER)
  885.         #if defined(SENSOR_ROTATE_0)
  886.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  887.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  888.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  889.         #elif defined(SENSOR_ROTATE_180)
  890.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  891.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  892.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  893.         #else
  894.             /* rotate 90, 270 not used yet */
  895.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  896.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  897.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  898.         #endif
  899.     #else /* not define SENSOR_ROTATION */
  900.         #if defined(SENSOR_ROTATE_0)
  901.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  902.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  903.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  904.         #elif defined(SENSOR_ROTATE_180)
  905.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  906.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  907.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  908.         #else
  909.             /* rotate 90, 270 not used yet */
  910.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  911.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  912.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  913.         #endif
  914.     #endif /* SENSOR_ROTATION */
  915.     /***************************************************************************** 
  916.     * Video Player Feature
  917.     *****************************************************************************/
  918.     #define __VDOPLY_FEATURE_SPEED__
  919.     //#define __VDOPLY_FEATURE_VOLUME__
  920.     //#define __VDOPLY_FEATURE_FULLSCREEN__
  921.     //#define __VDOPLY_FEATURE_SNAPSHOT__
  922.     #define VDOPLY_FEATURE_SPEED_COUNT  (2)
  923.     
  924.     #define VDOPLY_FEATURE_SPEED_0      (-100)
  925.     #define VDOPLY_FEATURE_SPEED_1      (100)
  926.     #define VDOPLY_FEATURE_SPEED_2      (0)
  927.     #define VDOPLY_FEATURE_SPEED_3      (0)
  928.     #define VDOPLY_FEATURE_SPEED_4      (0)
  929.     #define VDOPLY_FEATURE_SPEED_5      (0)
  930.     #define VDOPLY_FEATURE_SPEED_6      (0)
  931.     #define VDOPLY_FEATURE_SPEED_7      (0)
  932.     #define VDOPLY_FEATURE_SPEED_8      (0)
  933.     #define VDOPLY_DEFAULT_SPEED            (1)  /* index - start from 0 */
  934.     /***************************************************************************** 
  935.     *
  936.     * End of Undefine Camera Module 
  937.     *
  938.     *****************************************************************************/
  939.     #endif /* Camera module type */
  940.     
  941. #elif defined(ISP_SUPPORT) && defined(MJPG_SUPPORT)
  942. /***************************************************************************** 
  943. *
  944. *
  945. * MT6225
  946. * Note: only support up to 176x144 LCM size
  947. *
  948. *****************************************************************************/
  949.     /***************************************************************************** 
  950.     * Video Recorder Feature
  951.     *****************************************************************************/
  952.     #ifdef __MMI_TOUCH_SCREEN__
  953.         #define __VDOREC_FEATURE_TOUCH_SCREEN__
  954.     #endif /* __MMI_TOUCH_SCREEN__ */
  955.     #ifdef HORIZONTAL_CAMERA
  956.         #define __VDOREC_FEATURE_HORIZONTAL_VIEW__
  957.     #endif /* HORIZONTAL_CAMERA */
  958.     #define __VDOREC_FEATURE_ZOOM__
  959.     #define __VDOREC_FEATURE_WB__
  960.     #define __VDOREC_FEATURE_EV__
  961.     #define __VDOREC_FEATURE_NIGHT__
  962.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT__  /* may turn on if HW support */
  963.     #define __VDOREC_FEATURE_BANDING__   
  964.     #define __VDOREC_FEATURE_VIDEO_QTY__
  965.     //#define __VDOREC_FEATURE_SIZE_LIMIT__     /* not used */   
  966.     //#define __VDOREC_FEATURE_TIME_LIMIT__     /* not used */   
  967.     //#define __VDOREC_FEATURE_RECORD_AUD__     /* not used */   
  968.     //#define __VDOREC_FEATURE_VIDEO_FORMAT__   /* not used */   
  969.     #define __VDOREC_FEATURE_EFFECT__
  970.     #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  971.         #define __VDOREC_FEATURE_STORAGE__
  972.     #endif
  973.     
  974.     #if(defined(__MMI_MMS__) && defined(__MMI_WGUI_CSK_ENABLE__))
  975.         #define __MMI_VDOREC_MMS_SUPPORT__
  976.     #endif
  977.     //#define __VDOREC_FEATURE_MERGE_MENU__         /* not used */
  978.     #define __VDOREC_FEATURE_RECORDING_ZOOM__    
  979.     #define __VDOREC_FEATURE_RECORDING_EV__       
  980.     /***************************************************************************** 
  981.     * Zoom
  982.     *****************************************************************************/
  983.     #define VDOREC_FEATURE_ZOOM_COUNT           (16)
  984.     #define VDOREC_FEAUTRE_ZOOM_LIMIT           (40)
  985.     #define VDOREC_FEATURE_ZOOM_0               (10)
  986.     #define VDOREC_FEATURE_ZOOM_1               (12)
  987.     #define VDOREC_FEATURE_ZOOM_2               (14)
  988.     #define VDOREC_FEATURE_ZOOM_3               (16)
  989.     #define VDOREC_FEATURE_ZOOM_4               (18)
  990.     #define VDOREC_FEATURE_ZOOM_5               (20)
  991.     #define VDOREC_FEATURE_ZOOM_6               (22)
  992.     #define VDOREC_FEATURE_ZOOM_7               (24)
  993.     #define VDOREC_FEATURE_ZOOM_8               (26)
  994.     #define VDOREC_FEATURE_ZOOM_9               (28)
  995.     #define VDOREC_FEATURE_ZOOM_10              (30)
  996.     #define VDOREC_FEATURE_ZOOM_11              (32)
  997.     #define VDOREC_FEATURE_ZOOM_12              (34)
  998.     #define VDOREC_FEATURE_ZOOM_13              (36)
  999.     #define VDOREC_FEATURE_ZOOM_14              (38)
  1000.     #define VDOREC_FEATURE_ZOOM_15              (40)
  1001.     #define VDOREC_FEATURE_ZOOM_16              (0)
  1002.     #define VDOREC_FEATURE_ZOOM_17              (0)
  1003.     #define VDOREC_FEATURE_ZOOM_18              (0)
  1004.     #define VDOREC_FEATURE_ZOOM_19              (0)
  1005.     #define VDOREC_FEATURE_ZOOM_20              (0)
  1006.     #define VDOREC_FEATURE_ZOOM_21              (0)
  1007.     #define VDOREC_FEATURE_ZOOM_22              (0)
  1008.     #define VDOREC_FEATURE_ZOOM_23              (0)
  1009.     #define VDOREC_FEATURE_ZOOM_24              (0)
  1010.     #define VDOREC_FEATURE_ZOOM_25              (0)
  1011.     #define VDOREC_FEATURE_ZOOM_26              (0)
  1012.     #define VDOREC_FEATURE_ZOOM_27              (0)
  1013.     #define VDOREC_FEATURE_ZOOM_28              (0)
  1014.     #define VDOREC_FEATURE_ZOOM_29              (0)
  1015.     #define VDOREC_FEATURE_ZOOM_30              (0)
  1016.     #define VDOREC_FEATURE_ZOOM_31              (0)
  1017.     #define VDOREC_FEATURE_ZOOM_32              (0)
  1018.     #define VDOREC_FEATURE_ZOOM_33              (0)
  1019.     #define VDOREC_FEATURE_ZOOM_34              (0)
  1020.     #define VDOREC_FEATURE_ZOOM_35              (0)   
  1021.     /***************************************************************************** 
  1022.     * CamCoder Setting
  1023.     *****************************************************************************/
  1024.     /******** customizable led highlight *********/
  1025.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__   /* may turn on if HW support LED */
  1026.     #ifdef HORIZONTAL_CAMERA
  1027.         //#define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__
  1028.     #else
  1029.         //#define __VDOREC_FEATURE_LED_HIGHLIGHT_7_COLOR__
  1030.     #endif
  1031.     /***************************************************************************** 
  1032.     * Video Recorder Setting
  1033.     *****************************************************************************/
  1034.     /******* customizable video qualtiy *********/
  1035.     #define __VDOREC_FEATURE_VIDEO_QTY_FINE__
  1036.     #define __VDOREC_FEATURE_VIDEO_QTY_HIGH__
  1037.     #define __VDOREC_FEATURE_VIDEO_QTY_NORMAL__
  1038.     #define __VDOREC_FEATURE_VIDEO_QTY_LOW__
  1039.     /******** customizable wb *********/
  1040.     #define __VDOREC_FEATURE_WB_AUTO__
  1041.     #define __VDOREC_FEATURE_WB_DAYLIGHT__
  1042.     #define __VDOREC_FEATURE_WB_TUNGSTEN__
  1043.     #define __VDOREC_FEATURE_WB_FLUORESCENT__
  1044.     #define __VDOREC_FEATURE_WB_CLOUD__
  1045.     #define __VDOREC_FEATURE_WB_INCANDESCENCE__
  1046.     /******* customizable ev *********/
  1047.     /* default will have off [ev 0] and [ev +1] [ev -1] menu if __VDOREC_FEATURE_EV__ is turn on */
  1048.     #define __VDOREC_FEATURE_EV_2__
  1049.     #define __VDOREC_FEATURE_EV_3__
  1050.     #define __VDOREC_FEATURE_EV_4__
  1051. #if defined(OV7660) || defined(OV7670)
  1052.     /* OV76X0 YUV interface */
  1053.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  1054.     #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  1055.     #define __VDOREC_FEATURE_EFFECT_SEPIA__
  1056.     #define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  1057.     #define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  1058.     #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  1059.     #define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  1060.     #define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  1061. #else
  1062.     /* other sensor */
  1063.     /******* customizable effect *********/
  1064.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  1065.     #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  1066.     #define __VDOREC_FEATURE_EFFECT_SEPIA__
  1067.     #define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  1068.     #define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  1069.     #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  1070.     #define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  1071.     #define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  1072.     #define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  1073.     #define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  1074.     #define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  1075.     #define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  1076.     #define __VDOREC_FEATURE_EFFECT_CONTRAST__
  1077.     #define __VDOREC_FEATURE_EFFECT_SKETCH__
  1078. #endif 
  1079.     /******* customizable size limit *********/
  1080.     //#define VDOREC_FEATURE_SIZE_LIMIT_1             (0)           /* not used */
  1081.     //#define VDOREC_FEATURE_SIZE_LIMIT_2             (0)           /* not used */
  1082.     //#define VDOREC_FEATURE_SIZE_LIMIT_3             (0)           /* not used */
  1083.     /******* customizable time limit *********/
  1084.     //#define VDOREC_FEATURE_TIME_LIMIT_1             (0)            /* not used */
  1085.     //#define VDOREC_FEATURE_TIME_LIMIT_2             (0)            /* not used */
  1086.     //#define VDOREC_FEATURE_TIME_LIMIT_3             (0)            /* not used */
  1087.     
  1088.     /******* SubLCD ********/
  1089.     #ifdef __MMI_SUBLCD__
  1090.     //  #define __VDOREC_FEATURE_SELF_RECORD__  /* not implement yet */
  1091.     #endif /* __MMI_SUBLCD__ */
  1092.     #define VDOREC_RECORD_KEY                   (KEY_CAMERA)
  1093.     #define VDOREC_RECORD_EXTRA_KEY1            (KEY_IP)            /* if no extra, use -1 */
  1094.     #define VDOREC_RECORD_EXTRA_KEY2            (KEY_POWER)         /* if no extra, use -1 */
  1095.     
  1096.     #define VDOREC_EFFECT_KEY                   (KEY_1)         /* if no use hotkey, set -1 */
  1097.     #define VDOREC_WB_KEY                       (KEY_2)
  1098.     #define VDOREC_NIGHT_KEY                    (KEY_4)
  1099.     #define VDOREC_LED_HIGHLIGHT_KEY            (KEY_3)
  1100.     
  1101.     /***************************************************************************** 
  1102.     *   Default Setting 
  1103.     *****************************************************************************/
  1104.     /*********** Preview ***********/
  1105.     #define VDOREC_DEFAULT_SETTING_ZOOM                 (0) /* index - start from 0 */
  1106.     #define VDOREC_DEFAULT_SETTING_WB                   VDOREC_SETTING_WB_AUTO
  1107.     #define VDOREC_DEFAULT_SETTING_LED_HIGHLIGHT        VDOREC_SETTING_LED_HIGHLIGHT_OFF
  1108.     #define VDOREC_DEFAULT_SETTING_EV                   VDOREC_SETTING_EV_ZERO      
  1109.     #define VDOREC_DEFAULT_SETTING_NIGHT                VDOREC_SETTING_NIGHT_OFF
  1110.     #define VDOREC_DEFAULT_SETTING_BANDING              VDOREC_SETTING_BANDING_60HZ
  1111.     #define VDOREC_DEFAULT_SETTING_EFFECT               VDOREC_SETTING_EFFECT_NORMAL
  1112.     #define VDOREC_DEFAULT_SETTING_VIDEO_SIZE           VDOREC_SETTING_VIDEO_SIZE_QCIF      /* not used */
  1113.     #define VDOREC_DEFAULT_SETTING_VIDEO_QTY            VDOREC_SETTING_VIDEO_QTY_NORMAL
  1114.     #define VDOREC_DEFAULT_SETTING_SIZE_LIMIT           VDOREC_SETTING_SIZE_LIMIT_NO_LIMIT  /* not used */
  1115.     #define VDOREC_DEFAULT_SETTING_TIME_LIMIT           VDOREC_SETTING_TIME_LIMIT_NO_LIMIT  /* not used */
  1116.     #define VDOREC_DEFAULT_SETTING_RECORD_AUD           VDOREC_SETTING_RECORD_AUD_ON        /* not used */      
  1117.     #define VDOREC_DEFAULT_SETTING_VIDEO_FORMAT         VDOREC_SETTING_VIDEO_FORMAT_MP4     /* not used */
  1118.     #define VDOREC_DEFAULT_SETTING_COLOR_IDX_FRAME      VDOREC_SETTING_COLOR_IDX_FRAME_OFF  /* not used */
  1119.     #define VDOREC_DEFAULT_SETTING_STORAGE              VDOREC_SETTING_STORAGE_PHONE
  1120.     #define VDOREC_DEFAULT_PREVIEW_LED_VALUE            (80)
  1121.     /* preview rotation */
  1122.     #if defined(SENSOR_ON_BODY)
  1123.         #if defined(SENSOR_ROTATE_0)
  1124.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1125.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1126.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1127.         #elif defined(SENSOR_ROTATE_180)
  1128.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1129.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1130.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1131.         #else
  1132.             /* rotate 90, 270 not used yet */
  1133.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1134.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1135.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1136.         #endif
  1137.     #elif defined(SENSOR_ON_COVER)
  1138.         #if defined(SENSOR_ROTATE_0)
  1139.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1140.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1141.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1142.         #elif defined(SENSOR_ROTATE_180)
  1143.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1144.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1145.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1146.         #else
  1147.             /* rotate 90, 270 not used yet */
  1148.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1149.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1150.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1151.         #endif
  1152.     #else /* not define SENSOR_ROTATION */
  1153.         #if defined(SENSOR_ROTATE_0)
  1154.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1155.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1156.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1157.         #elif defined(SENSOR_ROTATE_180)
  1158.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1159.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1160.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1161.         #else
  1162.             /* rotate 90, 270 not used yet */
  1163.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1164.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1165.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1166.         #endif
  1167.     #endif /* SENSOR_ROTATION */
  1168.     /***************************************************************************** 
  1169.     * Video Player Feature
  1170.     *****************************************************************************/
  1171.     #ifdef __MMI_TOUCH_SCREEN__
  1172.         #define __VDOPLY_FEATURE_TOUCH_SCREEN__
  1173.     #endif /* __MMI_TOUCH_SCREEN__ */
  1174.     #ifdef HORIZONTAL_CAMERA
  1175.     //  #define __VDOPLY_FEATURE_HORIZONTAL_VIEW__  /* may trun on if needed */
  1176.     #endif /* HORIZONTAL_CAMERA */
  1177.     
  1178.     //#define __VDOPLY_FEATURE_SPEED__          /* not used */   
  1179.     #define __VDOPLY_FEATURE_VOLUME__
  1180.     
  1181.     #ifndef __MMI_MAINLCD_128X128__
  1182.         #define __VDOPLY_FEATURE_FULLSCREEN__
  1183.         #define __VDOPLY_FEATURE_HIDE_FULLSCR_OSD__         /* hide fullscreen osd for better performance */        
  1184.     #endif
  1185.     //#define __VDOPLY_FEATURE_SNAPSHOT__
  1186.     /* misc config */
  1187.     #define __VDOPLY_FEATURE_VOLUME_MUTE__      /* allows audio mute */
  1188.   
  1189.     #define VDOPLY_FEATURE_SPEED_COUNT  (0)  /* not used */   
  1190.     #define VDOPLY_DEFAULT_SPEED        (0)  /* not used */   
  1191.     #define VDOPLY_FEATURE_SPEED_0      (0)
  1192.     #define VDOPLY_FEATURE_SPEED_1      (0)
  1193.     #define VDOPLY_FEATURE_SPEED_2      (0)
  1194.     #define VDOPLY_FEATURE_SPEED_3      (0)
  1195.     #define VDOPLY_FEATURE_SPEED_4      (0)
  1196.     #define VDOPLY_FEATURE_SPEED_5      (0)
  1197.     #define VDOPLY_FEATURE_SPEED_6      (0)
  1198.     #define VDOPLY_FEATURE_SPEED_7      (0)
  1199.     #define VDOPLY_FEATURE_SPEED_8      (0)
  1200. #elif defined(ISP_SUPPORT) && defined(MP4_CODEC)
  1201. /***************************************************************************** 
  1202. *
  1203. *
  1204. * MT6219, MT6228
  1205. *
  1206. *
  1207. *****************************************************************************/
  1208.     /***************************************************************************** 
  1209.     *
  1210.     * Start of ISP 
  1211.     *
  1212.     *****************************************************************************/
  1213.     /***************************************************************************** 
  1214.     * Video Recorder Feature
  1215.     *****************************************************************************/
  1216. #ifdef __MMI_MAINLCD_240X320__
  1217.     #define __VDOREC_FEATURE_HIDE_OSD__
  1218.     #define __VDOREC_FEATURE_MULTI_REGION_LAYER_BG__
  1219. #endif /* __MMI_MAINLCD_240X320__ */
  1220.     #ifdef __MMI_TOUCH_SCREEN__
  1221.         #define __VDOREC_FEATURE_TOUCH_SCREEN__
  1222.     #endif /* __MMI_TOUCH_SCREEN__ */
  1223.     #ifdef HORIZONTAL_CAMERA
  1224.         #define __VDOREC_FEATURE_HORIZONTAL_VIEW__
  1225.     #endif /* HORIZONTAL_CAMERA */
  1226.     #define __VDOREC_FEATURE_ZOOM__
  1227.     #define __VDOREC_FEATURE_WB__
  1228.     #define __VDOREC_FEATURE_EV__
  1229.     #define __VDOREC_FEATURE_NIGHT__
  1230.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT__
  1231.     #define __VDOREC_FEATURE_BANDING__   
  1232.     
  1233.     #if defined(MT6228) || defined(MT6229)
  1234.         #define __VDOREC_FEATURE_VIDEO_SIZE__
  1235.     #endif
  1236.     
  1237.     #define __VDOREC_FEATURE_VIDEO_QTY__
  1238.     #define __VDOREC_FEATURE_SIZE_LIMIT__
  1239.     #define __VDOREC_FEATURE_TIME_LIMIT__
  1240.     #define __VDOREC_FEATURE_RECORD_AUD__
  1241.     #define __VDOREC_FEATURE_VIDEO_FORMAT__
  1242.     #define __VDOREC_FEATURE_EFFECT__
  1243.     #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
  1244.         #define __VDOREC_FEATURE_STORAGE__
  1245.     #endif
  1246.     
  1247.     #if(defined(__MMI_MMS__) && defined(__MMI_WGUI_CSK_ENABLE__))
  1248.         #define __MMI_VDOREC_MMS_SUPPORT__
  1249.     #endif
  1250.     //#define __VDOREC_FEATURE_MERGE_MENU__     /* will merge "Camcoder Setting" & "Video Setting" into one */
  1251.     #define __VDOREC_FEATURE_RECORDING_ZOOM__       /* allows zooming while recording */
  1252.     #define __VDOREC_FEATURE_RECORDING_EV__     /* allows adjust ev while recording */
  1253.     /***************************************************************************** 
  1254.     * Zoom
  1255.     *****************************************************************************/
  1256.     #define VDOREC_FEATURE_ZOOM_COUNT           (36)
  1257.     #define VDOREC_FEAUTRE_ZOOM_LIMIT           (80)
  1258.     #define VDOREC_FEATURE_ZOOM_0               (10)
  1259.     #define VDOREC_FEATURE_ZOOM_1               (12)
  1260.     #define VDOREC_FEATURE_ZOOM_2               (14)
  1261.     #define VDOREC_FEATURE_ZOOM_3               (16)
  1262.     #define VDOREC_FEATURE_ZOOM_4               (18)
  1263.     #define VDOREC_FEATURE_ZOOM_5               (20)
  1264.     #define VDOREC_FEATURE_ZOOM_6               (22)
  1265.     #define VDOREC_FEATURE_ZOOM_7               (24)
  1266.     #define VDOREC_FEATURE_ZOOM_8               (26)
  1267.     #define VDOREC_FEATURE_ZOOM_9               (28)
  1268.     #define VDOREC_FEATURE_ZOOM_10              (30)
  1269.     #define VDOREC_FEATURE_ZOOM_11              (32)
  1270.     #define VDOREC_FEATURE_ZOOM_12              (34)
  1271.     #define VDOREC_FEATURE_ZOOM_13              (36)
  1272.     #define VDOREC_FEATURE_ZOOM_14              (38)
  1273.     #define VDOREC_FEATURE_ZOOM_15              (40)
  1274.     #define VDOREC_FEATURE_ZOOM_16              (42)
  1275.     #define VDOREC_FEATURE_ZOOM_17              (44)
  1276.     #define VDOREC_FEATURE_ZOOM_18              (46)
  1277.     #define VDOREC_FEATURE_ZOOM_19              (48)
  1278.     #define VDOREC_FEATURE_ZOOM_20              (50)
  1279.     #define VDOREC_FEATURE_ZOOM_21              (52)
  1280.     #define VDOREC_FEATURE_ZOOM_22              (54)
  1281.     #define VDOREC_FEATURE_ZOOM_23              (56)
  1282.     #define VDOREC_FEATURE_ZOOM_24              (58)
  1283.     #define VDOREC_FEATURE_ZOOM_25              (60)
  1284.     #define VDOREC_FEATURE_ZOOM_26              (62)
  1285.     #define VDOREC_FEATURE_ZOOM_27              (64)
  1286.     #define VDOREC_FEATURE_ZOOM_28              (66)
  1287.     #define VDOREC_FEATURE_ZOOM_29              (68)
  1288.     #define VDOREC_FEATURE_ZOOM_30              (70)
  1289.     #define VDOREC_FEATURE_ZOOM_31              (72)
  1290.     #define VDOREC_FEATURE_ZOOM_32              (74)
  1291.     #define VDOREC_FEATURE_ZOOM_33              (76)
  1292.     #define VDOREC_FEATURE_ZOOM_34              (78)
  1293.     #define VDOREC_FEATURE_ZOOM_35              (80)    
  1294.     /***************************************************************************** 
  1295.     * CamCoder Setting
  1296.     *****************************************************************************/
  1297.     /******** customizable led highlight *********/
  1298.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_ON_OFF__
  1299.     //#define __VDOREC_FEATURE_LED_HIGHLIGHT_7_COLOR__
  1300.     /***************************************************************************** 
  1301.     * Video Recorder Setting
  1302.     *****************************************************************************/
  1303.     /******* customizable video size *********/ 
  1304.     #if defined(MT6228) || defined(MT6229)
  1305.         /* 
  1306.          *  Disable SQCIF due to we dont add 128x96 overlay frame.
  1307.          * Disable QQVGA due to H.263 cant record 160x120 size .
  1308.          */ 
  1309.     
  1310. //      #define __VDOREC_FEATURE_VIDEO_SIZE_SQCIF__     /* 128x96 */    
  1311.         #define __VDOREC_FEATURE_VIDEO_SIZE_QCIF__      /* 176x144 */
  1312.         #define __VDOREC_FEATURE_VIDEO_SIZE_CIF__       /* 352x288 */
  1313. //      #define __VDOREC_FEATURE_VIDEO_SIZE_QQVGA__     /* 160x120 */
  1314.         //#define __VDOREC_COLOR_IDX_FRAME__
  1315.         #define __VDOREC_COLOR_IDX_FRAME_1__
  1316.         #define __VDOREC_COLOR_IDX_FRAME_2__
  1317.         #define __VDOREC_COLOR_IDX_FRAME_3__
  1318.         #define VDOREC_COLOR_IDX_FRAME_QVGA_WIDTH       (160)
  1319.         #define VDOREC_COLOR_IDX_FRAME_QVGA_HEIGHT      (120)
  1320.         #define VDOREC_COLOR_IDX_FRAME_QCIF_WIDTH       (176)
  1321.         #define VDOREC_COLOR_IDX_FRAME_QCIF_HEIGHT      (144)
  1322.     #endif /* MT6228 || MT6229 */
  1323.     
  1324.     /******* customizable video qualtiy *********/
  1325.     #define __VDOREC_FEATURE_VIDEO_QTY_FINE__
  1326.     #define __VDOREC_FEATURE_VIDEO_QTY_HIGH__
  1327.     #define __VDOREC_FEATURE_VIDEO_QTY_NORMAL__
  1328.     #define __VDOREC_FEATURE_VIDEO_QTY_LOW__
  1329.     /******** customizable wb *********/
  1330.     #define __VDOREC_FEATURE_WB_AUTO__
  1331.     #define __VDOREC_FEATURE_WB_DAYLIGHT__
  1332.     #define __VDOREC_FEATURE_WB_TUNGSTEN__
  1333.     #define __VDOREC_FEATURE_WB_FLUORESCENT__
  1334.     #define __VDOREC_FEATURE_WB_CLOUD__
  1335.     #define __VDOREC_FEATURE_WB_INCANDESCENCE__
  1336.     /******* customizable ev *********/
  1337.     /* default will have off [ev 0] and [ev +1] [ev -1] menu if __VDOREC_FEATURE_EV__ is turn on */
  1338.     #define __VDOREC_FEATURE_EV_2__
  1339.     #define __VDOREC_FEATURE_EV_3__
  1340.     #define __VDOREC_FEATURE_EV_4__
  1341. #if defined(OV7660) && defined(YUV_SENSOR_SUPPORT)
  1342.     /* OV7660 YUV interface */
  1343.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  1344.     #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  1345.     #define __VDOREC_FEATURE_EFFECT_SEPIA__
  1346.     #define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  1347.     #define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  1348.     #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  1349.     #define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  1350.     #define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__  
  1351. #else
  1352.     /* MTK ISP */
  1353.     /******* customizable effect *********/
  1354.     #define __VDOREC_FEATURE_EFFECT_NORMAL__
  1355.     #define __VDOREC_FEATURE_EFFECT_GRAYSCALE__
  1356.     #define __VDOREC_FEATURE_EFFECT_SEPIA__
  1357.     #define __VDOREC_FEATURE_EFFECT_SEPIA_GREEN__
  1358.     #define __VDOREC_FEATURE_EFFECT_SEPIA_BLUE__
  1359.     #define __VDOREC_FEATURE_EFFECT_COLOR_INVERT__
  1360.     #define __VDOREC_FEATURE_EFFECT_GRAY_INVERT__
  1361.     #define __VDOREC_FEATURE_EFFECT_BLACKBOARD__
  1362.     #define __VDOREC_FEATURE_EFFECT_WHITEBOARD__
  1363.     #define __VDOREC_FEATURE_EFFECT_COPPER_CARVING__
  1364.     #define __VDOREC_FEATURE_EFFECT_BLUE_CARVING__
  1365.     #define __VDOREC_FEATURE_EFFECT_EMBOSSMENT__
  1366.     #define __VDOREC_FEATURE_EFFECT_CONTRAST__
  1367.     //#define __VDOREC_FEATURE_EFFECT_JEAN__    /* turn of due some sensor might have problem */
  1368.     #define __VDOREC_FEATURE_EFFECT_SKETCH__
  1369.     //#define __VDOREC_FEATURE_EFFECT_OIL__ /* turn of due some sensor might have problem */
  1370. #endif 
  1371.     /******* customizable size limit *********/
  1372.     #define VDOREC_FEATURE_SIZE_LIMIT_1             (95)            /* 95k */
  1373.     #define VDOREC_FEATURE_SIZE_LIMIT_2             (195)           /* 195k */
  1374.     #define VDOREC_FEATURE_SIZE_LIMIT_3             (295)           /* 295k */
  1375.     /******* customizable time limit *********/
  1376.     #define VDOREC_FEATURE_TIME_LIMIT_1             (15)            /* 15 sec */
  1377.     #define VDOREC_FEATURE_TIME_LIMIT_2             (30)            /* 30 sec */
  1378.     #define VDOREC_FEATURE_TIME_LIMIT_3             (60)            /* 60 sec */
  1379.     
  1380.     /******* SubLCD ********/
  1381.     #ifdef __MMI_SUBLCD__
  1382.     //  #define __VDOREC_FEATURE_SELF_RECORD__  /* not implement yet */
  1383.     #endif /* __MMI_SUBLCD__ */
  1384.     #define VDOREC_RECORD_KEY                   (KEY_CAMERA)
  1385.     #define VDOREC_RECORD_EXTRA_KEY1            (KEY_IP)            /* if no extra, use -1 */
  1386.     #define VDOREC_RECORD_EXTRA_KEY2            (-1)                /* if no extra, use -1 */
  1387. #ifdef __VDOREC_FEATURE_HIDE_OSD__  
  1388.     /* if we hide osd, we also disable hotkey, it is hard for user to use hotkey without hint*/
  1389.     #define VDOREC_EFFECT_KEY                   (-1)            /* if no use hotkey, set -1 */
  1390.     #define VDOREC_WB_KEY                       (-1)
  1391.     #define VDOREC_NIGHT_KEY                    (-1)
  1392.     #define VDOREC_LED_HIGHLIGHT_KEY            (KEY_3)
  1393. #else
  1394.     #define VDOREC_EFFECT_KEY                   (KEY_1)         /* if no use hotkey, set -1 */
  1395.     #define VDOREC_WB_KEY                       (KEY_2)
  1396.     #define VDOREC_NIGHT_KEY                    (KEY_4)
  1397.     #define VDOREC_LED_HIGHLIGHT_KEY            (KEY_3)
  1398. #endif 
  1399.     
  1400.     /***************************************************************************** 
  1401.     *   Default Setting 
  1402.     *****************************************************************************/
  1403.     /*********** Preview ***********/
  1404.     #define VDOREC_DEFAULT_SETTING_ZOOM                 (0) /* index - start from 0 */
  1405.     #define VDOREC_DEFAULT_SETTING_WB                   VDOREC_SETTING_WB_AUTO
  1406.     #define VDOREC_DEFAULT_SETTING_LED_HIGHLIGHT        VDOREC_SETTING_LED_HIGHLIGHT_OFF
  1407.     #define VDOREC_DEFAULT_SETTING_EV                   VDOREC_SETTING_EV_ZERO      
  1408.     #define VDOREC_DEFAULT_SETTING_NIGHT                VDOREC_SETTING_NIGHT_OFF
  1409.     //KP Jerry modify on 2006-12-1 start
  1410.     #if defined(__MMI_CAMERA_FLICKER_50Hz__)
  1411.     #define VDOREC_DEFAULT_SETTING_BANDING VDOREC_SETTING_BANDING_50HZ
  1412.     #elif defined(__MMI_CAMERA_FLICKER_60Hz__)
  1413.     #define VDOREC_DEFAULT_SETTING_BANDING VDOREC_SETTING_BANDING_60HZ
  1414.     #else
  1415.     #define VDOREC_DEFAULT_SETTING_BANDING VDOREC_SETTING_BANDING_60HZ
  1416.     #endif
  1417.     //KP Jerry modify on 2006-12-1 end
  1418.     #define VDOREC_DEFAULT_SETTING_EFFECT               VDOREC_SETTING_EFFECT_NORMAL
  1419.     #define VDOREC_DEFAULT_SETTING_VIDEO_SIZE           VDOREC_SETTING_VIDEO_SIZE_QCIF
  1420.     #define VDOREC_DEFAULT_SETTING_VIDEO_QTY            VDOREC_SETTING_VIDEO_QTY_NORMAL
  1421.     #define VDOREC_DEFAULT_SETTING_SIZE_LIMIT           VDOREC_SETTING_SIZE_LIMIT_NO_LIMIT
  1422.     #define VDOREC_DEFAULT_SETTING_TIME_LIMIT           VDOREC_SETTING_TIME_LIMIT_NO_LIMIT
  1423.     #define VDOREC_DEFAULT_SETTING_RECORD_AUD           VDOREC_SETTING_RECORD_AUD_ON
  1424.     #define VDOREC_DEFAULT_SETTING_VIDEO_FORMAT         VDOREC_SETTING_VIDEO_FORMAT_MP4
  1425.     #define VDOREC_DEFAULT_SETTING_COLOR_IDX_FRAME      VDOREC_SETTING_COLOR_IDX_FRAME_OFF
  1426.     #define VDOREC_DEFAULT_SETTING_STORAGE              VDOREC_SETTING_STORAGE_PHONE
  1427.     #define VDOREC_DEFAULT_PREVIEW_LED_VALUE            (80)
  1428.     /* preview rotation */
  1429.     #if defined(SENSOR_ON_BODY)
  1430.         #if defined(SENSOR_ROTATE_0)
  1431.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1432.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1433.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1434.         #elif defined(SENSOR_ROTATE_180)
  1435.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1436.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1437.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1438.         #else
  1439.             /* rotate 90, 270 not used yet */
  1440.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1441.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1442.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1443.         #endif
  1444.     #elif defined(SENSOR_ON_COVER)
  1445.         #if defined(SENSOR_ROTATE_0)
  1446.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1447.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1448.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1449.         #elif defined(SENSOR_ROTATE_180)
  1450.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1451.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1452.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1453.         #else
  1454.             /* rotate 90, 270 not used yet */
  1455.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1456.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1457.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1458.         #endif
  1459.     #else /* not define SENSOR_ROTATION */
  1460.         #if defined(SENSOR_ROTATE_0)
  1461.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1462.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1463.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1464.         #elif defined(SENSOR_ROTATE_180)
  1465.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_180
  1466.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_180_MIRROR
  1467.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_0_MIRROR
  1468.         #else
  1469.             /* rotate 90, 270 not used yet */
  1470.             #define VDOREC_MAINLCD_ROTATE               VDOREC_PREVIEW_ROTATE_0
  1471.             #define VDOREC_SUBLCD_CLAM_OPEN_ROTATE      VDOREC_PREVIEW_ROTATE_0_MIRROR
  1472.             #define VDOREC_SUBLCD_CLAM_CLOSE_ROTATE     VDOREC_PREVIEW_ROTATE_180_MIRROR
  1473.         #endif
  1474.     #endif /* SENSOR_ROTATION */
  1475.     /***************************************************************************** 
  1476.     * Video Player Feature
  1477.     *****************************************************************************/
  1478.     #ifdef __MMI_MAINLCD_240X320__
  1479.         #define __VDOPLY_FEATURE_HIDE_FULLSCR_OSD__
  1480.         #define __VDOPLY_FEATURE_MULTI_REGION_LAYER_BG__
  1481.     #endif /* __MMI_MAINLCD_240X320__ */
  1482.     #if defined(__TEARING_REDUCTION_FB_IN_INTSRAM__) && !defined(MMI_ON_WIN32)
  1483.         /* for MoDIS, Target Only */
  1484.         #define __VDOPLY_FEATURE_INT_RAM_FRAME_BUF__
  1485.     #endif 
  1486.         
  1487.     #ifdef __MMI_TOUCH_SCREEN__
  1488.         #define __VDOPLY_FEATURE_TOUCH_SCREEN__
  1489.     #endif /* __MMI_TOUCH_SCREEN__ */
  1490.     #ifdef HORIZONTAL_CAMERA
  1491.     //  #define __VDOPLY_FEATURE_HORIZONTAL_VIEW__
  1492.     #endif /* HORIZONTAL_CAMERA */
  1493.     
  1494.     #define __VDOPLY_FEATURE_SPEED__
  1495.     #define __VDOPLY_FEATURE_VOLUME__
  1496.     
  1497.     #ifndef __MMI_MAINLCD_128X128__
  1498.         #define __VDOPLY_FEATURE_FULLSCREEN__
  1499.     #endif
  1500.     #define __VDOPLY_FEATURE_SNAPSHOT__
  1501.     /* misc config */
  1502.     #define __VDOPLY_FEATURE_VOLUME_MUTE__      /* allows audio mute */
  1503.     #if defined(MT6228) || defined(MT6229)
  1504.         #define __VDOPLY_FEATURE_LSK_OPTION__       /* allows LSK change to option */
  1505.     #endif
  1506.     
  1507.     #if defined(MT6228) || defined(MT6229)  
  1508.         #define VDOPLY_FEATURE_SPEED_COUNT  (8) 
  1509.         #define VDOPLY_DEFAULT_SPEED        (2)  /* index - start from 0 */     
  1510.         
  1511.         #define VDOPLY_FEATURE_SPEED_0      (50)
  1512.         #define VDOPLY_FEATURE_SPEED_1      (75)
  1513.         #define VDOPLY_FEATURE_SPEED_2      (100)
  1514.         #define VDOPLY_FEATURE_SPEED_3      (125)
  1515.         #define VDOPLY_FEATURE_SPEED_4      (150)
  1516.         #define VDOPLY_FEATURE_SPEED_5      (200)
  1517.         #define VDOPLY_FEATURE_SPEED_6      (400)
  1518.         #define VDOPLY_FEATURE_SPEED_7      (800)
  1519.         #define VDOPLY_FEATURE_SPEED_8      (0)
  1520.     #else
  1521.         #define VDOPLY_FEATURE_SPEED_COUNT  (5)     
  1522.         #define VDOPLY_DEFAULT_SPEED        (1)  /* index - start from 0 */
  1523.     
  1524.         #define VDOPLY_FEATURE_SPEED_0      (50)
  1525.         #define VDOPLY_FEATURE_SPEED_1      (100)
  1526.         #define VDOPLY_FEATURE_SPEED_2      (200)
  1527.         #define VDOPLY_FEATURE_SPEED_3      (400)
  1528.         #define VDOPLY_FEATURE_SPEED_4      (800)
  1529.         #define VDOPLY_FEATURE_SPEED_5      (0)
  1530.         #define VDOPLY_FEATURE_SPEED_6      (0)
  1531.         #define VDOPLY_FEATURE_SPEED_7      (0)
  1532.         #define VDOPLY_FEATURE_SPEED_8      (0)
  1533.     #endif
  1534.     /***************************************************************************** 
  1535.     *
  1536.     * End of ISP 
  1537.     *
  1538.     *****************************************************************************/
  1539. #else
  1540.     /* Do not have Camera module or ISP, only have video play feature */
  1541.     /***************************************************************************** 
  1542.     * Video Player Feature
  1543.     *****************************************************************************/
  1544.     #ifdef __MMI_TOUCH_SCREEN__
  1545.         #define __VDOPLY_FEATURE_TOUCH_SCREEN__
  1546.     #endif /* __MMI_TOUCH_SCREEN__ */
  1547.     
  1548.     #ifdef HORIZONTAL_CAMERA
  1549.         #define __VDOPLY_FEATURE_HORIZONTAL_VIEW__
  1550.     #endif /* HORIZONTAL_CAMERA */
  1551.     
  1552.     #define __VDOPLY_FEATURE_SPEED__
  1553.     #define __VDOPLY_FEATURE_VOLUME__
  1554.     
  1555.     #ifndef __MMI_MAINLCD_128X128__
  1556.         #define __VDOPLY_FEATURE_FULLSCREEN__
  1557.     #endif
  1558.     
  1559.     #define __VDOPLY_FEATURE_SNAPSHOT__
  1560.     /* misc config */
  1561.     #define __VDOPLY_FEATURE_VOLUME_MUTE__      /* allows audio mute */
  1562.     #if defined(MT6228) || defined(MT6229)
  1563.         #define __VDOPLY_FEATURE_LSK_OPTION__       /* allows LSK change to option */
  1564.     #endif
  1565.     
  1566.     #if defined(MT6228) || defined(MT6229)  
  1567.         #define VDOPLY_FEATURE_SPEED_COUNT  (8) 
  1568.         #define VDOPLY_DEFAULT_SPEED        (2)  /* index - start from 0 */     
  1569.         
  1570.         #define VDOPLY_FEATURE_SPEED_0      (50)
  1571.         #define VDOPLY_FEATURE_SPEED_1      (75)
  1572.         #define VDOPLY_FEATURE_SPEED_2      (100)
  1573.         #define VDOPLY_FEATURE_SPEED_3      (125)
  1574.         #define VDOPLY_FEATURE_SPEED_4      (150)
  1575.         #define VDOPLY_FEATURE_SPEED_5      (200)
  1576.         #define VDOPLY_FEATURE_SPEED_6      (400)
  1577.         #define VDOPLY_FEATURE_SPEED_7      (800)
  1578.         #define VDOPLY_FEATURE_SPEED_8      (0)
  1579.     #else
  1580.         #define VDOPLY_FEATURE_SPEED_COUNT  (5)     
  1581.         #define VDOPLY_DEFAULT_SPEED        (1)  /* index - start from 0 */
  1582.     
  1583.         #define VDOPLY_FEATURE_SPEED_0      (50)
  1584.         #define VDOPLY_FEATURE_SPEED_1      (100)
  1585.         #define VDOPLY_FEATURE_SPEED_2      (200)
  1586.         #define VDOPLY_FEATURE_SPEED_3      (400)
  1587.         #define VDOPLY_FEATURE_SPEED_4      (800)
  1588.         #define VDOPLY_FEATURE_SPEED_5      (0)
  1589.         #define VDOPLY_FEATURE_SPEED_6      (0)
  1590.         #define VDOPLY_FEATURE_SPEED_7      (0)
  1591.         #define VDOPLY_FEATURE_SPEED_8      (0)
  1592.     #endif
  1593. #endif /* CAMERA_MODULE, ISP_SUPPORT */
  1594. #endif /* __MMI_VIDEO_PLAYER__ || __MMI_VIDEO_RECORDER__ */
  1595. #endif /* _VIDEO_FEATURES_H_ */