English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 03 February 2023, 22:07   #41
smack
Registered User
 
Join Date: May 2020
Location: Germany
Posts: 20
Thanks for this link! I really like this QOA codec and its decidedly simple but effective design.


The author freely admits that it decodes slower than ADPCM.

As ross said, it's probably too much for the 68000, because it needs (at least) 4 muls per sample, see function
qoa_lms_predict
https://github.com/phoboslab/qoa/blob/master/qoa.h

Quote:
Like for other time domain codecs, the heart of QOA is in the prediction of the next sample. QOA uses a “sign-sign” Least Mean Squares Filter with 4 weights (“taps”). The prediction is simply the sum of the 4 weights multiplied with the 4 previous samples.
smack is offline  
Old 04 February 2023, 16:31   #42
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,122
Quote:
Originally Posted by ross View Post
Yes, it may be adapted but it definitely wouldn't be as fast as an ADPCM decoder.
From a quick look the only sticking point would be a multiplication per sample (data structures designed for 64-bit architectures can simply be redesigned).

For sure for a (fast?) 020+ machine.
This is why I went for the simpler ADPCM style with my first attempt: the decompression was just based on addition. The attempt to improve the quality was just to find the best N delta values and, along with an uncompressed starting sample make that the frame. In hindsight, it's debatable how good it was but it seemed ok at the time. It allowed me to decompress and mix a lot of stuff just on the fly. Back then I was a bit obsessed over the size of my 040 caches so what I used to do with anything steaming like this was to have a cache aligned workspace that I could move16 data into and out of, so that the caches aren't flooded.
Karlos is offline  
Old 05 February 2023, 14:18   #43
No.3
Registered User
 
Join Date: Sep 2022
Location: Switzerland
Posts: 114
Quote:
Originally Posted by Karlos View Post
... The attempt to improve the quality was just to find the best N delta values ...
Interesting approach, but makes the compression complicated i.e. it will need a lot of time?!

Anyway, at least for my ears, the exponential delta compression from the Aminet wavepak archive sounds far much better than the fibonacci delta compression.
No.3 is offline  
Old 05 February 2023, 15:45   #44
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,122
Quote:
Originally Posted by No.3 View Post
Interesting approach, but makes the compression complicated i.e. it will need a lot of time?!

Anyway, at least for my ears, the exponential delta compression from the Aminet wavepak archive sounds far much better than the fibonacci delta compression.
Compression time was ok at least on 040. Decompressing mattered a lot more to me at the time.
Karlos is offline  
Old 06 February 2023, 22:21   #45
smack
Registered User
 
Join Date: May 2020
Location: Germany
Posts: 20
Quote:
Originally Posted by Karlos View Post
Compression time was ok at least on 040. Decompressing mattered a lot more to me at the time.
Xtreme Quality IMA-ADPCM Encoder / Decoder - https://github.com/dbry/adpcm-xq

Another example of this "asymmetric" idea - compress once on a fast machine and then play even on old / slow machines.
smack is offline  
Old 25 March 2023, 23:36   #46
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
Just for fun I combined ADPCM, a bit of extra compression and ideas from http://eab.abime.net/showthread.php?...57#post1604757 to cram a 5 minute track onto a disk (only at 7813Hz though). In the zone as cigar_altmfm.adf.

It's a bit rough in places, but for what it's doing I think it's OK. Sample rate can be traded for length, so at 3 minutes you should able to get ~13KHz.
paraj is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressed filelist.txt jbl007 project.Amiga File Server 1 11 November 2017 22:54
fs-uae and cd32 compressed audio deejay support.FS-UAE 3 24 March 2014 20:17
ADF file compressed with RAR pucci support.WinUAE 5 16 October 2011 12:37
Compressed HDF saving BippyM request.UAE Wishlist 5 17 October 2005 23:12
Multi-Disk Compressed ADF? TheOutrider support.WinUAE 10 02 October 2003 10:44

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:57.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07526 seconds with 14 queries