Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
DirectXGraphics.cpp File Reference
#include "DirectXGraphics.h"
#include "Texture.h"
#include "XBTF.h"

Macros

#define MAKEFOURCC(ch0, ch1, ch2, ch3)
 

Functions

LPVOID XPhysicalAlloc (SIZE_T s, DWORD ulPhysicalAddress, DWORD ulAlignment, DWORD flProtect)
 
void XPhysicalFree (LPVOID lpAddress)
 
DWORD GetD3DFormat (XB_D3DFORMAT format)
 
DWORD BytesPerPixelFromFormat (XB_D3DFORMAT format)
 
bool IsPalettedFormat (XB_D3DFORMAT format)
 
void ParseTextureHeader (D3DTexture *tex, XB_D3DFORMAT &fmt, DWORD &width, DWORD &height, DWORD &pitch, DWORD &offset)
 
bool IsSwizzledFormat (XB_D3DFORMAT format)
 
void Unswizzle (const void *src, unsigned int depth, unsigned int width, unsigned int height, void *dest)
 
void DXT1toARGB (const void *src, void *dest, unsigned int destWidth)
 
void DXT4toARGB (const void *src, void *dest, unsigned int destWidth)
 
void ConvertDXT1 (const void *src, unsigned int width, unsigned int height, void *dest)
 
void ConvertDXT4 (const void *src, unsigned int width, unsigned int height, void *dest)
 
void GetTextureFromData (D3DTexture *pTex, void *texData, CBaseTexture **ppTexture)
 

Macro Definition Documentation

◆ MAKEFOURCC

#define MAKEFOURCC (   ch0,
  ch1,
  ch2,
  ch3 
)
Value:
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
unsigned int DWORD
Definition: linux/PlatformDefs.h:108

Function Documentation

◆ BytesPerPixelFromFormat()

DWORD BytesPerPixelFromFormat ( XB_D3DFORMAT  format)

◆ ConvertDXT1()

void ConvertDXT1 ( const void src,
unsigned int  width,
unsigned int  height,
void dest 
)

◆ ConvertDXT4()

void ConvertDXT4 ( const void src,
unsigned int  width,
unsigned int  height,
void dest 
)

◆ DXT1toARGB()

void DXT1toARGB ( const void src,
void dest,
unsigned int  destWidth 
)

◆ DXT4toARGB()

void DXT4toARGB ( const void src,
void dest,
unsigned int  destWidth 
)

◆ GetD3DFormat()

DWORD GetD3DFormat ( XB_D3DFORMAT  format)

◆ GetTextureFromData()

void GetTextureFromData ( D3DTexture pTex,
void texData,
CBaseTexture **  ppTexture 
)

◆ IsPalettedFormat()

bool IsPalettedFormat ( XB_D3DFORMAT  format)

◆ IsSwizzledFormat()

bool IsSwizzledFormat ( XB_D3DFORMAT  format)

◆ ParseTextureHeader()

void ParseTextureHeader ( D3DTexture tex,
XB_D3DFORMAT fmt,
DWORD width,
DWORD height,
DWORD pitch,
DWORD offset 
)

◆ Unswizzle()

void Unswizzle ( const void src,
unsigned int  depth,
unsigned int  width,
unsigned int  height,
void dest 
)

◆ XPhysicalAlloc()

LPVOID XPhysicalAlloc ( SIZE_T  s,
DWORD  ulPhysicalAddress,
DWORD  ulAlignment,
DWORD  flProtect 
)

◆ XPhysicalFree()

void XPhysicalFree ( LPVOID  lpAddress)