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

📄 dispcust.c

📁 ESS3890+SL原代码(1*16内存)
💻 C
字号:
/* Copyright 1997, ESS Technology, Inc.                                 *//* SCCSID @(#)dispcust.c	4.3 11/26/02 *//* * $Log$ */#include "vcxi.h"#include "display.h"#include "dsa.h"#include "const.h"/**************************************************************************** Customed display initialisation. ****************************************************************************/void cust_disp_init(void){#ifdef DSC    DSC_init();#endif    DISP_set_filter(filter_sharp, filter_sharp);#if NOT_USED    /* detect the TV mode */    PREPARE_DETECTION;    DISP_set_TV_mode((DETECT_NTSC) ? TV_NTSC : TV_PAL);#endif    DISP_set_TV_mode(TV_PAL); /* power-up in PAL mode */    DISP_field_detect = 0;    vcx_scn_outputcntl = 0x10400;	/* 8b YUV, encoder drives clock	*/    vcx_scn_counter_ctl = 0x16;		/* Non MasterModeSyncs		*/}/**************************************************************************** Customed screen parameter initialisation. ****************************************************************************/void cust_change_scn_parameters(int height){    if (height == 240) {		/* NTSC */	vcx_scn_display_rate	= 60;	vcx_scn_height		= 240;	/* horizontal timing */	vcx_scn_hstart		= 127;	vcx_scn_hsyncperiod	= 858;	/* vertical timing */	vcx_scn_vbendval	= 16;	vcx_scn_vstart		= 16;	vcx_scn_vbstartval	= 260;	vcx_scn_vsyncperiod	= 262;	SET_ENCODER_NTSC;    } else {					/* PAL */	vcx_scn_display_rate	= 50;	vcx_scn_height		= 288;	/* horizontal timing */	vcx_scn_hstart		= 135;	vcx_scn_hsyncperiod	= 864;	/* vertical timing */	vcx_scn_vbendval	= 3;	vcx_scn_vstart		= 18;	vcx_scn_vbstartval	= 312;	vcx_scn_vsyncperiod	= 312;	SET_ENCODER_PAL;    }    DISP_field_swap = DISP_field_detect ^ (height == 288);}

⌨️ 快捷键说明

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