Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > CSAM Animation/Image quantizer - test version
2007-01-02 09:51
algorithm

Registered: May 2002
Posts: 705
CSAM Animation/Image quantizer - test version


A preview and unfinished version of the Char Selection and Matching (CSAM) image quantizer is now ready for download

This tool creates (or tries to create) an optimal selection of 4x8 char blocks by analysing the image.
the user has control over the threshold of character selection allowing the image to use less characters or more.

It is also possible to add character data to previous char data.

for example, an image can be loaded, the threshold can be adjusted so that around a quarter of the
256 character blocks are used, then another image (or frame) can be loaded and characters appended to the
definitions

There are a lot of features currently missing from this preview. more notably the manual selection of char blocks as well as the activemovie component which allows video to be imported and converted + the multiframe comparison.

any comments, critisisms and info are welcome

download it from

http://www.naveedkhugiani.com/CSAMquantizer.exe
2007-01-02 10:10
Raf

Registered: Nov 2003
Posts: 343
Good stuff! will it be difficult to play a prepared movie on c64 ? will it be possible to play movies like on pc - taking care only about differences between picture frames? (I guess it will be only faster or so if less that 1/3 content of screen changes among 2 frames...)

www.vulture.c64.org
2007-01-02 10:12
Scout

Registered: Dec 2002
Posts: 1570
Good work!

I guess we get an tsunami of FMV video demo's now :)
2007-01-02 10:20
algorithm

Registered: May 2002
Posts: 705
RAF: Unpacked, each frame is essentially a character map (0-256) pointing to the charblocks, 40x25 in size (1000 bytes). The PC preprocessor is similar to the cinepak codec in windows in someways which essentially works in a similar way (eg bytes point to a codebook containing selected small blocks (4x4, 8x8 etc) of the picture. The only thing which is massively different is the selection and matching of characters. There is still huge room for improvement in the matching and selection routine.

to pack in even more frames, the 40x25 maps can be compared with each other and only the differences stored, etc and then additionally packed, etc. its down to the coder to decide whether to unpack on the fly or to depack a stream of 1k 40x25 definitions
2007-01-02 10:53
Oswald

Registered: Apr 2002
Posts: 5094
some kind of batch processing is missing. e.g. one could set a base filename, and a 0 padded index with lower and upper bound. (filenamein001.in -> filenameout001.out). Maybe I'm missing something but for me nothing happens when I press process. also a dither mode which only allows abab aaaa or bbbb pattern feels like could improve pack ratio. Will be a great tool if finished.

edit: ok I got it now how the process button wox :)
2007-01-02 10:59
algorithm

Registered: May 2002
Posts: 705
Oswald: Batch processing to follow, as well as importing of movies, selecting the frames and automatic conversion.

Before the process button can be used, characters have to be placed into the codebook 'new codebook' by using the new codebook option. The program at its stage now only works on individual frames. (for multiple frames, you would need to use a tool to save each frame as a bitmap or jpeg. for analysis of other frames, you may use the 'append to codebook' etc.

to do:
automatic frame saving and video loading.
multiple frame analysis.
data packing
other dither methods to improve pack rate
manual character selection. useful for selecting important areas of the video such as eyes, nose, edges etc etc
2007-01-02 11:11
Oswald

Registered: Apr 2002
Posts: 5094
I'd be interested in the algo u use, or if u have a few links I'd be thankful aswell :)

btw, somehow you should weigh for chars that are used often, It loves to miss monocolor areas (when in undithered mode) for some other chars.
2007-01-02 11:35
Steppe

Registered: Jan 2002
Posts: 1510
We'll get a shitload of porn conversions now. Hooray! \o/
2007-01-02 11:52
algorithm

Registered: May 2002
Posts: 705
the algo is based on vector quantisation. but uses my own analysing and selection.

the concept for single images is extremely straightforward. combinations are placed in the codebook, each block in the dithered image is then compared with the codebook, difference based errors are analysed, and other combinations are entered / replaced into the codebook until less errors are encountered.

multiple frame analysis uses grabs image chunk data from various frames until the majority of the frames in total produce less errors. Look up 'vector quantisation' or cinepak for more info
2007-01-02 11:53
algorithm

Registered: May 2002
Posts: 705
oswald: True, the routine concentrates mainly on complex areas of the image. very easy to implement. only have to perform a histogram on which char blocks are mainly repeated and to input this into the code table, and then to continue with the usual codetable selection or /and to manually select char blocks if required until the result looks better
2007-01-02 14:10
Raf

Registered: Nov 2003
Posts: 343
well.. this way there will be possibility to play realtime video with sampled sound - all streamed on fast device like ide64 ... nice :)

www.vulture.c64.org
 
... 9 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
HCL/Booze Design
JEZ
Pantaloon/Fairlight
Freeze/Blazon
.jetan/AI-supported ..
psych
Sulevi/Virtual Dreams
sln.pixelrat
E$G/HF ⭐ 7
Guests online: 138
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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