Endless Paradigm

Full Version: recompress PRX files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
bstronga you underestimate yourself
;)

h901
As much as i don't want to, i may update to M33. Good work, B.
@ bstronga: Well, I tested zlib with max compression and I got only few bytes smaller files than the original one. It seems like gzip is better than zlib. So I took a closer look at 7z and I was impressed. After a number of test compressions and discovering the magical world of command line options my recompressed "reference file' inacor.prx is 13 bytes smaller than you made, which is really good news. A 7z-gzip recompressed file is an average 4-5% smaller than the original, so theoretically, if I recompress all prx files I could free up about 1MB space in flash0.
Thank you for the 7z tip, the next version of my program will use 7z.
bstronga Wrote:my coding skills are not even worth to be mentioned ;p
Lol - I think you'd do quite well, considering how much about data types and stuff you know.

s_king Wrote:@ bstronga: Well, I tested zlib with max compression and I got only few bytes smaller files than the original one. It seems like gzip is better than zlib. So I took a closer look at 7z and I was impressed. After a number of test compressions and discovering the magical world of command line options my recompressed "reference file' inacor.prx is 13 bytes smaller than you made, which is really good news. A 7z-gzip recompressed file is an average 4-5% smaller than the original, so theoretically, if I recompress all prx files I could free up about 1MB space in flash0.
Thank you for the 7z tip, the next version of my program will use 7z.
I really don't think 13 bytes matters that much...  It could even be part of the header.  Not certain, but I've got a feeling that 7-Zip uses zlib for deflating anyways.  Note that the gzip format is really just a deflate with a few headers and CRC32 at the end, If I recall correctly.  Hmm, you might even be able to get a pure deflate stream to work, IDK, but 13 bytes is really nothing...
ZiNgA BuRgA Wrote:I really don't think 13 bytes matters that much...  It could even be part of the header.  Not certain, but I've got a feeling that 7-Zip uses zlib for deflating anyways.  Note that the gzip format is really just a deflate with a few headers and CRC32 at the end, If I recall correctly.  Hmm, you might even be able to get a pure deflate stream to work, IDK, but 13 bytes is really nothing...
I totally agree with this, just some bytes, moreover a few kbytes is not too much. I wrote it only to show the difference between the 7z GUI and command line compressed files. (That was a joke only. ;) )

How come that a zlib max compressed file is 4-5% bigger than a 7z compressed gzip file? I haven't got enough skill to implement zlib compressor into my program so I used a premade code which uses the zlib.dll library. Maybe that is the reason for the relatively big difference? (4-5% means 35kB smaller file in a file like paf.prx)
i changed my system version to "PirataNervo", lol, but i don't think its the same way as this one.
Nvrmd
Will this manual method still work to compress 3.71 paf.prx and vshmain.prx
recompress is still the same... I use the new prx files for headers in the recompression tool and it works fine...
Vibestar Wrote:recompress is still the same... I use the new prx files for headers in the recompression tool and it works fine...

What version of which tool? I tried with Takeshi's and with s_kings tool and no go.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Reference URL's