📄 vcap_paramspal.c
字号:
/****************************************************************************
Copyright 2003 by Texas Instruments Incorporated.
All rights reserved. Property of Texas Instruments Incorporated.
Restricted rights to use, duplicate or disclose this code are
granted through contract.
*****************************************************************************/
#include <vport.h>
#include <vportcap.h>
#include <tvp5150.h>
#include <csl_edma.h>
#include "evmdm642_vcapparams.h"
#define CAP_LINE_SZ 704
#define CAP_NUMS 288
VPORTCAP_Params EVMDM642_vCapParamsChan = {
VPORT_MODE_BT656_8BIT, /* cmode:3 */
VPORT_FLDOP_FLD1, /* fldOp:FRAME 3 */
VPORT_SCALING_ENABLE, /* scale:1 行(水平)缩小1/2倍使能*/
VPORT_RESMPL_DISABLE, /* resmpl:1 每行色度由422变换为420使能。*/
VPORTCAP_BPK_10BIT_ZERO_EXTENDED, /*bpk10Bit:2 10位视频采集模式*/
VPORTCAP_HRST_SAV, /*hCtRst:1 行(水平)计数复位模式 */
VPORTCAP_VRST_END_VBLK, /*vCtRst:1 场(垂直)计数复位模式*/
VPORTCAP_FLDD_DISABLE, /*fldDect:1 场帧侧使能*/
VPORTCAP_EXC_DISABLE, /*extCtl:1 外部同步使能*/
VPORTCAP_FINV_ENABLE, /* fldInv:1 场反转使能*/
8, /*fldXStrt1 */
1,//2, /*fldYStrt1 */
8, /*fldXStrt2 */
1,//2, /*fldYStrt2 */
CAP_LINE_SZ-1+8, /*fldXStop1 */
CAP_NUMS,//1, /*fldYStop1 */
CAP_LINE_SZ-1+8, /*fldXStop2 */
CAP_NUMS,//1, /*fldYStop2 */
(CAP_LINE_SZ>>3), /*thrld 设定产生EDMA中断的门槛,一双字节为单位 */
3, /*numFrmBufs 设定驱动程序中采集缓冲区的个数*/
128, /*alignment 采集缓冲区的对齐长度*/
VPORT_FLDS_SEPARATED, /*mergeFlds 指定场在缓冲区的存放方式。即两场交叉还是单场存放。*/
NULL, /*segId BIOS存储空间ID,驱动用来分配视频帧的缓冲区*/
EDMA_OPT_PRI_HIGH, /*edmaPri EDMA的优先级*/
8 /* irqId EDMA的中断安排*/
};
VPORT_PortParams EVMDM642_vCapParamsPort = {
FALSE, /* enableDualChan; */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 1 polarity */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 2 polarity */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 3 polarity */
&TVP5150_Fxns,
INV,
};
VPORT_PortParams EVMDM642_vCapParamsPort2 = {
FALSE, /* enableDualChan; */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 1 polarity */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 2 polarity */
VPORT_POLARITY_ACTIVE_LOW, /* vport control pin 3 polarity */
&TVP5150_Fxns,
INV,
};
TVP5150_ConfParams EVMDM642_vCapParamsTVP5150 = {
INV, /* handleI2C */
128, /* Brightness */
128, /* Saturation */
0, /* Hue */
128, /* Contrast */
0, /* VidSource */
0, /* OutFormat these parameters are not used in the drvs */
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -