Register - Login
Views: 87342716
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
11-19-17 04:50:40 AM

Jul - Craziness Domain - 666 New poll - New thread - New reply
Next newer thread | Next older thread
divingkataetheweirdo

Lantern Ghost
TCRF Super Editor
Level: 52


Posts: 666/772
EXP: 1034320
For next: 49520

Since: 07-09-11


Since last post: 9 hours
Last activity: 3 hours

Posted on 12-27-16 09:17:48 PM (last edited by divingkataetheweirdo at 12-27-16 09:18:31 PM) Link | Quote
This here is my 666th post.

I don't know what to do here, but here...

Have a decompressor tool I've been coding up.
Lunaria

Moon Bunny! :3
Level: 128


Posts: 5265/5339
EXP: 23942697
For next: 439003

Since: 07-28-07
From: the everfree forest

Since last post: 3 days
Last activity: 8 hours

Posted on 12-27-16 09:21:30 PM Link | Quote
HEY-O! Getting closer to that 700 marker in your signature, if nothing else!
Xkeeper






Posted on 12-27-16 09:34:28 PM Link | Quote
What is it for? (the tool, I mean.)

Other than that, nice? My trip to Costco last night cost $444, so it's been one of those sets-of-numbers days, I suppose.
divingkataetheweirdo

Lantern Ghost
TCRF Super Editor
Level: 52


Posts: 667/772
EXP: 1034320
For next: 49520

Since: 07-09-11


Since last post: 9 hours
Last activity: 3 hours

Posted on 12-27-16 09:45:52 PM (last edited by divingkataetheweirdo at 12-27-16 09:47:27 PM) Link | Quote
Here's how to use it...

This is a very basic decompressor, meant to decompress individual files that were compressed with common compression algorithms. It works through the command line and the name of the file is decompressor.cpp. I intentionally made this as OS-agnostic as possible, though this was coded with CodeBlocks 16.01 on Windows. I was able to compile this through GCC 4.9.2.

It works like so:
decompressor arg1 inputfile outputfile offset

In arg1, it accepts the following:
packbits - The Packbits compression
fourbrle - Bit-packed RLE; higher 4 bits for number of repetitions, lower 4 for the data (used for 16*16 tiles)
lzw - LZW compression
huffman - Huffman compression (this is very fuzzy for me)

For offset, just enter 0. The plan is to eventually shift the file pointer to the address you want to start at, in case the file has a header. I also plan to for you to add how far into the file you want to decompress said data.

If you want to, add the following the code after line 62:

else if (strcmp("eightbrle", test_input) == 0){
printf("Time to decompress a plain 8-bit RLE compressed file. \n");
plain_8b_rle_decompress(argv[2], argv[3], argv[4]);
}

This allows you to decompress one of the more common versions of RLE. That is a value between 0-255 signifying the number of repetitions, followed by the value to be repeated.

I did this largely for practice, so it isn't terribly useful for IRL purposes.
Kak

gg photobucket
Level: 68


Posts: 1604/1638
EXP: 2599792
For next: 129008

Since: 09-03-13
From: ???

Since last post: 20 days
Last activity: 3 days

Posted on 12-28-16 07:16:03 AM Link | Quote
Aw, I expected something like "GAME OVER RETURN OF JAFAR" for a thread with this title.

I'm severely disappointed. :v
Zero One
5100
And as we fall the spirit carries on,
That a hero'll come and save us all,
As we call the ones we left below,
We all dream of the day we rise above
Level: 120


Posts: 5013/5108
EXP: 19094442
For next: 392729

Since: 05-24-10
From: Delta Quadrant

Since last post: 7 days
Last activity: 17 hours

Posted on 12-28-16 02:38:08 PM (last edited by Zero One at 12-28-16 02:38:43 PM) Link | Quote
I bought a game for £6.66, pre-VAT, so I was amused. Keep postin'! I passed the 5000 mark without realising it. I'm sure I wasted it on a completely dumb post, as usual.
brian151
Banned
The administration (as well as a few users) have decided that you're creepy/weird enough that it's time to activate the sploded clause.
Laters.


Level: NaN


Posts: 59/-249
EXP: NaN
For next: 0

Since: 08-09-16
From: USA

Since last post: 108 days
Last activity: 81 days

Posted on 01-01-17 04:30:22 AM Link | Quote
A month or so ago, my mom and I went to Carl's Jr. for dinner, then took something home for my dad

The price for my dad's food was $6.66

also, fun fact: I fairly often look at a clock when it's 4:04
Next newer thread | Next older thread
Jul - Craziness Domain - 666 New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

27 database queries, 1 query cache hits.
Query execution time: 0.152550 seconds
Script execution time: 0.007738 seconds
Total render time: 0.160288 seconds