Register - Login
Views: 91469409
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-26-18 06:12:10 AM

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

Bandit
TCRF Super Editor
Level: 54


Posts: 666/811
EXP: 1157830
For next: 76040

Since: 07-09-11


Since last post: 12 hours
Last activity: 12 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: 131


Posts: 5265/5565
EXP: 26107056
For next: 317564

Since: 07-28-07

Pronouns: she/her
From: pile of fluff

Since last post: 14 days
Last activity: 15 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

Level: 243


Posts: 21925/23358
EXP: 225215703
For next: 1699917

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 7 days
Last activity: 5 hours

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

Bandit
TCRF Super Editor
Level: 54


Posts: 667/811
EXP: 1157830
For next: 76040

Since: 07-09-11


Since last post: 12 hours
Last activity: 12 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
heh
Level: 71


Posts: 1604/1779
EXP: 3117288
For next: 49826

Since: 09-03-13

From: ???

Since last post: 1 day
Last activity: 12 hours

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
5150
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: 121


Posts: 5013/5152
EXP: 19995300
For next: 61396

Since: 05-24-10

From: Delta Quadrant

Since last post: 3 days
Last activity: 16 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: 296 days
Last activity: 269 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 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries, 1 query cache hits.
Query execution time: 0.150746 seconds
Script execution time: 0.012516 seconds
Total render time: 0.163261 seconds
Memory used: 786432