VBoxVideoTools.h revision 20bc7269cdb015fe47a9a4a0511470f3b26660f8
/* $Id$ */
/** @file
* VBox Video tooling
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBoxVideoTools_h__
#define ___VBoxVideoTools_h__
typedef struct VBOXVTLIST_ENTRY
{
struct VBOXVTLIST_ENTRY *pNext;
typedef struct VBOXVTLIST
{
} VBOXVTLIST, *PVBOXVTLIST;
{
}
{
}
DECLINLINE(void) vboxVtListPut(PVBOXVTLIST pList, PVBOXVTLIST_ENTRY pFirst, PVBOXVTLIST_ENTRY pLast)
{
{
}
else
{
}
}
#define vboxVtListPutTail vboxVtListPut
DECLINLINE(void) vboxVtListPutHead(PVBOXVTLIST pList, PVBOXVTLIST_ENTRY pFirst, PVBOXVTLIST_ENTRY pLast)
{
{
}
else
{
}
}
{
}
{
}
{
}
DECLINLINE(void) vboxVtListDetach(PVBOXVTLIST pList, PVBOXVTLIST_ENTRY *ppFirst, PVBOXVTLIST_ENTRY *ppLast)
{
if (ppLast)
}
{
}
DECLINLINE(void) vboxVtListDetachEntries(PVBOXVTLIST pList, PVBOXVTLIST_ENTRY pBeforeDetach, PVBOXVTLIST_ENTRY pLast2Detach)
{
if (pBeforeDetach)
{
if (!pBeforeDetach->pNext)
}
else
{
}
}
{
}
{
Assert(a);
Assert(b);
}
{
return false;
return false;
return false;
return false;
return true;
}
{
return false;
return false;
return false;
return false;
return true;
}
{
}
{
}
{
}
{
}
{
}
{
vboxWddmRectTranslate(pDst, x, y);
}
{
vboxWddmRectMove(pDst, x, y);
}
typedef struct VBOXPOINT3D
{
UINT x;
UINT y;
UINT z;
} VBOXPOINT3D, *PVBOXPOINT3D;
typedef struct VBOXBOX3D
{
} VBOXBOX3D, *PVBOXBOX3D;
{
}
{
}
(_v) = 1; \
else \
} while (0)
{
}
{
}
DECLINLINE(void) vboxWddmBoxTranslated(VBOXBOX3D * pDst, const VBOXBOX3D * pBox, int x, int y, int z)
{
vboxWddmBoxTranslate(pDst, x, y, z);
}
{
vboxWddmBoxMove(pDst, x, y, z);
}
DECLINLINE(void) vboxWddmBoxDivided(VBOXBOX3D * pDst, const VBOXBOX3D * pBox, int div, bool fDontReachZero)
{
}
DECLINLINE(void) vboxWddmPoint3DDivided(VBOXPOINT3D * pDst, const VBOXPOINT3D * pPoint, int div, bool fDontReachZero)
{
}
/* the dirty rect info is valid */
#define VBOXWDDM_DIRTYREGION_F_VALID 0x00000001
#define VBOXWDDM_DIRTYREGION_F_RECT_VALID 0x00000002
typedef struct VBOXWDDM_DIRTYREGION
{
{
{
if (pRect)
{
}
}
{
if (pRect)
else
}
}
DECLINLINE(void) vboxWddmDirtyRegionUnite(PVBOXWDDM_DIRTYREGION pInfo, const PVBOXWDDM_DIRTYREGION pInfo2)
{
{
else
}
}
{
}
#endif /* #ifndef ___VBoxVideoTools_h__ */