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

📄 common.h

📁 1. 8623L平台
💻 H
字号:
/* * * Copyright (c) 2001-2007 Sigma Designs, Inc.  * All Rights Reserved. Proprietary and Confidential. * *//**	@file   common.h	@brief  header file holing various macros and defines for all rmcapture files		@author Christian Wolff Sean.Sekwon.Choi*/#ifndef __COMMON_H__#define __COMMON_H__#include "../../rmdef/rmdef.h"#include "../../rmcore/include/rmcore.h"#include "../../rmcore/include/rmstatustostring.h"#include "../../rmlibcw/include/rmlibcw.h"#include "../../rua/include/rua.h"#include "../../rua/include/rua_property.h"#include "../../dcc/include/dcc.h"#include "../include/rmcapture_types.h"struct cap_chip_instance;// board configuration and specific code#include "board.h"// emhwlib capture#include "video.h"#include "audio.h"// generic external chip access interface#include "hdmi.h"#include "analog_video.h"#include "analog_audio.h"// specific external chip interfaces#include "SiI9031.h"#include "SAA7119.h"#include "TW9919.h"#include "AD9380.h"#include "WM8775.h"#include "MSP34x5.h"#include "AD9883.h"struct cap_chip_instance {	enum cap_chip chip;  // chip type	RMuint32 index;  // index to the board's chip list	union {  // The open handle to the chip		struct cap_SiI9031_instance *pSiI9031;		struct cap_SAA7119_instance *pSAA7119;		struct cap_TW9919_instance *pTW9919;		struct cap_AD9380_instance *pAD9380;		struct cap_WM8775_instance *pWM8775;		struct cap_MSP34x5_instance *pMSP34x5;		struct cap_AD9883_instance *pAD9883;	} instance;};#if 1#define FUNCNAME ENABLE#else#define FUNCNAME DISABLE#endifstruct cap_chip_instance* rmcapture_get_chip_handle(struct rmcapture_instance *pCapture, enum cap_chip chip, RMuint32 index);// zoom helper defines and functions#define ZOOM_0 4096  // 0% zoom position#define ZOOM_1 8192  // 100% zoom position#define IsNTSC(TVStandard, isNTSC) do {	\		switch (TVStandard) {		\		case EMhwlibTVStandard_PAL_60:	\		case EMhwlibTVStandard_PAL_M:		\		case EMhwlibTVStandard_PAL_60_714:	\		case EMhwlibTVStandard_PAL_M_714:	\		case EMhwlibTVStandard_ITU_Bt656_625:	\		case EMhwlibTVStandard_ITU_Bt656_288p:	\		case EMhwlibTVStandard_PAL_BG:		\		case EMhwlibTVStandard_PAL_N:		\		case EMhwlibTVStandard_576p50:		\		case EMhwlibTVStandard_PAL_BG_702:	\		case EMhwlibTVStandard_PAL_N_702:	\		case EMhwlibTVStandard_576p50_702:	\		case EMhwlibTVStandard_PAL_BG_704:	\		case EMhwlibTVStandard_PAL_N_704:	\		case EMhwlibTVStandard_576p50_704:	\			isNTSC = FALSE;			\			break;				\		case EMhwlibTVStandard_ITU_Bt656_525:	\		case EMhwlibTVStandard_ITU_Bt656_240p:	\		case EMhwlibTVStandard_NTSC_M_Japan:	\		case EMhwlibTVStandard_NTSC_M:		\		case EMhwlibTVStandard_480p59:		\		case EMhwlibTVStandard_NTSC_M_Japan_714:	\		case EMhwlibTVStandard_NTSC_M_714:		\		case EMhwlibTVStandard_480p59_714:		\		default:					\			isNTSC = TRUE;				\			break;					\		}						\	}while(0)#endif // __COMMON_H__

⌨️ 快捷键说明

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