SSBM Decomp
Loading...
Searching...
No Matches
thp.h File Reference
#include <dolphin/os.h>

Go to the source code of this file.

Data Structures

struct  THPHuffmanTab
struct  THPComponent
struct  THPFileInfo
 The decode work area, sized by THPDec_8032FD40 and filled in by THPVideoDecode: the bit stream being read, the tables read out of the frame's headers, and the per-component decode state. More...
struct  THPDec_8032FD40_Data

Typedefs

typedef u8 THPSample
typedef s16 THPCoeff
typedef f32 THPQuantTab[64]

Functions

static u8 __THPReadFrameHeader (THPFileInfo *)
static u8 __THPReadScaneHeader (THPFileInfo *)
static u8 __THPReadQuantizationTable (THPFileInfo *)
static u8 __THPReadHuffmanTableSpecification (THPFileInfo *)
static u8 __THPHuffGenerateSizeTable (THPFileInfo *, u8, int)
static u8 __THPHuffGenerateCodeTable (THPFileInfo *, u8 tab_index)
static int __THPHuffGenerateDecoderTables (THPFileInfo *, u8 tab_index)
static u8 __THPRestartDefinition (THPFileInfo *)
static void __THPPrepBitStream (THPFileInfo *)
static void __THPDecompressiMCURow640x480 (THPFileInfo *)
static void __THPDecompressiMCURowNxN (THPFileInfo *, u32)
static void __THPInverseDCTNoYPos (THPCoeff *, u32)
static void __THPHuffDecodeDCTCompY (THPFileInfo *, THPCoeff *)
static void __THPHuffDecodeDCTCompU (THPFileInfo *, THPCoeff *)
static void __THPHuffDecodeDCTCompV (THPFileInfo *, THPCoeff *)
THPFileInfo * THPVideoDecode (void *header, void *status_out, THPFileInfo *work, void *data, THPDec_8032FD40_Data *desc)
 Reads the headers of one compressed THP video frame into work.
s32 THPDec_803302EC (u8 **data)
s32 THPDec_8032FD40 (THPDec_8032FD40_Data *arg0, u16 arg1)
s32 THPDec_8032F8D4 (u8 *data, THPDec_8032FD40_Data *out)
u8 THPDec_80330158 (THPFileInfo *info)
void THPDec_80331340 (THPFileInfo *, void *, void *, void *)
void THPDec_803313D0 (THPFileInfo *, void *, void *, void *, u32)
void THPDec_803300E0 (THPFileInfo *info)
 Carves the sixteen THPFileInfo::mcuBuffer blocks, 128 bytes each, out of the work area's scratch space, starting at the next 32-byte boundary.
void THPInit (void)

Typedef Documentation

◆ THPSample

typedef u8 THPSample

◆ THPCoeff

typedef s16 THPCoeff

◆ THPQuantTab

typedef f32 THPQuantTab[64]

Function Documentation

◆ __THPReadFrameHeader()

u8 __THPReadFrameHeader ( THPFileInfo * )
static

◆ __THPReadScaneHeader()

u8 __THPReadScaneHeader ( THPFileInfo * )
static

◆ __THPReadQuantizationTable()

u8 __THPReadQuantizationTable ( THPFileInfo * )
static

◆ __THPReadHuffmanTableSpecification()

u8 __THPReadHuffmanTableSpecification ( THPFileInfo * )
static

◆ __THPHuffGenerateSizeTable()

u8 __THPHuffGenerateSizeTable ( THPFileInfo * ,
u8 ,
int  )
static

◆ __THPHuffGenerateCodeTable()

u8 __THPHuffGenerateCodeTable ( THPFileInfo * ,
u8 tab_index )
static

◆ __THPHuffGenerateDecoderTables()

int __THPHuffGenerateDecoderTables ( THPFileInfo * ,
u8 tab_index )
static

◆ __THPRestartDefinition()

u8 __THPRestartDefinition ( THPFileInfo * )
static

◆ __THPPrepBitStream()

void __THPPrepBitStream ( THPFileInfo * info)
static

◆ __THPDecompressiMCURow640x480()

void __THPDecompressiMCURow640x480 ( THPFileInfo * )
static

◆ __THPDecompressiMCURowNxN()

void __THPDecompressiMCURowNxN ( THPFileInfo * ,
u32  )
static

◆ __THPInverseDCTNoYPos()

void __THPInverseDCTNoYPos ( THPCoeff * ,
u32  )
static

◆ __THPHuffDecodeDCTCompY()

void __THPHuffDecodeDCTCompY ( THPFileInfo * ,
THPCoeff *  )
static

◆ __THPHuffDecodeDCTCompU()

void __THPHuffDecodeDCTCompU ( THPFileInfo * ,
THPCoeff *  )
static

◆ __THPHuffDecodeDCTCompV()

void __THPHuffDecodeDCTCompV ( THPFileInfo * ,
THPCoeff *  )
static

◆ THPVideoDecode()

THPFileInfo * THPVideoDecode ( void * hdr,
void * status_out,
THPFileInfo * work,
void * data,
THPDec_8032FD40_Data * desc )

Reads the headers of one compressed THP video frame into work.

Parameters
headerFrame dimensions.
status_outReceives the status code: 0 on success, an error code otherwise.
workThe decode work area, sized by THPDec_8032FD40.
dataThe compressed frame data.
descThe image descriptor built by THPDec_8032F8D4.
Returns
work, ready for THPDec_80331340 / THPDec_803313D0, or NULL if the frame could not be read.

◆ THPDec_803302EC()

s32 THPDec_803302EC ( u8 ** data)

◆ THPDec_8032FD40()

s32 THPDec_8032FD40 ( THPDec_8032FD40_Data * arg0,
u16 arg1 )

◆ THPDec_8032F8D4()

s32 THPDec_8032F8D4 ( u8 * data,
THPDec_8032FD40_Data * out )

◆ THPDec_80330158()

u8 THPDec_80330158 ( THPFileInfo * info)

◆ THPDec_80331340()

void THPDec_80331340 ( THPFileInfo * info,
void * tileY,
void * tileU,
void * tileV )

◆ THPDec_803313D0()

void THPDec_803313D0 ( THPFileInfo * info,
void * tileY,
void * tileU,
void * tileV,
u32 x )

◆ THPDec_803300E0()

void THPDec_803300E0 ( THPFileInfo * info)

Carves the sixteen THPFileInfo::mcuBuffer blocks, 128 bytes each, out of the work area's scratch space, starting at the next 32-byte boundary.

◆ THPInit()

void THPInit ( void )