SSBM Decomp
Loading...
Searching...
No Matches
thp.h
Go to the documentation of this file.
1#ifndef THP_H
2#define THP_H
3
4#include <dolphin/os.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef u8 THPSample;
11typedef s16 THPCoeff;
12typedef f32 THPQuantTab[64];
13
14typedef struct _THPHuffmanTab {
15 u8 quick[32];
26
35
58
65
66
78static void __THPDecompressYUV(void*, void*, void*);
79static void __THPGQRRestore(void);
87
88s32 THPVideoDecode(void* file, void* tileY, void* tileU, void* tileV, void* work);
91s32 THPDec_8032F8D4(u32 file, void* out);
93void THPDec_80331340(s32, void*, void*, void*);
94void THPDec_803313D0(s32, void*, void*, void*, u32);
95void THPDec_803300E0(u32* data);
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif // THP_H
int BOOL
Definition types.h:20
unsigned long u32
Definition types.h:9
signed short int s16
Definition types.h:6
float f32
Definition types.h:13
unsigned short int u16
Definition types.h:7
signed long s32
Definition hsd_3B2B.h:1
unsigned char u8
Definition hsd_3B2B.h:2
Definition thp.h:27
u8 ACTableSelector
Definition thp.h:32
u8 DCTableSelector
Definition thp.h:31
u32 pad2[9]
Definition thp.h:33
u8 pad
Definition thp.h:29
THPCoeff predDC
Definition thp.h:28
u8 quantizationTableSelector
Definition thp.h:30
Definition thp.h:59
u16 val1
Definition thp.h:61
u8 val2
Definition thp.h:63
s32 val0
Definition thp.h:60
u16 _pad
Definition thp.h:62
Definition thp.h:36
u8 pad3[0xb]
Definition thp.h:44
u16 nMCU
Definition thp.h:52
u8 validHuffmanTabs
Definition thp.h:42
THPHuffmanTab huffmanTabs[4]
Definition thp.h:45
THPQuantTab quantTabs[3]
Definition thp.h:46
u8 pad[0x78 - 16]
Definition thp.h:41
u16 currMCU
Definition thp.h:53
u8 RST
Definition thp.h:51
u8 * x0C
Definition thp.h:40
u8 x78
Definition thp.h:43
u16 xPixelSize
Definition thp.h:47
u16 yPixelSize
Definition thp.h:48
u32 pad2[(0x83d - 0x756)/4]
Definition thp.h:55
u8 * file
Definition thp.h:37
u32 currByte
Definition thp.h:38
u16 decompressedY
Definition thp.h:50
u8 * dLC[3]
Definition thp.h:54
THPComponent components[3]
Definition thp.h:56
u32 cnt
Definition thp.h:39
u16 MCUsPerRow
Definition thp.h:49
Definition thp.h:14
u8 quick[32]
Definition thp.h:15
s32 valPtr[18]
Definition thp.h:19
u8 increment[32]
Definition thp.h:16
u32 pad2[2]
Definition thp.h:24
u8 * bits
Definition thp.h:21
u32 * codetab
Definition thp.h:23
s32 maxCode[18]
Definition thp.h:18
u8 * Vij
Definition thp.h:17
u32 pad3
Definition thp.h:22
u8 Vij1
Definition thp.h:20
static void __THPHuffDecodeDCTCompY(THPFileInfo *, THPCoeff *)
static u8 __THPHuffGenerateCodeTable(THPFileInfo *, u8 tab_index)
static void __THPDecompressiMCURow640x480(THPFileInfo *)
BOOL THPInit(void)
static void __THPDecompressiMCURowNxN(THPFileInfo *, u32)
void THPDec_80331340(s32, void *, void *, void *)
s32 THPDec_8032FD40(THPDec_8032FD40_Data *arg0, u16 arg1)
static u8 __THPReadScaneHeader(THPFileInfo *)
s32 THPVideoDecode(void *file, void *tileY, void *tileU, void *tileV, void *work)
f32 THPQuantTab[64]
Definition thp.h:12
void THPDec_803300E0(u32 *data)
u8 THPDec_80330158(THPFileInfo *info)
static void __THPDecompressiMCURow512x448(void)
static u8 __THPReadQuantizationTable(THPFileInfo *)
static void __THPDecompressYUV(void *, void *, void *)
s16 THPCoeff
Definition thp.h:11
static void __THPPrepBitStream(THPFileInfo *)
static u8 __THPRestartDefinition(THPFileInfo *)
s32 THPDec_8032F8D4(u32 file, void *out)
u8 THPSample
Definition thp.h:10
static u8 __THPSetupBuffers(THPFileInfo *)
s32 THPDec_803302EC(u8 **data)
static int __THPHuffGenerateDecoderTables(THPFileInfo *, u8 tab_index)
void THPDec_803313D0(s32, void *, void *, void *, u32)
static u8 __THPHuffGenerateSizeTable(THPFileInfo *, u8, int)
static u8 __THPReadHuffmanTableSpecification(THPFileInfo *)
static void __THPHuffDecodeDCTCompU(THPFileInfo *, THPCoeff *)
static void __THPGQRRestore(void)
static void __THPInverseDCTNoYPos(THPCoeff *, u32)
static u8 __THPReadFrameHeader(THPFileInfo *)
static void __THPHuffDecodeDCTCompV(THPFileInfo *, THPCoeff *)