/********************************************************************/
/* Copyright 2004 by SEED Incorporated. */
/* All rights reserved. Property of SEED Incorporated. */
/* Restricted rights to use, duplicate or disclose this code are */
/* granted through contract. */
/* */
/********************************************************************/
/* Display parameter definitions based on 625/50 format */
/**********************************************************/
/* ................. */
/* Define frame size */
/* ................. */
/* no of pixels per frame line including horizontal blanking*/
/*定义每行的像素数,包括消隐行*/
#define VD_FRM_WIDTH 864
/*定义每帧的行数,包括消隐行*/
#define VD_FRM_HEIGHT 625 /* total noof lines per frame */
/*定义每帧的大小*/
#define VD_FRM_SIZE (VD_FRM_WIDTH * VD_FRM_HEIGHT)
/* ................... */
/* Horizontal blanking */
/* ................... */
/*行消隐出现的像素位置*/
#define VD_HBLNK_START 720 /* starting location of EAV */
/*行消急结束的像素位置*/
#define VD_HBLNK_STOP 862 /* starting location of SAV */
/*消隐的像素数*/
#define VD_HBLNK_SIZE (VD_HBLNK_STOP - VD_HBLNK_START +2/*EAV*/) /* (138) EAV, SAV inclusive */
/* ............................ */
/* Vertical blanking for field1 */
/* ............................ */
/*奇场的场消隐设置*/
#define VD_VBLNK_XSTART1 720 /* pixel on which VBLNK active */
/* edge occurs for field1 */
#define VD_VBLNK_YSTART1 642 /* line on which VBLNK active */
/* edge occurs for field1 */
#define VD_VBLNK_XSTOP1 720 /* pixel on which VBLNK inactive */
/* edge occurs for field1 */
#define VD_VBLNK_YSTOP1 23 /* line on which VBLNK inactive */
/* edge occurs for field1 */
/* ............................ */
/* Vertical blanking for field2 */
/* ............................ */
/*偶场的场消隐设置*/
#define VD_VBLNK_XSTART2 360 /* pixel on which VBLNK active */
/* edge occurs for field2 */
#define VD_VBLNK_YSTART2 311 /* line on which VBLNK active */
/* edge occurs for field2 */
#define VD_VBLNK_XSTOP2 360 /* pixel on which VBLNK inactive */
/* edge occurs for field2 */
#define VD_VBLNK_YSTOP2 336 /* line on which VBLNK inactive */
/* edge occurs for field2 */
/* ................................................. */
/* Define vertical blanking bit(VD_VBITn) reg values */
/* ................................................. */
/*第一场重直消隐设置与清除的所在的行数*/
/* first line with an EAV with V=1 indicating the start of Field1 vertical blanking */
#define VD_VBIT_SET1 1
/* first line with an EAV with V=0 indicating the start of Field1 active display*/
#define VD_VBIT_CLR1 23
#define VD_VBLNK1_SIZE (VD_VBIT_CLR1 - VD_VBIT_SET1) /* 19 lines */
/*第二场重直消隐设置与清除的所在的行数*/
/* first line with an EAV with V=1 indicating the start of Field2 vertical blanking*/
#define VD_VBIT_SET2 311
/* first line with an EAV with V=0 indicating the start of Field2 active display*/
#define VD_VBIT_CLR2 336
#define VD_VBLNK2_SIZE (VD_VBIT_CLR2 - VD_VBIT_SET2) /* 19 lines */
/* ............ */
/* Field timing */
/* ............ */
/* pixel on the first line of Field1 on which FLD ouput is de-asserted*/
#define VD_FIELD1_XSTART 720
/* line on which FLD is de-asserted */
#define VD_FIELD1_YSTART 1
/* pixel on the first line of Field1 on which FLD ouput is asserted */
#define VD_FIELD2_XSTART 360
/* line on which FLD is asserted */
#define VD_FIELD2_YSTART 313
/* .................................... */
/* Define field bit(VD_FBIT) reg values */
/* .................................... */
#define VD_FBIT_CLR 1 /* first line with an EAV with F=0 indicating Field 1 display*/
#define VD_FBIT_SET 313 /* first line with an EAV with F=1 indicating Field 2 display*/
/* ................................ */
/* Define horzontal synchronization */
/* ................................ */
#define VD_HSYNC_START 752
#define VD_HSYNC_STOP 782
/* .......................................... */
/* Define vertical synchronization for field1 */
/* .......................................... */
#define VD_VSYNC_XSTART1 752
#define VD_VSYNC_YSTART1 1
#define VD_VSYNC_XSTOP1 752
#define VD_VSYNC_YSTOP1 3
/* .......................................... */
/* Define vertical synchronization for field2 */
/* .......................................... */
#define VD_VSYNC_XSTART2 320
#define VD_VSYNC_YSTART2 313
#define VD_VSYNC_XSTOP2 320
#define VD_VSYNC_YSTOP2 316
/* ........................................ */
/* Define image offsets for both the fields */
/* which are zero in this example */
/* ........................................ */
#define VD_IMG_HOFF1 0
#define VD_IMG_VOFF1 0
#define VD_IMG_HOFF2 0
#define VD_IMG_VOFF2 0
/* ................................................. */
/* Define image active vertical and horizontal sizes */
/* ................................................. */
#define VD_IMG_HSIZE1 720 /* field1 horizontal image size */
#define VD_IMG_VSIZE1 288 /* field1 vertical image size */
#define VD_IMG_HSIZE2 720 /* field2 horizontal image size */
#define VD_IMG_VSIZE2 288 /* field2 vertical image size */
/* Manipulate field1 and field2 image sizes */
#define VD_IMAGE_SIZE1 (VD_IMG_HSIZE1 * VD_IMG_VSIZE1)
#define VD_IMAGE_SIZE2 (VD_IMG_HSIZE2 * VD_IMG_VSIZE2)
/* Define threshold values in double-words. Both fields should */
/* have same threshold value */
#define VD_VDTHRLD1 (VD_IMG_HSIZE1/8) /* line length in */
#define VD_VDTHRLD2 VD_VDTHRLD1 /* double-words */
/* Define number of events to be generated for field1 and field2 */
#define VD_DISPEVT1 (VD_IMAGE_SIZE1 / (VD_VDTHRLD1 * 8))
#define VD_DISPEVT2 (VD_IMAGE_SIZE2 / (VD_VDTHRLD2 * 8))
#define DISPLAY_FRAME_COUNT 1 /* in this example */
/* ............................................ */
/* EDMA parameters for display Y event that are */
/* specific to this example. */
/* ............................................ */
/* VD_VDTHRLDn is in double-words and 32-bit element size */
#define VD_Y_EDMA_ELECNT (VD_VDTHRLD1 * 2)
#define VD_Y_EDMA_FRMCNT ((VD_DISPEVT1 + VD_DISPEVT2) * DISPLAY_FRAME_COUNT)
/******************************************************************/
/* Description : 8.bit BT.656 non.continuous frame display */
/* */
/* Some important field descriptions: */
/* */
/* DMODE = 000, 8.bit BT.656 mode */
/* CON = 0 */
/* FRAME = 1, display frame */
/* DF2 = 0 */
/* DF1 = 0, (8.bit non.continuous frame display) */
/* SCALE = 0, no scaling */
/* RESMPL = 0, no resampling */
/* DPK = X, not used in 8.bit display */
/* RSYNC = X, used in Raw mode(Enable second synchronized raw */
/* data channel) */
/* RGBX = X, used in Raw mode(RGB extract enable. Perform */
/* 3/4 FIFO unpacking) */
/* VCTL1S = 00, output HSYNC */
/* VCTL2S = 00, output VSYNC */
/* VCTL3S = 0, output CBLNK */
/* HXS = 0, VCTL1 is an output */
/* VXS = 0, VCTL2 is an output */
/* FXS = 0, VCTL3 is an output */
/* PVPSYN = 0, no previous port synchronization */
/******************************************************************/
#include <vportdis.h>
#include "vportcap.h"
/*................................................................ */
/* global variable declarations */
/* ............................................................... */
// Uint32 disChaAYSpace = 0x80000000;
// Uint32 disChaACbSpace = 0x800675c0;
// Uint32 disChaACrSpace = 0x8009b0a0;
#pragma DATA_SECTION(disChaAYSpace, ".disChaAYSpace")
/* buffer to store captured Y-data */
Uint8 disChaAYSpace[720*588];
#pragma DATA_SECTION(disChaACbSpace, ".disChaACbSpace")
/* buffer to store captured Cb-data */
Uint8 disChaACbSpace[360*588];
#pragma DATA_SECTION(disChaACrSpace, ".disChaACrSpace")
/* buffer to store captured Cr-data */
Uint8 disChaACrSpace[360*588];
/* handle of vp that to be configured */
VP_Handle vpDisplayHandle;
EDMA_Handle hEdmaVPDispY;
EDMA
没有合适的资源?快使用搜索试试~ 我知道了~
chengxu.rar_VMD642
共2000个文件
h:903个
c:306个
obj:291个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 200 浏览量
2022-09-20
19:44:36
上传
评论
收藏 18.22MB RAR 举报
温馨提示
实用的DSP源代码程序,VMD642-A开发板实验可用,内有几十个图像处理实例
资源推荐
资源详情
资源评论
收起资源包目录
chengxu.rar_VMD642 (2000个子文件)
tskProcess.asm 134KB
tskVideoOutput.asm 75KB
tskVideoInput.asm 67KB
dstr_2d.asm 66KB
jpegmain.asm 65KB
celljpegenc_ti.asm 57KB
celljpegdec_ti.asm 55KB
chroma_resampling.asm 51KB
seedvpm642_vdisparamsPAL.asm 46KB
my_convert.asm 45KB
tskProcess.asm 41KB
thrControl.asm 40KB
seedvpm642_vcapparamsPAL_EMBEDDED.asm 33KB
tskVideoOutput.asm 31KB
tskVideoInput.asm 30KB
h263main.asm 21KB
appResources.asm 19KB
ijpegenc.asm 17KB
ijpegdec.asm 15KB
jpeg_loopbackcfg_c.asm 14KB
cellh263dec.asm 14KB
cellh263enc.asm 13KB
scale_v2_c.asm 8KB
seedvpm642_vdisparamsPAL.asm 7KB
evmdm642_vdisparamsNTSC.asm 7KB
evmdm642_vdisparamsNTSC.asm 7KB
seedvpm642_vcapparamsPAL_EMBEDDED.asm 5KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
ves_dm642.asm 3KB
h263_loopbackcfg_c.asm 3KB
boot.asm 3KB
appData.asm 3KB
h263enc.l64.bak 47KB
h263dec.l64.bak 29KB
dm642main.c.bak 12KB
dm642main.c.bak 9KB
dm642main.c.bak 9KB
dm642main.c.bak 9KB
dm642main.c.bak 9KB
dm642main.c.bak 9KB
dm642main.c.bak 9KB
test.par.bak 3KB
test.par.bak 3KB
seeddm642.h.bak 2KB
seeddm642.h.bak 2KB
seeddm642.h.bak 2KB
build.bat 352B
build.bat 349B
build.bat 342B
build.bat 307B
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
vportdis.c 22KB
chroma_resampling.c 21KB
vportdis.c 21KB
vportdis.c 21KB
vportdis.c 21KB
vportdis.c 21KB
vportdis.c 21KB
vportdis.c 21KB
vportdis.c 21KB
dstr_2d.c 21KB
vportdisN.c 21KB
vportdisN.c 21KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
weixin_42651887
- 粉丝: 79
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功