Bad Apple 64
by Onslaught
By: Onslaught
Category: C64 - C64 Demo - Demo
Released on:June 29th, 2014
Remarks:Production and technical notes as below. The original untouched video had over 6000 unique frames running at 30fps The first step was to decimate these frames to around 2200 frames (This would result in the video having the same length if played back at 10fps) According to rough calculations, I decided to encode each set of 128 frames seperately. Each chunk of 128 frames would consist of individual graphic definitions and tile lookups together with the framepacked data. Each set of 128 frames were fed through my tile quantizer (2x2) 16x16 pixels which would generate 256 (optimum tiles in 16x16 pixels) As the whole sequence of frames is reduced to 256 16x16 tiles, there are only 1024 8x8 unique gfx occurrences in this data. This data is then fed through the 8x8 genetic/hill climbing vq encoder which results in the whole set of 128 frames only requiring 256 tiles. There is still the issue that each frame uses 1k in size. Luckily as this data was previously quantized using the 16x16 variant, the entire 128k of frame lookups can be reduced to 32k as there are only 256 unique 2x2 tiles in the frame definitions. The 2x2 lookups are extracted from the frame data (this takes up 1k) and the 128k (128 frames) converted to 32k with no loss in quality. The next stage is delta packing, I am using a bit delta variant. First frame is uncompressed 240 bytes. The next frames store only the differences. the indication on whether or not a 2x2 block has changed or not is determined by the 30 byte bit-buffer that skips or reads a lookup value. On average this 32k of data for this animation sequence gets packed to around 12k Semi uncompressed data that is used for each 128 frames is the following 2x2 tile lookup (1k) codebook (2k) compressedframes(approx 12k) Finally this entire chunk is lz packed resulting in the whole 128 bytes being packed to around 10k The decoder uses two main buffers. While playing back the 128 frames from one buffer, it loads the next set into the other buffer Decoder is running at 12frames per second (I could have optimized the decoder more - by also de-interleaving the 2x2 lookups for major speedup) but it worked fine as it is. Yes, quality does leave a lot to be desired, but I dont think much can be done in 60-70 bytes per frame (Although using vector plotting and filling would work for smooth simple area's (but eat on the frame rate) Objective was to include the sequence from beginning to end on a single disk side. And this has been achieved.
Rating:
n/a (Too few ratings)
Credits: Code
Algorithm of Onslaught
Graphics
Algorithm of Onslaught
Linking
Algorithm of Onslaught
Added: January 12th, 2021
Added by:Sabbi
Downloads:

badapple64.zipLegacy Download
Downloads: 227
Size: 176 kBytes

Show File-Contents

Emulate in Browser (Experimental)


Emulator-Settings:
 
 
Total Downloads:227