vscale.h

来自「ESS3890+SL原代码(1*16内存)」· C头文件 代码 · 共 74 行

H
74
字号
/* Copyright 1996, ESS Technology, Inc.					*//* SCCSID @(#)vscale.h	4.2 05/22/03 *//* * $Log$ */#ifdef VSCALE#ifndef _VSCALE_H_#define _VSCALE_H_#ifdef GSCALE#define NUM_MODES    5#define VSCL_OFF     0      /* No vertical scaling */#define VSCL_N2P     1      /* NTSC->PAL, 16->20 */#define VSCL_LB      2      /* Letterbox, 16->12 */#define VSCL_P2N     3      /* PAL->NTSC, 16->12 */#define VSCL_P2N_VCD 4      /* PAL ->NTSC, 16->13, for VCD*/#define VSCL_GENERIC 5      /* Generic polyphase scaling factor *//*======================================================================*//*  Data structure for scaling assignment                               *//*======================================================================*/typedef struct {    unsigned char vsize;         /* scaled vertical size of a macroblock */    unsigned char ucode[2];      /* VP ucode to load */    void (*functn)();            /* ptr to I/P scaling function */} VscaleInfo_t;#endif GSCALE/************************************************************************* * Data structure for scaling assignment                                 * *************************************************************************/typedef struct {    unsigned char ratio;   /* ratio of frame to screen height */    unsigned char vsize;   /* scaled vertical size of a macroblock */    unsigned char ucode;	 /* VP ucode to run */    unsigned char dummy;} VSCALE_Info;/************************************************************************* * global variables defined in vscale.c 				 * *************************************************************************/extern int VscaleReady;		/* ready to scale */extern int VscaleStart;		/* start to scale */extern int VscaleLineOutY;	/* where to find output */extern int VscaleLineInY; 	/* where to find input */extern int VscaleDeltaOut;	/* vertical size of macroblock after scaling */extern int VscaleLastFrame;	/* force last frame scaling when we see 0xb7 */extern int H_VscaleFrame; 	/* input only, not changed inside vscale */#ifdef LESS_DISP_MEM#define P2P_DIFF	6#else#define P2P_DIFF	0#endif /* LESS_DISP_MEM */extern int e0pal2pal;		/* LESS_DISP_MEM *//************************************************************************* * global function prototype 						 * *************************************************************************/void vscale2(void);void resetVscale(void);void initVscale(int);void initVscale_Pointer(void);void load_scaling_ucode(int);#ifdef PLAY20int  rescale_still(void);#endif	/* PLAY20 */ #endif	/* _VSCALE_H_ */#endif	/* VSCALE */

⌨️ 快捷键说明

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