z_jpeg, jpegutils and jpegdecoder OK (#322)

* this is a disaster

* two more

* func_800F470C

* split and rename jpegutils and jpegdecoder

* match jpegutils

* match jpegdecoder.c

* audio_rodata

* data split

* Split rsp

* Steal documentation from OoT

* cleanup

* Format

* remove removed members in JpegContext

* Update include/z64.h

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* Update src/code/jpegdecoder.c

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* Update include/functions.h

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* Update src/code/jpegutils.c

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* review renames

* true

* Some type fixes

* Update include/z64.h

Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>

* add comment

* Update src/code/z_jpeg.c

Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>

* format

* bss fix

* decr

* format

* z64jpeg.h

* Add stdbool

* Rename audio_init_params

* whoops

* whoops++

* whoops#

* remove extra dumb variables in variables.txt

* fix

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
This commit is contained in:
Anghelo Carvajal
2021-11-19 17:34:45 -03:00
committed by GitHub
co-authored by engineer124 EllipticEllipsis
parent c8b0ff3f74
commit 2854294009
15 changed files with 809 additions and 121 deletions
+22 -22
View File
@@ -1207,11 +1207,11 @@ asm/non_matchings/code/z_horse/func_800F3ED4.s,func_800F3ED4,0x800F3ED4,0x73
asm/non_matchings/code/z_horse/func_800F40A0.s,func_800F40A0,0x800F40A0,0x2F
asm/non_matchings/code/z_horse/func_800F415C.s,func_800F415C,0x800F415C,0x22
asm/non_matchings/code/z_horse/func_800F41E4.s,func_800F41E4,0x800F41E4,0x2F
asm/non_matchings/code/z_jpeg/func_800F42A0.s,func_800F42A0,0x800F42A0,0x47
asm/non_matchings/code/z_jpeg/func_800F43BC.s,func_800F43BC,0x800F43BC,0x4E
asm/non_matchings/code/z_jpeg/func_800F44F4.s,func_800F44F4,0x800F44F4,0x13
asm/non_matchings/code/z_jpeg/func_800F4540.s,func_800F4540,0x800F4540,0x73
asm/non_matchings/code/z_jpeg/func_800F470C.s,func_800F470C,0x800F470C,0xC1
asm/non_matchings/code/z_jpeg/Jpeg_ScheduleDecoderTask.s,Jpeg_ScheduleDecoderTask,0x800F42A0,0x47
asm/non_matchings/code/z_jpeg/Jpeg_CopyToZbuffer.s,Jpeg_CopyToZbuffer,0x800F43BC,0x4E
asm/non_matchings/code/z_jpeg/Jpeg_GetUnalignedU16.s,Jpeg_GetUnalignedU16,0x800F44F4,0x13
asm/non_matchings/code/z_jpeg/Jpeg_ParseMarkers.s,Jpeg_ParseMarkers,0x800F4540,0x73
asm/non_matchings/code/z_jpeg/Jpeg_Decode.s,Jpeg_Decode,0x800F470C,0xC1
asm/non_matchings/code/z_kaleido_setup/func_800F4A10.s,func_800F4A10,0x800F4A10,0x7F
asm/non_matchings/code/z_kaleido_setup/func_800F4C0C.s,func_800F4C0C,0x800F4C0C,0x85
asm/non_matchings/code/z_kaleido_setup/func_800F4E20.s,func_800F4E20,0x800F4E20,0x42
@@ -1578,7 +1578,7 @@ asm/non_matchings/code/z_msgevent/func_8010BF58.s,func_8010BF58,0x8010BF58,0x5A
asm/non_matchings/code/z_nmi_buff/Nmi_Init.s,Nmi_Init,0x8010C0C0,0x29
asm/non_matchings/code/z_nmi_buff/Nmi_SetPrenmiStart.s,Nmi_SetPrenmiStart,0x8010C164,0xE
asm/non_matchings/code/z_nmi_buff/Nmi_GetPrenmiHasStarted.s,Nmi_GetPrenmiHasStarted,0x8010C19C,0x5
asm/non_matchings/code/z_nmi_buff/func_8010C1B0.s,func_8010C1B0,0x8010C1B0,0x20
asm/non_matchings/code/z_nmi_buff/MsgEvent_SendNullTask.s,MsgEvent_SendNullTask,0x8010C1B0,0x20
asm/non_matchings/code/z_olib/OLib_Vec3fDist.s,OLib_Vec3fDist,0x8010C230,0x11
asm/non_matchings/code/z_olib/OLib_Vec3fDistOutDiff.s,OLib_Vec3fDistOutDiff,0x8010C274,0x17
asm/non_matchings/code/z_olib/OLib_Vec3fDistXZ.s,OLib_Vec3fDistXZ,0x8010C2D0,0xD
@@ -2907,10 +2907,10 @@ asm/non_matchings/code/sys_matrix/func_8018219C.s,func_8018219C,0x8018219C,0x4A
asm/non_matchings/code/sys_matrix/func_801822C4.s,func_801822C4,0x801822C4,0x4A
asm/non_matchings/code/sys_matrix/Matrix_InsertRotationAroundUnitVector_f.s,Matrix_InsertRotationAroundUnitVector_f,0x801823EC,0x118
asm/non_matchings/code/sys_matrix/Matrix_InsertRotationAroundUnitVector_s.s,Matrix_InsertRotationAroundUnitVector_s,0x8018284C,0x111
asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeBoot.s,SysUcode_GetUCodeBoot,0x80182C90,0x4
asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeBootSize.s,SysUcode_GetUCodeBootSize,0x80182CA0,0x7
asm/non_matchings/code/sys_matrix/SysUcode_GetUCode.s,SysUcode_GetUCode,0x80182CBC,0x4
asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeData.s,SysUcode_GetUCodeData,0x80182CCC,0x5
asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeBoot.s,SysUcode_GetUCodeBoot,0x80182C90,0x4
asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeBootSize.s,SysUcode_GetUCodeBootSize,0x80182CA0,0x7
asm/non_matchings/code/sys_ucode/SysUcode_GetUCode.s,SysUcode_GetUCode,0x80182CBC,0x4
asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeData.s,SysUcode_GetUCodeData,0x80182CCC,0x5
asm/non_matchings/code/sys_ucode/func_80182CE0.s,func_80182CE0,0x80182CE0,0xD0
asm/non_matchings/code/sys_ucode/func_80183020.s,func_80183020,0x80183020,0xE
asm/non_matchings/code/sys_ucode/func_80183058.s,func_80183058,0x80183058,0x6
@@ -3585,18 +3585,18 @@ asm/non_matchings/code/code_801A7B10/func_801A9768.s,func_801A9768,0x801A9768,0x
asm/non_matchings/code/code_801A7B10/func_801A982C.s,func_801A982C,0x801A982C,0x63
asm/non_matchings/code/code_801A7B10/func_801A99B8.s,func_801A99B8,0x801A99B8,0x2F
asm/non_matchings/code/code_801A7B10/func_801A9A74.s,func_801A9A74,0x801A9A74,0x27
asm/non_matchings/code/code_801A7B10/func_801A9B10.s,func_801A9B10,0x801A9B10,0x1A
asm/non_matchings/code/code_801A7B10/func_801A9B78.s,func_801A9B78,0x801A9B78,0x21
asm/non_matchings/code/code_801A7B10/func_801A9BFC.s,func_801A9BFC,0x801A9BFC,0x1B
asm/non_matchings/code/code_801A7B10/func_801A9C68.s,func_801A9C68,0x801A9C68,0x2A
asm/non_matchings/code/code_801A7B10/func_801A9D10.s,func_801A9D10,0x801A9D10,0x2F
asm/non_matchings/code/code_801A7B10/func_801A9DCC.s,func_801A9DCC,0x801A9DCC,0x36
asm/non_matchings/code/code_801A7B10/func_801A9EA4.s,func_801A9EA4,0x801A9EA4,0x2A
asm/non_matchings/code/code_801A7B10/func_801A9F4C.s,func_801A9F4C,0x801A9F4C,0x35
asm/non_matchings/code/code_801AA020/func_801AA020.s,func_801AA020,0x801AA020,0x8A
asm/non_matchings/code/code_801AA020/func_801AA248.s,func_801AA248,0x801AA248,0x67
asm/non_matchings/code/code_801AA020/func_801AA3E4.s,func_801AA3E4,0x801AA3E4,0x4F
asm/non_matchings/code/code_801AA020/func_801AA520.s,func_801AA520,0x801AA520,0x3C
asm/non_matchings/code/jpegutils/JpegUtils_ProcessQuantizationTable.s,JpegUtils_ProcessQuantizationTable,0x801A9B10,0x1A
asm/non_matchings/code/jpegutils/JpegUtils_ParseHuffmanCodesLengths.s,JpegUtils_ParseHuffmanCodesLengths,0x801A9B78,0x21
asm/non_matchings/code/jpegutils/JpegUtils_GetHuffmanCodes.s,JpegUtils_GetHuffmanCodes,0x801A9BFC,0x1B
asm/non_matchings/code/jpegutils/JpegUtils_SetHuffmanTable.s,JpegUtils_SetHuffmanTable,0x801A9C68,0x2A
asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTableImpl.s,JpegUtils_ProcessHuffmanTableImpl,0x801A9D10,0x2F
asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTable.s,JpegUtils_ProcessHuffmanTable,0x801A9DCC,0x36
asm/non_matchings/code/jpegutils/JpegUtils_SetHuffmanTableOld.s,JpegUtils_SetHuffmanTableOld,0x801A9EA4,0x2A
asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTableImplOld.s,JpegUtils_ProcessHuffmanTableImplOld,0x801A9F4C,0x35
asm/non_matchings/code/jpegdecoder/JpegDecoder_Decode.s,JpegDecoder_Decode,0x801AA020,0x8A
asm/non_matchings/code/jpegdecoder/JpegDecoder_ProcessMcu.s,JpegDecoder_ProcessMcu,0x801AA248,0x67
asm/non_matchings/code/jpegdecoder/JpegDecoder_ParseNextSymbol.s,JpegDecoder_ParseNextSymbol,0x801AA3E4,0x4F
asm/non_matchings/code/jpegdecoder/JpegDecoder_ReadBits.s,JpegDecoder_ReadBits,0x801AA520,0x3C
asm/non_matchings/code/z_game_over/GameOver_Init.s,GameOver_Init,0x801AA610,0x5
asm/non_matchings/code/z_game_over/GameOver_FadeLights.s,GameOver_FadeLights,0x801AA624,0x1A
asm/non_matchings/code/z_game_over/GameOver_Update.s,GameOver_Update,0x801AA68C,0x105
1 asm/non_matchings/code/z_en_a_keep/EnAObj_Init.s EnAObj_Init 0x800A5AC0 0x2B
1207 asm/non_matchings/code/z_horse/func_800F40A0.s func_800F40A0 0x800F40A0 0x2F
1208 asm/non_matchings/code/z_horse/func_800F415C.s func_800F415C 0x800F415C 0x22
1209 asm/non_matchings/code/z_horse/func_800F41E4.s func_800F41E4 0x800F41E4 0x2F
1210 asm/non_matchings/code/z_jpeg/func_800F42A0.s asm/non_matchings/code/z_jpeg/Jpeg_ScheduleDecoderTask.s func_800F42A0 Jpeg_ScheduleDecoderTask 0x800F42A0 0x47
1211 asm/non_matchings/code/z_jpeg/func_800F43BC.s asm/non_matchings/code/z_jpeg/Jpeg_CopyToZbuffer.s func_800F43BC Jpeg_CopyToZbuffer 0x800F43BC 0x4E
1212 asm/non_matchings/code/z_jpeg/func_800F44F4.s asm/non_matchings/code/z_jpeg/Jpeg_GetUnalignedU16.s func_800F44F4 Jpeg_GetUnalignedU16 0x800F44F4 0x13
1213 asm/non_matchings/code/z_jpeg/func_800F4540.s asm/non_matchings/code/z_jpeg/Jpeg_ParseMarkers.s func_800F4540 Jpeg_ParseMarkers 0x800F4540 0x73
1214 asm/non_matchings/code/z_jpeg/func_800F470C.s asm/non_matchings/code/z_jpeg/Jpeg_Decode.s func_800F470C Jpeg_Decode 0x800F470C 0xC1
1215 asm/non_matchings/code/z_kaleido_setup/func_800F4A10.s func_800F4A10 0x800F4A10 0x7F
1216 asm/non_matchings/code/z_kaleido_setup/func_800F4C0C.s func_800F4C0C 0x800F4C0C 0x85
1217 asm/non_matchings/code/z_kaleido_setup/func_800F4E20.s func_800F4E20 0x800F4E20 0x42
1578 asm/non_matchings/code/z_nmi_buff/Nmi_Init.s Nmi_Init 0x8010C0C0 0x29
1579 asm/non_matchings/code/z_nmi_buff/Nmi_SetPrenmiStart.s Nmi_SetPrenmiStart 0x8010C164 0xE
1580 asm/non_matchings/code/z_nmi_buff/Nmi_GetPrenmiHasStarted.s Nmi_GetPrenmiHasStarted 0x8010C19C 0x5
1581 asm/non_matchings/code/z_nmi_buff/func_8010C1B0.s asm/non_matchings/code/z_nmi_buff/MsgEvent_SendNullTask.s func_8010C1B0 MsgEvent_SendNullTask 0x8010C1B0 0x20
1582 asm/non_matchings/code/z_olib/OLib_Vec3fDist.s OLib_Vec3fDist 0x8010C230 0x11
1583 asm/non_matchings/code/z_olib/OLib_Vec3fDistOutDiff.s OLib_Vec3fDistOutDiff 0x8010C274 0x17
1584 asm/non_matchings/code/z_olib/OLib_Vec3fDistXZ.s OLib_Vec3fDistXZ 0x8010C2D0 0xD
2907 asm/non_matchings/code/sys_matrix/func_801822C4.s func_801822C4 0x801822C4 0x4A
2908 asm/non_matchings/code/sys_matrix/Matrix_InsertRotationAroundUnitVector_f.s Matrix_InsertRotationAroundUnitVector_f 0x801823EC 0x118
2909 asm/non_matchings/code/sys_matrix/Matrix_InsertRotationAroundUnitVector_s.s Matrix_InsertRotationAroundUnitVector_s 0x8018284C 0x111
2910 asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeBoot.s asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeBoot.s SysUcode_GetUCodeBoot 0x80182C90 0x4
2911 asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeBootSize.s asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeBootSize.s SysUcode_GetUCodeBootSize 0x80182CA0 0x7
2912 asm/non_matchings/code/sys_matrix/SysUcode_GetUCode.s asm/non_matchings/code/sys_ucode/SysUcode_GetUCode.s SysUcode_GetUCode 0x80182CBC 0x4
2913 asm/non_matchings/code/sys_matrix/SysUcode_GetUCodeData.s asm/non_matchings/code/sys_ucode/SysUcode_GetUCodeData.s SysUcode_GetUCodeData 0x80182CCC 0x5
2914 asm/non_matchings/code/sys_ucode/func_80182CE0.s func_80182CE0 0x80182CE0 0xD0
2915 asm/non_matchings/code/sys_ucode/func_80183020.s func_80183020 0x80183020 0xE
2916 asm/non_matchings/code/sys_ucode/func_80183058.s func_80183058 0x80183058 0x6
3585 asm/non_matchings/code/code_801A7B10/func_801A982C.s func_801A982C 0x801A982C 0x63
3586 asm/non_matchings/code/code_801A7B10/func_801A99B8.s func_801A99B8 0x801A99B8 0x2F
3587 asm/non_matchings/code/code_801A7B10/func_801A9A74.s func_801A9A74 0x801A9A74 0x27
3588 asm/non_matchings/code/code_801A7B10/func_801A9B10.s asm/non_matchings/code/jpegutils/JpegUtils_ProcessQuantizationTable.s func_801A9B10 JpegUtils_ProcessQuantizationTable 0x801A9B10 0x1A
3589 asm/non_matchings/code/code_801A7B10/func_801A9B78.s asm/non_matchings/code/jpegutils/JpegUtils_ParseHuffmanCodesLengths.s func_801A9B78 JpegUtils_ParseHuffmanCodesLengths 0x801A9B78 0x21
3590 asm/non_matchings/code/code_801A7B10/func_801A9BFC.s asm/non_matchings/code/jpegutils/JpegUtils_GetHuffmanCodes.s func_801A9BFC JpegUtils_GetHuffmanCodes 0x801A9BFC 0x1B
3591 asm/non_matchings/code/code_801A7B10/func_801A9C68.s asm/non_matchings/code/jpegutils/JpegUtils_SetHuffmanTable.s func_801A9C68 JpegUtils_SetHuffmanTable 0x801A9C68 0x2A
3592 asm/non_matchings/code/code_801A7B10/func_801A9D10.s asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTableImpl.s func_801A9D10 JpegUtils_ProcessHuffmanTableImpl 0x801A9D10 0x2F
3593 asm/non_matchings/code/code_801A7B10/func_801A9DCC.s asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTable.s func_801A9DCC JpegUtils_ProcessHuffmanTable 0x801A9DCC 0x36
3594 asm/non_matchings/code/code_801A7B10/func_801A9EA4.s asm/non_matchings/code/jpegutils/JpegUtils_SetHuffmanTableOld.s func_801A9EA4 JpegUtils_SetHuffmanTableOld 0x801A9EA4 0x2A
3595 asm/non_matchings/code/code_801A7B10/func_801A9F4C.s asm/non_matchings/code/jpegutils/JpegUtils_ProcessHuffmanTableImplOld.s func_801A9F4C JpegUtils_ProcessHuffmanTableImplOld 0x801A9F4C 0x35
3596 asm/non_matchings/code/code_801AA020/func_801AA020.s asm/non_matchings/code/jpegdecoder/JpegDecoder_Decode.s func_801AA020 JpegDecoder_Decode 0x801AA020 0x8A
3597 asm/non_matchings/code/code_801AA020/func_801AA248.s asm/non_matchings/code/jpegdecoder/JpegDecoder_ProcessMcu.s func_801AA248 JpegDecoder_ProcessMcu 0x801AA248 0x67
3598 asm/non_matchings/code/code_801AA020/func_801AA3E4.s asm/non_matchings/code/jpegdecoder/JpegDecoder_ParseNextSymbol.s func_801AA3E4 JpegDecoder_ParseNextSymbol 0x801AA3E4 0x4F
3599 asm/non_matchings/code/code_801AA020/func_801AA520.s asm/non_matchings/code/jpegdecoder/JpegDecoder_ReadBits.s func_801AA520 JpegDecoder_ReadBits 0x801AA520 0x3C
3600 asm/non_matchings/code/z_game_over/GameOver_Init.s GameOver_Init 0x801AA610 0x5
3601 asm/non_matchings/code/z_game_over/GameOver_FadeLights.s GameOver_FadeLights 0x801AA624 0x1A
3602 asm/non_matchings/code/z_game_over/GameOver_Update.s GameOver_Update 0x801AA68C 0x105