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

📄 arm_clcd.h

📁 此压缩包为杰得开发得z228的BSP的源代码,可以实现很多功能,尤其是视频解码有很好的效果.
💻 H
字号:
/*++
*
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* Copyright (c) 1995-1998  Microsoft Corporation
*
* Release Status:OS005-SW-70002-r0p0-00REL0
* $Copyright: 
* ----------------------------------------------------------------
* This confidential and proprietary software may be used only as
* authorised by a licensing agreement from ARM Limited
*   (C) COPYRIGHT 2004 ARM Limited
*       ALL RIGHTS RESERVED
* The entire notice above must be reproduced on all authorised
* copies and copies may only be made to the extent permitted
* by a licensing agreement from ARM Limited.
* ----------------------------------------------------------------
* File:     arm_clcd.h,v
* Revision: 1.1
* ----------------------------------------------------------------
* $
*
* Module Name:  
*    arm_clcd.h
*
*   Abstract:  
*      declaration of CLCD GPE class
*
*
--*/

#ifndef __ARM_CLCD_H__
#define __ARM_CLCD_H__

#define ROTATE 1

#include <dispdrvr.h>	// Contains interface definition for "old-style" drivers

// Declaration of Arm_clcd derived from GPE.
//class Arm_clcd  : public GPE
#ifdef ROTATE
class Arm_clcd : public GPERotate
#else
class Arm_clcd : public GPE
#endif //ROTATION
{
private:

	GPEMode			m_ModeInfo;
	void			*m_pVirtualFrameBuffer;

//	Cursor related variable and member functions
	BOOL			m_CursorDisabled;
	BOOL			m_CursorVisible;
	BOOL			m_CursorForcedOff;
	RECTL			m_CursorRect;
	POINTL			m_CursorSize;
	POINTL			m_CursorHotspot;
	UCHAR			*m_pCursorBackingStore;
	UCHAR			*m_pCursorXorShape;
	UCHAR			*m_pCursorAndShape;

public:
					//Default constructor 
					Arm_clcd(int display_width = 240, int display_height = 320, int bpp = 16);
	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 SCODE	SetPointerShape(
						GPESurf *pMask,
						GPESurf *pColorSurf,
						int xHot,
						int yHot,
						int cx,
						int cy );
	virtual SCODE	MovePointer(int x, int y );
	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 VOID    PowerHandler(BOOL bOff);
    
    ////////////////////////
	virtual void	WaitForNotBusy(void);
	virtual INT		IsBusy(void);
  
    ////////////////////////
    
    virtual ULONG	GetGraphicsCaps();
#if defined(CLEARTYPE) || defined(ROTATE)
	virtual ULONG   DrvEscape(
                        SURFOBJ *pso,
                        ULONG    iEsc,
                        ULONG    cjIn,
                        PVOID    pvIn,
                        ULONG    cjOut,
                        PVOID    pvOut);
#endif     

	SCODE			WrappedEmulatedLine (GPELineParms *lineParameters);
	void			CursorOn (void);
	void			CursorOff (void);

#ifdef ROTATE
	void SetRotateParms();
	LONG DynRotate(int angle);
#endif //ROTATION
};

#endif /* #define __ARM_CLCD_H__ */


⌨️ 快捷键说明

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