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

📄 dispcust.c

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 C
字号:
/* Copyright 1997, ESS Technology, Inc.                                 *//* SCCSID @(#)dispcust.c	1.18 9/15/98 *//* * $Log$ */#include "common.h"#include "dsc.h"#include "display.h"#include "dsa.h"#include "mvd.h"#include "vcxi.h"#include "constvar.h"#include "ioport.h"#include "const.h"#ifdef  PIXCLK#define VCX_PIXCLK      0x8000          /* 32xx is driving pixel clock  */#else#define VCX_PIXCLK      0               /* 32xx is reciving pixel clock */#endif /* PIXCLK */ #ifdef  YUV8#ifdef VMASTER#ifdef	INV_CLK_R#define VCX_YUV8        0x12b00         /* Toshiba (clk 1x; inv clk & r)*/#else#define VCX_YUV8        0x10c00         /* 8b YUV (3210 as master)      */#endif	/* else of INV_CLK_R */#else#define VCX_YUV8        0x10400         /* 8b YUV (3210 as slave)       */#endif	/* else of VMASTER */#else#define VCX_YUV8        0               /* 16b YUV                      */#endif /* YUV8 *//**************************************************************************** Customed display initialisation. ****************************************************************************/void cust_disp_init(void){#ifdef IIC    InitIIC();#endif#ifdef DSC    DSC_init();#endif#ifndef CUST4    DISP_set_filter(filter_sharp, filter_sharp);#else    cust4_filter = filter_normal; /* initialize cust4_filter */    DISP_set_filter(cust4_filter, cust4_filter);#endif /* CUST4 */#ifdef PLAY20#ifdef BROWSER1    vcx_scn_height = 240;	/* For Browser */#else#ifndef CUST4    /* detect the TV mode */    PREPARE_DETECTION;    DISP_set_TV_mode((DETECT_NTSC) ? TV_NTSC : TV_PAL);#endif#endif#else#if (P1O || P2O || P3O || P4O)    /* For play-only machine, default TV mode is PAL */    vcx_scn_height = 288;	/* Default is PAL */#else    vcx_scn_height = 240;#endif#endif#ifdef DVD_VCD    vcx_scn_height = 240; 	/* for DVD/VCD  */#endif#ifdef VMASTER    DISP_field_detect = 2;#else#ifdef FLIP_TOP    DISP_field_detect = 1;#else    DISP_field_detect = 0;#endif#endif    vcx_scn_outputcntl = VCX_PIXCLK | VCX_YUV8;#ifdef VMASTER    vcx_scn_counter_ctl = 0x17;  /* MasterModeSyncs */#else    vcx_scn_counter_ctl = 0x16;  /* Non MasterModeSyncs */#endif}/**************************************************************************** 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 */#ifdef OFF1	vcx_scn_hstart		= 128;		/* e.g. Ricoh/Bt851	*/#else	vcx_scn_hstart		= 127;		/* e.g. Bt856		*/#endif	vcx_scn_hsyncperiod	= 858;#ifdef CUST4        vcx_scn_vsyncpixel = 858;#endif	/* vertical timing */	vcx_scn_vbendval	= 16;#ifndef VSTART20	vcx_scn_vstart		= 16;#else	vcx_scn_vstart		= 20;          /* move down a little bit. *						* for Chrontel.		  */#endif	vcx_scn_vbstartval	= 260;	vcx_scn_vsyncperiod	= 262;	SET_ENCODER_NTSC;    } else {					/* PAL */	vcx_scn_display_rate	= 50;	vcx_scn_height		= 288;	/* horizontal timing */#ifdef OFF1	vcx_scn_hstart		= 136;		/* e.g. Ricoh/Bt851	*/#else	vcx_scn_hstart		= 135;		/* e.g. Bt856		*/#endif	vcx_scn_hsyncperiod	= 864;#ifdef CUST4        vcx_scn_vsyncpixel = 864;#endif	/* vertical timing */	vcx_scn_vbendval	= 3;	vcx_scn_vstart		= 18;	vcx_scn_vbstartval	= 312;	vcx_scn_vsyncperiod	= 312;	SET_ENCODER_PAL;    }#ifndef VMASTER    DISP_field_swap = DISP_field_detect ^ (height == 288);#endif}

⌨️ 快捷键说明

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