📄 tskvideooutput.c
字号:
/*
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2006-2008 Beijing, pengzhen (pengzhenxp@yahoo.com.cn) //
// //
///////////////////////////////////////////////////////////////////////////////
*/
#include <std.h>
#include <csl.h>
#include <csl_dat.h>
#include <csl_cache.h>
#include <fvid.h>
#include <tsk.h>
#include "edc.h"
#include <vport.h>
#include <vportdis.h>
#include "NetworkMain.h"
#ifdef __ADV7123__
#include "settings\ADV7123.c"
#endif /* __ADV7123__ */
#ifdef __SAA7105__
#include "settings\saa7105.c"
#endif /* __SAA7105__ */
extern FVID_Handle m_hVo;
/*
* ======== tskVideoOutputInit ========
* Open Capture channel and init channel data
*/
void tskVideoOutputInit()
{
VPORTDIS_Params * VoParams = & m_VoParams ;
int status;
VoParams->segId = extHeap;
/* PAL */ /* NTSC */
{
VoParams->imgHSizeFld1 = image_width;
VoParams->imgVSizeFld1 = image_height;
VoParams->hBlnkStart = image_width ;
VoParams->thrld = image_width >>3 ;
}
#ifdef __ADV7123__
m_VoADV7123.hI2C = EVMDM642_I2C_hI2C;
m_hVo = FVID_create("/VP2DISPLAY", IOM_OUTPUT, &status, (Ptr)&m_VoParams, NULL);
//FVID_control(m_hVo, VPORT_CMD_EDC_BASE+EDC_CONFIG, (Ptr)&m_VoADV7123);
#endif /* __ADV7123__ */
#ifdef __SAA7105__
m_VoSAA7105.hI2C = EVMDM642_I2C_hI2C;
m_hVo = FVID_create("/VP2DISPLAY", IOM_OUTPUT, &status, (Ptr)&m_VoParams, NULL);
FVID_control(m_hVo, VPORT_CMD_EDC_BASE+EDC_CONFIG, (Ptr)&m_VoSAA7105);
#endif /* __SAA7105__ */
}
/*
* ======== tskVideoOutputStart ========
* Start Capture
*/
void tskVideoOutputStart()
{
FVID_control(m_hVo, VPORT_CMD_START, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -