Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
thp.h File Reference

Go to the source code of this file.

Classes

struct  _THPHuffmanTab
 
struct  _THPComponent
 
struct  _THPFileInfo
 
struct  THPAudioRecordHeader
 
struct  THPAudioDecodeInfo
 
struct  THPTextureSet
 
struct  THPAudioBuffer
 
struct  THPVideoInfo
 
struct  THPAudioInfo
 
struct  THPFrameCompInfo
 
struct  THPHeader
 

Typedefs

typedef u8 THPSample
 
typedef s16 THPCoeff
 
typedef f32 THPQuantTab[64]
 
typedef struct _THPHuffmanTab THPHuffmanTab
 
typedef struct _THPComponent THPComponent
 
typedef struct _THPFileInfo THPFileInfo
 
typedef struct THPAudioRecordHeader THPAudioRecordHeader
 
typedef struct THPAudioDecodeInfo THPAudioDecodeInfo
 
typedef struct THPTextureSet THPTextureSet
 
typedef struct THPAudioBuffer THPAudioBuffer
 
typedef struct THPVideoInfo THPVideoInfo
 
typedef struct THPAudioInfo THPAudioInfo
 
typedef struct THPFrameCompInfo THPFrameCompInfo
 
typedef struct THPHeader THPHeader
 

Functions

static u32 THPAudioDecode (s16 *audioBuffer, u8 *audioFrame, s32 flag)
 
static s32 __THPAudioGetNewSample (THPAudioDecodeInfo *info)
 
static void __THPAudioInitialize (THPAudioDecodeInfo *info, u8 *ptr)
 
static void __THPSetupBuffers (void)
 
static u8 __THPReadFrameHeader (void)
 
static u8 __THPReadScaneHeader (void)
 
static u8 __THPReadQuantizationTable (void)
 
static u8 __THPReadHuffmanTableSpecification (void)
 
static void __THPHuffGenerateSizeTable (void)
 
static void __THPHuffGenerateCodeTable (void)
 
static void __THPHuffGenerateDecoderTables (u8 tabIndex)
 
static void __THPRestartDefinition (void)
 
static void __THPPrepBitStream (void)
 
static void __THPDecompressYUV (void *tileY, void *tileU, void *tileV)
 
static void __THPGQRRestore (void)
 
static void __THPDecompressiMCURow512x448 (void)
 
static void __THPDecompressiMCURow640x480 (void)
 
static void __THPDecompressiMCURowNxN (void)
 
static void __THPInverseDCTNoYPos (THPCoeff *in, u32 xPos)
 
static void __THPHuffDecodeDCTCompY (THPFileInfo *info, THPCoeff *block)
 
static void __THPHuffDecodeDCTCompU (THPFileInfo *info, THPCoeff *block)
 
static void __THPHuffDecodeDCTCompV (THPFileInfo *info, THPCoeff *block)
 
static void __THPInverseDCTY8 (THPCoeff *in, u32 xPos)
 
static void __THPGQRSetup ()
 
static s32 __THPHuffDecodeTab (THPFileInfo *info, THPHuffmanTab *h)
 

Typedef Documentation

◆ THPAudioBuffer

typedef struct THPAudioBuffer THPAudioBuffer

◆ THPAudioDecodeInfo

typedef struct THPAudioDecodeInfo THPAudioDecodeInfo

◆ THPAudioInfo

typedef struct THPAudioInfo THPAudioInfo

◆ THPAudioRecordHeader

typedef struct THPAudioRecordHeader THPAudioRecordHeader

◆ THPCoeff

typedef s16 THPCoeff

◆ THPComponent

typedef struct _THPComponent THPComponent

◆ THPFileInfo

typedef struct _THPFileInfo THPFileInfo

◆ THPFrameCompInfo

typedef struct THPFrameCompInfo THPFrameCompInfo

◆ THPHeader

typedef struct THPHeader THPHeader

◆ THPHuffmanTab

typedef struct _THPHuffmanTab THPHuffmanTab

◆ THPQuantTab

typedef f32 THPQuantTab

◆ THPSample

typedef u8 THPSample

◆ THPTextureSet

typedef struct THPTextureSet THPTextureSet

◆ THPVideoInfo

typedef struct THPVideoInfo THPVideoInfo

Function Documentation

◆ __THPAudioGetNewSample()

s32 __THPAudioGetNewSample ( THPAudioDecodeInfo * info)
static

◆ __THPAudioInitialize()

void __THPAudioInitialize ( THPAudioDecodeInfo * info,
u8 * ptr )
static

◆ __THPDecompressiMCURow512x448()

static void __THPDecompressiMCURow512x448 ( void )
static

◆ __THPDecompressiMCURow640x480()

static void __THPDecompressiMCURow640x480 ( void )
static

◆ __THPDecompressiMCURowNxN()

static void __THPDecompressiMCURowNxN ( void )
static

◆ __THPDecompressYUV()

static void __THPDecompressYUV ( void * tileY,
void * tileU,
void * tileV )
static

◆ __THPGQRRestore()

static void __THPGQRRestore ( void )
static

◆ __THPGQRSetup()

static void __THPGQRSetup ( )
static

◆ __THPHuffDecodeDCTCompU()

static void __THPHuffDecodeDCTCompU ( THPFileInfo * info,
THPCoeff * block )
static

◆ __THPHuffDecodeDCTCompV()

static void __THPHuffDecodeDCTCompV ( THPFileInfo * info,
THPCoeff * block )
static

◆ __THPHuffDecodeDCTCompY()

static void __THPHuffDecodeDCTCompY ( THPFileInfo * info,
THPCoeff * block )
static

◆ __THPHuffDecodeTab()

static s32 __THPHuffDecodeTab ( THPFileInfo * info,
THPHuffmanTab * h )
static

◆ __THPHuffGenerateCodeTable()

static void __THPHuffGenerateCodeTable ( void )
static

◆ __THPHuffGenerateDecoderTables()

static void __THPHuffGenerateDecoderTables ( u8 tabIndex)
static

◆ __THPHuffGenerateSizeTable()

static void __THPHuffGenerateSizeTable ( void )
static

◆ __THPInverseDCTNoYPos()

static void __THPInverseDCTNoYPos ( THPCoeff * in,
u32 xPos )
static

◆ __THPInverseDCTY8()

static void __THPInverseDCTY8 ( THPCoeff * in,
u32 xPos )
static

◆ __THPPrepBitStream()

static void __THPPrepBitStream ( void )
static

◆ __THPReadFrameHeader()

static u8 __THPReadFrameHeader ( void )
static

◆ __THPReadHuffmanTableSpecification()

static u8 __THPReadHuffmanTableSpecification ( void )
static

◆ __THPReadQuantizationTable()

static u8 __THPReadQuantizationTable ( void )
static

◆ __THPReadScaneHeader()

static u8 __THPReadScaneHeader ( void )
static

◆ __THPRestartDefinition()

static void __THPRestartDefinition ( void )
static

◆ __THPSetupBuffers()

static void __THPSetupBuffers ( void )
static

◆ THPAudioDecode()

static u32 THPAudioDecode ( s16 * audioBuffer,
u8 * audioFrame,
s32 flag )
static