ZenHAX
https://zenhax.com/

BPE Compression
https://zenhax.com/viewtopic.php?f=13&t=2417
Page 1 of 1

Author:  Racial [ Thu May 05, 2016 11:23 pm ]
Post subject:  BPE Compression

Solved

Author:  aluigi [ Fri May 06, 2016 6:28 am ]
Post subject:  Re: BPE compression

quickbms supports the comtype bpe_compress which is just the recompression algorithm of comtype bpe (the known version of Philip Gage).
So if that's the algorithm you are looking for:
Code:
comtype bpe_compress
get SIZE asize
clog "new_file.bpe" 0 SIZE SIZE

Author:  Racial [ Fri May 06, 2016 11:04 am ]
Post subject:  Solved

Solved

Attachments:
Files BPE.zip [156.52 KiB]
Downloaded 192 times

Author:  aluigi [ Sat May 07, 2016 9:14 am ]
Post subject:  Re: BPE compression

As I told you, the comtype to use is bpe_compress.
The following is a full script for creating a compressed file with the same format:
Code:
comtype bpe_compress
get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2
log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
put ZSIZE long MEMORY_FILE
append
log MEMORY_FILE 0 ZSIZE MEMORY_FILE2
append
get SIZE asize MEMORY_FILE
get NAME filename
string NAME + ".compressed"
log NAME 0 SIZE MEMORY_FILE

Author:  Racial [ Sat May 07, 2016 5:19 pm ]
Post subject:  Re: BPE compression

I used that script an works. Thanks you very much for your help.

Is there a source code for bpe_compress and bpe (for uncompress) ?

Author:  aluigi [ Sat May 07, 2016 5:46 pm ]
Post subject:  Re: BPE compression

decompress: http://www.csse.monash.edu.au/cluster/R ... ress/bpd.c
compress: http://www.csse.monash.edu.au/cluster/R ... ress/bpe.c

If you prefer the code that uses the memory instead of file then check src\compression\bpd.c and src\compression\bpe.c in the source code of quickbms: http://aluigi.org/papers/quickbms_src.zip

Author:  Destro [ Thu Jun 29, 2017 10:17 pm ]
Post subject:  Re: BPE compression

aluigi wrote:
decompress: http://www.csse.monash.edu.au/cluster/R ... ress/bpd.c
compress: http://www.csse.monash.edu.au/cluster/R ... ress/bpe.c

If you prefer the code that uses the memory instead of file then check src\compression\bpd.c and src\compression\bpe.c in the source code of quickbms: http://aluigi.org/papers/quickbms_src.zip


Sorry, I did not get it. How would a script be built to unzip these files?

download/file.php?id=1195

-------------------------------------------------------
Thanks for leaving the compression script =D

comtype bpe_compress
get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2
log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
put ZSIZE long MEMORY_FILE
append
log MEMORY_FILE 0 ZSIZE MEMORY_FILE2
append
get SIZE asize MEMORY_FILE
get NAME filename
log NAME 0 SIZE MEMORY_FILE

--------------------------------------------------

Author:  aluigi [ Mon Jul 17, 2017 4:53 pm ]
Post subject:  Re: Help (solved)

@Racial
please don't edit your first post deleting its content or others people with the same problem will not found the solution. thanks

@Destro
not sure if you found the solution or not, it looks like you used the script I posted so I guess it's solved

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/