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

📄 video.h

📁 Xcale270Bsp包,wince平台
💻 H
字号:
/* 
** INTEL CONFIDENTIAL
** Copyright 2000-2003 Intel Corporation All Rights Reserved.
**
** The source code contained or described herein and all documents
** related to the source code (Material) are owned by Intel Corporation
** or its suppliers or licensors.  Title to the Material remains with
** Intel Corporation or its suppliers and licensors. The Material contains
** trade secrets and proprietary and confidential information of Intel
** or its suppliers and licensors. The Material is protected by worldwide
** copyright and trade secret laws and treaty provisions. No part of the
** Material may be used, copied, reproduced, modified, published, uploaded,
** posted, transmitted, distributed, or disclosed in any way without Intel抯
** prior express written permission.

** No license under any patent, copyright, trade secret or other intellectual
** property right is granted to or conferred upon you by disclosure or
** delivery of the Materials, either expressly, by implication, inducement,
** estoppel or otherwise. Any license under such intellectual property rights
** must be express and approved by Intel in writing.
*/


#ifndef __VIDEO_H__
#define __VIDEO_H__

#include <dispdrvr.h>

// OEM escape code base
#define ESCAPECODEBASE			100000
#define DISPLAYPAGE				(ESCAPECODEBASE + 1)
#define GETPALETTERAMPHYSICAL	(ESCAPECODEBASE + 2)
#define VERTICALBLANKINTERRUPT	(ESCAPECODEBASE + 3)
#define OS_SCREENACCESS			(ESCAPECODEBASE + 4)
#define SCROLL					(ESCAPECODEBASE + 5)

// GAPI support
#define kidVersion100	100
#define kfLandscape		0x8		// Screen is rotated 270 degrees
#define kfPalette		0x10
#define kfDirect		0x20
#define kfDirect555		0x40
#define kfDirect565		0x80
#define kfDirect888		0x100
#define GETGXINFO		0x00020000

struct GXDeviceInfo {
	long idVersion;
	void * pvFrameBuffer;
	unsigned long cbStride;
	unsigned long cxWidth;
	unsigned long cyHeight;
	unsigned long cBPP;
	unsigned long ffFormat;
	short vkButtonUpPortrait;
	short vkButtonUpLandscape;
	POINT ptButtonUp;
	short vkButtonDownPortrait;
	short vkButtonDownLandscape;
	POINT ptButtonDown;
	short vkButtonLeftPortrait;
	short vkButtonLeftLandscape;
	POINT ptButtonLeft;
	short vkButtonRightPortrait;
	short vkButtonRightLandscape;
	POINT ptButtonRight;
	short vkButtonAPortrait;
	short vkButtonALandscape;
	POINT ptButtonA;
	short vkButtonBPortrait;
	short vkButtonBLandscape;
	POINT ptButtonB;
	short vkButtonCPortrait;
	short vkButtonCLandscape;
	POINT ptButtonC;
	short vkButtonStartPortrait;
	short vkButtonStartLandscape;
	POINT ptButtonStart;
	void * pvReserved1;
	void * pvReserved2;
};

class SA2Video  : public GPE
{
private:

	GPEMode			m_ModeInfo;
	HANDLE			m_hevInterrupt;
	void			*m_pVirtualFrameBuffer;

	SCODE			WrappedEmulatedLine(GPELineParms *pParms);
	SCODE			WrappedEmulatedBlt(GPEBltParms *pParms);
public:
					SA2Video();
	virtual int		NumModes();
	virtual SCODE	SetMode(int modeId, HPALETTE *pPalette);
	virtual int		InVBlank();
	virtual SCODE	SetPalette(const PALETTEENTRY *src,
						unsigned short firstEntry,unsigned short numEntries);
	virtual SCODE	GetModeInfo(GPEMode *pMode,int modeNo );
   	virtual VOID    PowerHandler(BOOL bOff);
	virtual SCODE	SetPointerShape(GPESurf *pMask,GPESurf *pColorSurf,
						int xHot,int yHot,int cx,int cy);
	virtual SCODE	MovePointer(int x,int y);
	virtual void	WaitForNotBusy();
	virtual int		IsBusy();
	virtual void	GetPhysicalVideoMemory(unsigned long *pPhysicalMemoryBase,
						unsigned long *pVideoMemorySize);
	virtual SCODE	AllocSurface(GPESurf **ppSurf,int width,int height,
						EGPEFormat format,int surfaceFlags);
	virtual SCODE	Line(GPELineParms *pLineParms,EGPEPhase phase);
	virtual SCODE	BltPrepare(GPEBltParms *pBltParms);
	virtual SCODE	BltComplete(GPEBltParms *pBltParms);
	virtual ULONG	DrvEscape(SURFOBJ *pso, ULONG iEsc, ULONG cjIn, PVOID pvIn, ULONG cjOut, PVOID pvOut);
	virtual void    ContrastCmd(ULONG cjIn, PVOID pvIn, ULONG cjOut, PVOID pvOut);
	BOOL IsrThreadStart(void);
	BOOL IsrThreadProc(void);

};

#endif __VIDEO_H__

⌨️ 快捷键说明

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