SSBM Decomp
Loading...
Searching...
No Matches
hsd_3B34.c File Reference
#include "hsd_3B34.h"
#include <placeholder.h>
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "hsd_3A94.h"
#include "hsd_3B33.h"

Data Structures

struct  JpegByteBuffer
struct  JpegComment
struct  JpegHuffDc
struct  JpegHuffAc
struct  JpegEncodeTables

Macros

#define HSD_804D2648_BUF   ((u8*) &hsd_804D2648)

Functions

static void jpegLumaAddress (s32 **dest, u8 *work, u32 offset)
void hsd_803B3408 (u8 *image, s32 x, s32 y, s32 width, s32 height)
static void fn_803B376C (u8 *arg0)
static s32 hsd_803B3CD8_bit_length (s32 value)
static s32 jpeg_run_bit_length (s32 value)
static void hsd_803B3CD8_write_byte (u8 byte, JpegWork **work)
static void hsd_803B3CD8_write_bits (s32 value, s32 length, JpegWork **work)
static void jpeg_write_run_payload (s32 run, s32 length, JpegWork **work)
static void jpeg_encode_component (s32 component, s32 *ac_value_out, s32 *run_out, s32 *value_out, s32 *index_out)
void hsd_803B3CD8 (s32 component)
void hsd_803B46D4 (void)
void hsd_803B4A2C (void)
void hsd_803B4D64 (u32 arg0, u32 arg1)
static s32 hsd_803B51C8_inline (s32 image, s32 image_height, s32 image_width, const char *output, s32 output_capacity, const JpegMetadata *metadata, JpegComment *comment, JpegHuffDc *huff_dc_luma, JpegHuffDc *huff_dc_chroma, JpegHuffAc *huff_ac_luma, JpegHuffAc *huff_ac_chroma)
s32 hsd_803B51C8 (s32 arg0, s32 arg1, s32 arg2, char *arg3, s32 arg4)
void hsd_803B5C2C (s32 arg0)

Variables

static const JpegMetadata lbl_803B9670
static u8 lbl_80430C40 [0x40]
static u8 lbl_80430C80 [0x410]
u8 lbl_80431638 [0x40]
u16 lbl_80431678 [0xC]
u8 lbl_80431690 [0xC] = { 2, 3, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9 }
u16 lbl_8043169C [0xC]
u8 lbl_804316B4 [0xC] = { 2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB }
static s32 lbl_804D6398 = 3
JpegWork hsd_804D2648

Macro Definition Documentation

◆ HSD_804D2648_BUF

#define HSD_804D2648_BUF   ((u8*) &hsd_804D2648)

Function Documentation

◆ jpegLumaAddress()

void jpegLumaAddress ( s32 ** dest,
u8 * work,
u32 offset )
inlinestatic

◆ hsd_803B3408()

void hsd_803B3408 ( u8 * image,
s32 x,
s32 y,
s32 width,
s32 height )

◆ fn_803B376C()

void fn_803B376C ( u8 * arg0)
static

◆ hsd_803B3CD8_bit_length()

s32 hsd_803B3CD8_bit_length ( s32 value)
inlinestatic

◆ jpeg_run_bit_length()

s32 jpeg_run_bit_length ( s32 value)
inlinestatic

◆ hsd_803B3CD8_write_byte()

void hsd_803B3CD8_write_byte ( u8 byte,
JpegWork ** work )
inlinestatic

◆ hsd_803B3CD8_write_bits()

void hsd_803B3CD8_write_bits ( s32 value,
s32 length,
JpegWork ** work )
inlinestatic

◆ jpeg_write_run_payload()

void jpeg_write_run_payload ( s32 run,
s32 length,
JpegWork ** work )
inlinestatic

◆ jpeg_encode_component()

void jpeg_encode_component ( s32 component,
s32 * ac_value_out,
s32 * run_out,
s32 * value_out,
s32 * index_out )
inlinestatic

