📄 overlay.h
字号:
/*****************************************************************************
Name : OVERLAY.H
Title : Direct Draw surface Overlay callback prototypes
C Author : Kevan Ahmadi
Created : 13/01/03
Copyright : 2003 by Imaginationc Technologies Limited. All rights reserved.
: No part of this software, either material or conceptual
: may be copied or distributed, transmitted, transcribed,
: stored in a retrieval system or translated into any
: human or computer language in any form by any means,
: electronic, mechanical, manual or other-wise, or
: disclosed to third parties without the express written
: permission of Imagination Technologies Limited, Unit 8, HomePark
: Industrial Estate, King's Langley, Hertfordshire,
: WD4 8LZ, U.K.
Description : DDRAW Overlay callbacks
This source file is a modified version of overlay.h, originally
located in: embedded\wince\directx\dxcommon
Program Type : 32-bit DLL
Version : $Revision: 1.4 $
Modifications :
$Log: overlay.h $
*****************************************************************************/
#ifndef _OVERLAY_H_
#define _OVERLAY_H_
#include <ddrawi.h>
#define DISP_NUM_ROT_SURFACES (4)
#define ALLOCATION_ALIGNMENT (4096)
#define DISP_QUEUE_SIZE (1024)
/* NOTE: this struct is based on VDISP_STATE in PVRVADD interface. */
typedef struct _DISP_STATE_
{
IMG_BOOL bHardwareInUse;
IMG_HANDLE hServices;
PVRSRV_DEV_DATA sDevData;
IMG_UINT32 ui32DisplayRotation;
IMG_UINT32 ui32SourceRotation;
IMG_UINT32 ui32NextRotatedBuffer;
IMG_BOOL bRotatedBuffersAllocated;
PVRSRV_SYNC_INFO *psLastSyncObject;
IMG_BOOL bFirstSyncIncremented;
/* rotated display buffers */
PVRSRV_MEM_INFO *apsDisplaySurfaces[DISP_NUM_ROT_SURFACES];
/* blit queue */
PVRSRV_QUEUE_INFO *psBlitQueueInfo;
HDC hdcDriver;
} DISP_STATE;
IMG_VOID RotateOverlay(PSURFDATA psSurfData, PDP_DEINTERLACE eDeinterlace, PDP_OVERLAY* psOverlay);
IMG_UINT32 DisplayStateDeinit();
DWORD __stdcall HALUpdateOverlay(LPDDHAL_UPDATEOVERLAYDATA psData);
DWORD __stdcall HALSetOverlayPosition(LPDDHAL_SETOVERLAYPOSITIONDATA psData);
#endif _OVERLAY_H_
/*****************************************************************************
End of file (OVERLAY.H)
*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -