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.

Geek Culture / how do you make your own compression

Author
Message
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 23rd Jan 2005 12:35
software?, can you do it in darkbasic?

Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 23rd Jan 2005 12:37
Yes.

File commands...

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 23rd Jan 2005 12:46 Edited at: 23rd Jan 2005 12:46
well i mean what commands would i need, and how would i make the compression algorithm, also i am using dbc


p.s. sorry if thats a little much

Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 23rd Jan 2005 16:41
Look up any old algorithm in Google. As long as you can get a math equation you can do it in DB.


--[GameBasic - Coming Soon]-- ^^^ banner generously designed by TheBigBabou
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Jan 2005 18:48
Easiest way is run length encoding (RLE).

Say you have a stream of data like so:


111159333377777777755666624

That could be expressed as

411519439725361214

That is:

4 1's
1 5
1 9

etc.

Basically store the number of repeated values, then the actual value, so when the program reads it in you canrecreate the data without having every value. It works best for images with big block colour sections.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 23rd Jan 2005 19:53
Somewhat like the PNG compression.


"Computers are useless, they can only give you answers."
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Jan 2005 20:24
Cept PNG has a failsafe method so if the image is very complex, it won't try and compress huge parts it can't.

CURRENT PROJECT: Chaos Hizzle Demo
STATUS: Release of BETA imminent!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 24th Jan 2005 01:30
Thats very clever.


http://www.dbspot.com/NYC
New years competition... Fo Shizzle.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 27th Jan 2005 23:56
PNG *RULES*

Have you ever used the PNG codec in the Quicktime MOV format? That was the one reason I asked if DBC supported MOV files...

Avatar - white cat in a snowstorm. Look closely.

Login to post a reply

Server time is: 2024-11-13 19:19:18
Your offset time is: 2024-11-13 19:19:18