Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user jmi ! (Registered 2024-09-15) You are not logged in - nap
CSDb User Forums


Forums > C64 Pixeling > koala otpimizing
2007-03-08 02:41
Oswald

Registered: Apr 2002
Posts: 5074
koala otpimizing

Hi Everyone,

I know there's a c64 tool out there that helps with optimizing koala pictures for packing, but no idea what it is called. Anyone knows?:) Timanthes would do the job for me aswell with its nibble swapper tool, but is there a way to load/save a native c64 koala format picture with it ? *.prg doesnt works, what format does it expect to be .prg anyway ?:)
 
... 80 posts hidden. Click here to view all posts....
 
2024-04-05 19:38
soci

Registered: Sep 2003
Posts: 478
Packed what I did in the past with dali now and it's 7342, 5156 and 5984 respectively. Almost spot on.
2024-04-05 22:32
Sparta

Registered: Feb 2017
Posts: 42
Wow, fantastic achievement CJam! Would be interesting to see how differently “otpimized” versions of the same bitmap compress with koalacanner.

Quoting Burglar
I am not sure, for me cleanliness of the koala is the goal. Also, the better result may be because spot combines hi/lo nibbles in colorram, saving 500 bytes. I have no interest in that, I want to output standard format always. But, I could add a cli-flag for it...

SPOT doesn’t change the cleanliness of the koala and outputs standard koala but it can also create other formats such as the combined color RAM nibbles if that fits one’s needs better. :)

The goal with SPOT is to get as close to hand optimization as possible in a fraction of the time needed for the latter and in a way that can be added to a democoder’s toolchain.
2024-04-06 07:07
Burglar

Registered: Dec 2004
Posts: 1066
Quoting Sparta
SPOT doesn’t change the cleanliness of the koala and outputs standard koala but it can also create other formats such as the combined color RAM nibbles if that fits one’s needs better. :)

Yea, just tested myself as well and indeed, I was just hoping combined nibbles would be the main reason why I'm trailing behind :)

Quoting Fungus
pico 1.3+dali = 5980

Fungus Handiwork Wins! \o/
2024-04-06 09:56
ChristopherJam

Registered: Aug 2004
Posts: 1402
Quoting Krill
This sort of flips the table on the entire premise of optimising C-64 multicolour bitmaps for LZ-style compression.


Yes, it's inspired by the discussion, rather than a direct response to the question. I got a bit distracted :)

Quote:
If it only wasn't THAT slow to decode. =)


Yes, it's a bit impractical for 99% of use cases.


Quoting Sparta
Wow, fantastic achievement CJam! Would be interesting to see how differently “otpimized” versions of the same bitmap compress with koalacanner.


Cheers! FWIW at the moment the first phase of compression just sorts the non-background colours in numerical order and assigns them to bitpairs 1 to n. I could try and allow preserving of input bitpairs, but it would still need to be constrained to using the first m values, where m is the number of distinct colours - the second phase only outputs as many colour nybbles per char as are actually used. Oh, and it'd be a moderate amount of work at this stage too - the current implementation just uses a library call to load a koala into a 160x200 array of four bit values, so it doesn't currently have access to the original bitpairs..

I do need to see if it compresses any better if I sort the colours in luminance order instead - that might be better at dealing with images that use similar shading patterns with different local palettes in different parts of the image.

Nice work on Spot, btw - it actually answers Oswald's original question, and it's the second best option after putting a Fungus in every home :)
2024-04-06 10:00
Oswald

Registered: Apr 2002
Posts: 5074
I'm coming here for the 4th time, checked CJ's release also a few times, am I the only one not finding the info on what is the compression scheme in there ? :)
2024-04-06 10:31
ChristopherJam

Registered: Aug 2004
Posts: 1402
I just left a comment on the release with a rough outline.
2024-04-06 13:14
Fungus

Registered: Sep 2002
Posts: 668
Quote: Quoting Sparta
SPOT doesn’t change the cleanliness of the koala and outputs standard koala but it can also create other formats such as the combined color RAM nibbles if that fits one’s needs better. :)

Yea, just tested myself as well and indeed, I was just hoping combined nibbles would be the main reason why I'm trailing behind :)

Quoting Fungus
pico 1.3+dali = 5980

Fungus Handiwork Wins! \o/


Actually that one was S!R handywork.
2024-04-06 13:19
ChristopherJam

Registered: Aug 2004
Posts: 1402
Quote:
the second best option after putting a FungusS!R in every home
2024-04-08 10:09
Oswald

Registered: Apr 2002
Posts: 5074
Quote: I just left a comment on the release with a rough outline.

thanks:)
2024-04-08 18:19
Sparta

Registered: Feb 2017
Posts: 42
SPOT 1.3 WIP + Dali:
Untitled/Floris:            7343
Song of the Sunset/Mermaid: 5145
Short Circuit/Karen Davies: 5974

The total gain is 28 bytes. Not a lot, but at least it beats S!R's handywork. ;P
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
megasoftargentina
Nuckhead/Backbone So..
bugjam
rexbeng
Sychamis
d4ng3r
Mythus/Delysid
iceout/Avatar/HF
TheRyk/MYD!
REBEL 1/HF
algorithm
Freeze/Blazon
Guests online: 147
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Morph  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.2)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.04 sec.