Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: ACagliano on December 07, 2010, 06:38:35 pm

Title: RLE in Axe
Post by: ACagliano on December 07, 2010, 06:38:35 pm
Does anyone have, or can anyone help with routines that will compress tilemap data into RLE, and decompress it into regular hex for maps.
Title: Re: RLE in Axe
Post by: nemo on December 07, 2010, 06:39:24 pm
the routines can be found as links in this (http://ourl.ca/7818) thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.
Title: Re: RLE in Axe
Post by: Munchor on December 07, 2010, 06:41:31 pm
the routines can be found as links in this (http://ourl.ca/7818) thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.

0.25 you mean :S
Title: Re: RLE in Axe
Post by: ACagliano on December 07, 2010, 06:41:52 pm
thanks nemo. did u get my pm?
Title: Re: RLE in Axe
Post by: AngelFish on December 07, 2010, 06:44:20 pm
the routines can be found as links in this (http://ourl.ca/7818) thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.

0.25 you mean :S

I think he's using floating point notation ;)
Title: Re: RLE in Axe
Post by: nemo on December 07, 2010, 06:45:18 pm
i did, but i am unsure how to implement it right now. and i don't know how to implement bresenham's line algorithm soo i may have issues
Title: Re: RLE in Axe
Post by: ACagliano on December 07, 2010, 06:51:07 pm
I understand everything except assigning a size byte to the output file on a compression? How would I do that when the output file could be any size?
Title: Re: RLE in Axe
Post by: nemo on December 07, 2010, 07:25:34 pm
I understand everything except assigning a size byte to the output file on a compression? How would I do that when the output file could be any size?

i'm pretty sure there's a counter variable in there somewhere... it might be C (i generally use it for counters), so GetCalc("Str#",C*2) may work at the end. if that doesn't work i'll modify it