◆ hsd_803B3CD8()

void hsd_803B3CD8 ( s32 component)

◆ hsd_803B46D4()

void hsd_803B46D4 ( void )

◆ hsd_803B4A2C()

void hsd_803B4A2C ( void )

◆ hsd_803B4D64()

void hsd_803B4D64 ( u32 arg0,
u32 arg1 )

◆ hsd_803B51C8_inline()

s32 hsd_803B51C8_inline ( s32 image,
s32 image_height,
s32 image_width,
const char * output,
s32 output_capacity,
const JpegMetadata * metadata,
JpegComment * comment,
JpegHuffDc * huff_dc_luma,
JpegHuffDc * huff_dc_chroma,
JpegHuffAc * huff_ac_luma,
JpegHuffAc * huff_ac_chroma )
inlinestatic
Todo
Redundant cast improves match

◆ hsd_803B51C8()

s32 hsd_803B51C8 ( s32 arg0,
s32 arg1,
s32 arg2,
char * arg3,
s32 arg4 )

◆ hsd_803B5C2C()

void hsd_803B5C2C ( s32 arg0)

Variable Documentation

◆ lbl_803B9670

const JpegMetadata lbl_803B9670
static

◆ lbl_80430C40

u8 lbl_80430C40[0x40]
static
Initial value:
= {
0x10, 0x0B, 0x0A, 0x10, 0x18, 0x28, 0x33, 0x3D, 0x0C, 0x0C, 0x0E,
0x13, 0x1A, 0x3A, 0x3C, 0x37, 0x0E, 0x0D, 0x10, 0x18, 0x28, 0x39,
0x45, 0x38, 0x0E, 0x11, 0x16, 0x1D, 0x33, 0x57, 0x50, 0x3E, 0x12,
0x16, 0x25, 0x38, 0x44, 0x6D, 0x67, 0x4D, 0x18, 0x23, 0x37, 0x40,
0x51, 0x68, 0x71, 0x5C, 0x31, 0x40, 0x4E, 0x57, 0x67, 0x79, 0x78,
0x65, 0x48, 0x5C, 0x5F, 0x62, 0x70, 0x64, 0x67, 0x63,
}

◆ lbl_80430C80

u8 lbl_80430C80[0x410]
static

◆ lbl_80431638

u8 lbl_80431638
extern
Initial value:
= {
0, 1, 8, 0x10, 9, 2, 3, 0xA, 0x11, 0x18, 0x20,
0x19, 0x12, 0xB, 4, 5, 0xC, 0x13, 0x1A, 0x21, 0x28, 0x30,
0x29, 0x22, 0x1B, 0x14, 0xD, 6, 7, 0xE, 0x15, 0x1C, 0x23,
0x2A, 0x31, 0x38, 0x39, 0x32, 0x2B, 0x24, 0x1D, 0x16, 0xF, 0x17,
0x1E, 0x25, 0x2C, 0x33, 0x3A, 0x3B, 0x34, 0x2D, 0x26, 0x1F, 0x27,
0x2E, 0x35, 0x3C, 0x3D, 0x36, 0x2F, 0x37, 0x3E, 0x3F,
}

◆ lbl_80431678

u16 lbl_80431678
extern
Initial value:
= {
0, 2, 3, 4, 5, 6, 0xE, 0x1E, 0x3E, 0x7E, 0xFE, 0x1FE
}

◆ lbl_80431690

u8 lbl_80431690 = { 2, 3, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9 }
extern

◆ lbl_8043169C

u16 lbl_8043169C
extern
Initial value:
= { 0, 1, 2, 6, 0xE, 0x1E,
0x3E, 0x7E, 0xFE, 0x1FE, 0x3FE, 0x7FE }

◆ lbl_804316B4

u8 lbl_804316B4 = { 2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB }
extern

◆ lbl_804D6398

s32 lbl_804D6398 = 3
static

◆ hsd_804D2648

JpegWork hsd_804D2648