⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csiclass.h

📁 Microsoft WinCE 6.0 BSP FINAL release source code for use with the i.MX27ADS TO2 WCE600_FINAL_MX27_S
💻 H
字号:
//-----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//-----------------------------------------------------------------------------
//
//  Copyright (C) 2004, Motorola Inc. All Rights Reserved
//
//-----------------------------------------------------------------------------
//
// Copyright (C) 2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT 
//
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
//
//  File:  CsiClass.h
//
//  Common definitions for csi module
//
//-----------------------------------------------------------------------------

#ifndef __CSICLASS_H__
#define __CSICLASS_H__

#ifdef __cplusplus
extern "C" {
#endif

//------------------------------------------------------------------------------
// Defines


//------------------------------------------------------------------------------
// Types

// The data format from the sensor
typedef enum csiSensorOutputFormatEnum
{
    csiSensorOutputFormat_RGB,
    csiSensorOutputFormat_YUV444,
    csiSensorOutputFormat_YUV422,
    csiSensorOutputFormat_Bayer,
} csiSensorOutputFormat;

// The image resolution from the sensor
typedef enum csiSensorOutputResolutionEnum
{
    csiSensorOutputResolution_VGA,
    csiSensorOutputResolution_QVGA,
    csiSensorOutputResolution_CIF,
    csiSensorOutputResolution_QCIF,
    csiSensorOutputResolution_QQVGA,
    csiSensorOutputResolution_SXGA,
    csiSensorOutputResolution_PAL,
    csiSensorOutputResolution_NTSC
} csiSensorOutputResolution;

class CsiClass 
{
    public:
        CsiClass();
        ~CsiClass();
        void CsiEnable(void);
        void CsiDisable(void);

        BOOL CsiConfigureSensor(csiSensorOutputFormat, csiSensorOutputResolution);
        void CsiChangeFrameRate(DWORD);
        void CsiZoom(DWORD);
        
    private:
        PCSP_CSI_REGS m_pCSI;
        BOOL m_bIsCsiEnabled;
	 
        void CsiInit(void);
        void CsiDeinit(void);
};

//------------------------------------------------------------------------------
// Functions

#ifdef __cplusplus
}
#endif

#endif  // __CSICLASS_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -