Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / ~4 to 1 losseless compression

Author
Message
Programmer X
17
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 14th Jan 2015 23:12
Is there a way to simplify this algorithm?

XXX

Attachments

Login to view attachments
Programmer X
17
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 14th Jan 2015 23:27
I then plan to take the triplets of values and preform the compression on similarly large terms.

XXX
Sasuke
19
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 15th Jan 2015 14:03
Oooooh something new to learn. Can I ask what is losseless compression and it's needs cause it would really help in understanding that code

"Get in the Van!" - Van B
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 15th Jan 2015 17:59
loss less compression algorithms take an input stream of raw data and are able to represent that stream in a reduced form. The key point, is the compress data can be exploded back to it's original form exactly. ZIP, PNG are examples of every day routines, but there's lots of lots of them there !

lossy compression algo's are conceptually the same idea, they take some input data, and work out a way to represent that data in less bytes. The key difference in lossy decompression is it's not imperative that the output data be an perfect match of the original input. Making them not suitable for packing EXE's files or an text file, but can be very effective with Images / Video / Sound & data sets. (JPG,Mp3 etc etc)

Mdj
13
Years of Service
User Offline
Joined: 11th Mar 2012
Location: The Shire
Posted: 27th Jan 2015 08:53
I can't tell you Programmer X if you can simplify this. But I am interested how this works.

Login to post a reply

Server time is: 2025-05-11 11:30:47
Your offset time is: 2025-05-11 11:30:47