CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 125 users online: 1 member, 96 guests and 28 bots.
Members: t42592.
Bots: VoilaBot (4), Spinn3r (1), Magpie Crawler (2), VoilaBot (6), Googlebot (15).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 924

Posted: 29 Feb 2012 07:11:57 pm    Post subject: LZ77 Compression/Decompression Routine

I am working on a program that requires compression and decompression to be done on calc. I lack the programming skills to achieve compression/decompression, although I do understand the concept. Yet, I would rather not let another project fail. So, I ask... is there anyone with the time and expertise who would like to code the compression/decompression routines, and be listed on the project as a co-author? If not, I'll try again when everything else is done, but I doubt I'll be successful.
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
Kaslai


Member


Joined: 16 Nov 2011
Posts: 172
Location: ???, WA

Posted: 29 Feb 2012 10:52:26 pm    Post subject:

What kind of data are you trying to compress? Could a simple Run Length Encoding suffice?
Most other (de)compression methods require a lot of ram to perform quickly.
_________________



Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 924

Posted: 01 Mar 2012 08:22:49 am    Post subject:

This algorithm needs to compress all different data forms...in fact, a specially formatted "Archive". Here's the project in question:

http://clrhome.org/projects/calcrar
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
Kaslai


Member


Joined: 16 Nov 2011
Posts: 172
Location: ???, WA

Posted: 01 Mar 2012 11:17:13 am    Post subject:

Alright, so you're right, an LZ77 or LZ77-like solution would probably achieve the most satisfactory results. I'll try tinkering about during school writing a Z80 LZ77 codec.
_________________



Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 924

Posted: 01 Mar 2012 07:31:31 pm    Post subject:

Thank you. I do appreciate it.
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 924

Posted: 07 Mar 2012 06:55:40 pm    Post subject:

Any progress on this Kaslai?
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
Kaslai


Member


Joined: 16 Nov 2011
Posts: 172
Location: ???, WA

Posted: 08 Mar 2012 09:39:56 am    Post subject:

I talked in IRC about some ideas. I'm not sure how BASIC programs are run, but what I'm thinking is that you could probably decompress files in-place. Just insertmem in to the running programs space to fit the size of the decompressed files, provided enough memory.

Decompressing in place is easy enough; you just need to write the compressor to run backwards instead of forwards. Then, decompress from the end of where the decompressed data will be. I don't think the TI-83+ uses memory caching, so going backwards shouldn't cut performance.
_________________



Back to top
ACagliano


Super-Expert


Joined: 08 Feb 2010
Posts: 924

Posted: 19 Mar 2012 09:38:47 am    Post subject:

I haven't the slightest clue how to do this. 0x5.

Edit: Does anyone feel up to writing this for me? I can handle the rest on my own, I'm pretty sure.
_________________
-ACagliano

Current Projects

Legend of Zelda. "Ganon's Rage"
51%
Back to top
tr1p1ea


Advanced Newbie


Joined: 23 Jul 2010
Posts: 57

Posted: 22 Apr 2012 10:30:14 pm    Post subject:

puCrunch will be something of interest. There are various implementations on ticalc.org.
Back to top
Tari


Systems Integrator


Joined: 03 Jul 2006
Posts: 2112
Location: Always-winter, Michigan

Posted: 22 Apr 2012 10:47:15 pm    Post subject:

LZF is conceptually very similar to LZ77-- I've been working on an implementation to target the prizm.

My goal with that is maximal compression, so it's very slow. I've been slowly improving the speed, though.
_________________


Ask questions the smart way · タリ
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.025858 seconds.