?? saa7115.c
字號:
/*
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2006-2008 Beijing, pengzhen (pengzhenxp@yahoo.com.cn) //
// //
///////////////////////////////////////////////////////////////////////////////
*/
//#include <vport.h>
//#include <vportcap.h>
//#include <csl_edma.h>
#include <saa7115.h>
#define LINE_SZ 720
#define NUM_LINES 288
VPORTCAP_Params m_ViParams = {
VPORT_MODE_BT656_8BIT, /* cmode:3 */
VPORT_FLDOP_FRAME, /* fldOp:3 */
VPORT_SCALING_DISABLE, /* scale:1 */
VPORT_RESMPL_DISABLE, /* resmpl:1 */
VPORTCAP_BPK_10BIT_ZERO_EXTENDED, /*bpk10Bit:2 */
VPORTCAP_HRST_END_HBLK, /*hCtRst:1 */
VPORTCAP_VRST_END_VSYNC,/*vCtRst:1 */
VPORTCAP_FLDD_DISABLE, /*fldDect:1 */
VPORTCAP_EXC_ENABLE, /*extCtl:1 */
VPORTCAP_FINV_DISABLE, /* fldInv:1 */
0, /*fldXStrt1 */
20, /*fldYStrt1 */
0, /*fldXStrt2 */
20, /*fldYStrt2 */
LINE_SZ-1, /*fldXStop1 */
NUM_LINES + 20, /*fldYStop1 */
LINE_SZ-1, /*fldXStop2 */
NUM_LINES + 20, /*fldYStop2 */
(LINE_SZ>>3), /*thrld */
3, /*numFrmBufs*/
128, /*alignment */
VPORT_FLDS_MERGED, /*mergeFlds */
NULL, /*segId */
EDMA_OPT_PRI_HIGH, /*edmaPri */
8 /* irqId */
};
VPORT_PortParams EVMDM642_vCapParamsPort = {
FALSE, /* enableDualChan; */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 1 polarity */
VPORT_POLARITY_ACTIVE_HIGH, /* vport control pin 2 polarity */
VPORT_POLARITY_ACTIVE_HIGH, /* vport control pin 3 polarity */
&SAA7115_Fxns,
INV,
};
SAA7115_ConfParams m_ViSAA7115 = {
SAA7115_MODE_PAL720,
SAA7115_MODE_PAL720,
SAA7115_AFMT_COMPOSITE,
FALSE,
FALSE,
INV, /*handleI2C */
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -