diff options
| author | Random <28494085+Random06457@users.noreply.github.com> | 2020-06-22 00:43:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 18:43:14 -0400 |
| commit | ab1ec89f22808c38426f7e0d4e4f0e1a5bc3aec9 (patch) | |
| tree | 55db3fee7706e85d9f35c55444fb8fd0617c21b1 /src/code/jpegutils.c | |
| parent | afce6a3c3685e09d94aa094ab4f2bb346d58b0ed (diff) | |
Decompile jpegdecoder.c, padsetup.c and code_800C3C20.c (#217)
* Decompile jpegdecoder.c, padsetup.c and code_800C3C20.c
* change func_800C3C20's prototype and rename some fields in jpeg related structs
* Fix comment in Jpeg_GetU16 and change func_800C3C20
* use a switch in padsetup.c
Diffstat (limited to 'src/code/jpegutils.c')
| -rw-r--r-- | src/code/jpegutils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/jpegutils.c b/src/code/jpegutils.c index ae23da852..52b8612dd 100644 --- a/src/code/jpegutils.c +++ b/src/code/jpegutils.c @@ -12,7 +12,7 @@ void JpegUtils_ProcessQuantizationTable(u8* dqt, JpegQuantizationTable* qt, u8 c } } -s32 JpegUtils_ParseHuffmancodesLengths(u8* ptr, u8* codesLengths) { +s32 JpegUtils_ParseHuffmanCodesLengths(u8* ptr, u8* codesLengths) { u8 off = 1; s16 count = 0; s16 idx = 1; @@ -84,7 +84,7 @@ u32 JpegUtils_ProcessHuffmanTableImpl(u8* data, JpegHuffmanTable* ht, u8* codesL s32 count; s32 temp; - count = JpegUtils_ParseHuffmancodesLengths(data, codesLengths); + count = JpegUtils_ParseHuffmanCodesLengths(data, codesLengths); ret = count; if (count == 0 || (isAc && count > 0x100) || (!isAc && count > 0x10)) { return 0; @@ -139,7 +139,7 @@ u32 JpegUtils_ProcessHuffmanTableImplOld(u8* dht, JpegHuffmanTableOld* ht, u8* c isAc = *dht++ >> 4; - count2 = count = JpegUtils_ParseHuffmancodesLengths(dht, codesLengths); + count2 = count = JpegUtils_ParseHuffmanCodesLengths(dht, codesLengths); if (count == 0 || (isAc && count > 0x100) || (!isAc && count > 0x10)) { return 1; |
