MMI_features_barcodereader.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:7k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * mmi_features_barcodereader.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * QR Code Reader Applications v0.1
- *
- * Author:
- * -------
- * -------
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- /****************************************************************************
- * Include Files
- *****************************************************************************/
- #ifndef _BARCODEREADER_FEATURES_H_
- #define _BARCODEREADER_FEATURES_H_
- #include "MMI_features.h"
- #ifdef __MMI_BARCODEREADER__
- #ifdef HORIZONTAL_CAMERA
- #define __HORIZONTAL_BARCODEREADER__
- #endif
- #if ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
- #elif ((LCD_WIDTH == 128) && (LCD_HEIGHT == 160))
- #elif ( (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) )
- #define BARCODEREADER_PREVIEW_WINDOW_WIDTH 176
- #define BARCODEREADER_PREVIEW_WINDOW_HEIGHT 132
- #define BARCODEREADER_PREVIEW_WINDOW_OFFSET_X 0
- #define BARCODEREADER_PREVIEW_WINDOW_OFFSET_Y 24
- #elif ( (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) )
- #define BARCODEREADER_PREVIEW_WINDOW_WIDTH 240
- #define BARCODEREADER_PREVIEW_WINDOW_HEIGHT 180
- #define BARCODEREADER_PREVIEW_WINDOW_OFFSET_X 0
- #define BARCODEREADER_PREVIEW_WINDOW_OFFSET_Y 39
- #endif
- #ifdef __HORIZONTAL_BARCODEREADER__
- #define BARCODEREADER_IMAGE_WIDTH 320
- #define BARCODEREADER_IMAGE_HEIGHT 240
- #else
- #define BARCODEREADER_IMAGE_WIDTH 240
- #define BARCODEREADER_IMAGE_HEIGHT 320
- #endif
- #ifdef __HORIZONTAL_BARCODEREADER__
- #define BARCODEREADER_LCM_MAINLCD_ROTATE BARCODEREADER_LCM_ROTATE_270
- #else
- #define BARCODEREADER_LCM_MAINLCD_ROTATE BARCODEREADER_LCM_ROTATE_0
- #endif
- #define BARCODEREADER_PREVIEW_MAINLCD_ROTATE BARCODEREADER_PREVIEW_ROTATE_0
- /****************************************************************************
- * Device Feature Customization
- *****************************************************************************/
- #ifdef __MMI_TOUCH_SCREEN__
- #define __BARCODEREADER_TOUCH_SCREEN_SUPPORT__
- #endif
- #ifdef AF_SUPPORT
- #define __BARCODEREADER_AF_SUPPORT__
- #endif
- /****************************************************************************
- * Camera Feature Customization
- *****************************************************************************/
- #define __BARCODEREADER_EV_2__
- #define __BARCODEREADER_EV_3__
- #define __BARCODEREADER_EV_4__
- #ifdef __BARCODEREADER_AF_SUPPORT__
- #define __BARCODEREADER_FOCUS_MODE__ /* auto is default */
- #define __BARCODEREADER_FOCUS_MODE_MACRO__
- //#define __BARCODEREADER_FOCUS_MODE_MANUAL__
- #define BARCODE_AF_POSITION_1_X (LCD_WIDTH/2)
- #define BARCODE_AF_POSITION_1_Y (BARCODEREADER_PREVIEW_WINDOW_OFFSET_Y+BARCODEREADER_PREVIEW_WINDOW_HEIGHT/2)
- #define BARCODE_AF_POSITION_2_X (0)
- #define BARCODE_AF_POSITION_2_Y (0)
- #define BARCODE_AF_POSITION_3_X (0)
- #define BARCODE_AF_POSITION_3_Y (0)
- #define BARCODE_AF_POSITION_4_X (0)
- #define BARCODE_AF_POSITION_4_Y (0)
- #define BARCODE_AF_POSITION_5_X (0)
- #define BARCODE_AF_POSITION_5_Y (0)
- #endif
- #define __BARCODEREADER_FLASH__
- #if (defined(__MSDC_MS__) || defined(__MSDC_SD_MMC__))
- #define __BARCODEREADER_STORAGE__
- #endif
- #define __BARCODEREADER_BANDING__
- /****************************************************************************
- * Default Setting
- *****************************************************************************/
- #define BARCODEREADER_DEFAULT_SETTING_EV BARCODEREADER_SETTING_EV_0
- #define BARCODEREADER_DEFAULT_SETTING_FOCUS_MODE BARCODEREADER_SETTING_FOCUS_MODE_AUTO
- #define BARCODEREADER_DEFAULT_SETTING_FLASH BARCODEREADER_SETTING_FLASH_OFF
- #define BARCODEREADER_DEFAULT_SETTING_BANDING BARCODEREADER_SETTING_BANDING_50HZ
- /****************************************************************************
- * Key Map Setting
- *****************************************************************************/
- #define BARCODEREADER_FOCUS_MODE_KEY (KEY_1)
- #define BARCODEREADER_FLASH_KEY (KEY_2)
- #define BARCODEREADER_STORAGE_KEY (KEY_3)
- #define BARCODEREADER_CAPTURE_EXTRA_KEY (KEY_IP)
- #define BARCODEREADER_CAPTURE_KEY (KEY_CAMERA)
- #endif /* __MMI_BARCODEREADER__ */
- #endif /* _BARCODEREADER_FEATRUES_H_ */