Register - Login
Views: 94328835
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
08-22-18 01:23:08 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/813
EXP: 1182241
For next: 51629

Since: 07-09-11


Since last post: 58 days
Last activity: 6 days

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: 132


Posts: 5265/5578
EXP: 26487809
For next: 644124

Since: 07-28-07

Pronouns: she/her
From: pile of fluff

Since last post: 38 days
Last activity: 4 days

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: 244


Posts: 21925/23358
EXP: 227686254
For next: 2501012

Since: 07-03-07

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

Since last post: 1 day
Last activity: 21 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/813
EXP: 1182241
For next: 51629

Since: 07-09-11


Since last post: 58 days
Last activity: 6 days

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: 72


Posts: 1604/1786
EXP: 3214473
For next: 109289

Since: 09-03-13

From: ???

Since last post: 7 days
Last activity: 1 day

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
5160
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: 122


Posts: 5013/5163
EXP: 20358340
For next: 279673

Since: 05-24-10

From: Delta Quadrant

Since last post: 5 days
Last activity: 3 days

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: 1.0 years
Last activity: 357 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.163799 seconds
Script execution time: 0.013250 seconds
Total render time: 0.177049 seconds
Memory used: 786432