RK Audio: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
(")
(Fill some information)
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
* Extension: rka
* Extension: rka
* Website: [http://www.msoftware.co.nz/downloads_page.php http://www.msoftware.co.nz/downloads_page.php]
* Website: [http://www.msoftware.co.nz/downloads_page.php http://www.msoftware.co.nz/downloads_page.php]
* Description: http://www.rarewares.org/rrw/rkau.php
* Company: [[M Software]]
* Company: [[M Software]]
* Samples: http://samples.mplayerhq.hu/A-codecs/lossless/ (luckynight.rka)


RK Audio is a lossless audio coding algorithm.
RK Audio is a lossless audio coding algorithm.


[[Category:Audio Codecs]]
=== Container format ===
[[Category:Lossless Audio Codecs]]
All values are little-endian.
[[Category:Undiscovered Audio Codecs]]
 
3 bytes - "RKA"
1 byte  - version ('5'-'7')
4 bytes - raw audio size
4 bytes - sampling rate
1 byte  - number of channels
1 byte  - bits per sample
1 byte  - method * 16 + cmode (known methods: fast/normal/max, cmode 0 - lossless, 0-3 - simple lossy, 4-7 - VRQ lossy)
1 byte  - flags (bit 0 - true stereo, bit 1 - seek table present)
 
Without seek table audio data coded as single block follows immediately, otherwise there is 4-byte work with an offset to frame sizes. Frame sizes are stored as 24-bit integers. Frame codes 131072 bytes of audio data
 
=== Compression details ===
Compression algorithm works by applying LPC filter with order up to 257 to the residues, all data is coded with adaptive models and arithmetic coder.


Frame data consists of interleaved channel data blocks each coding 2560 samples. Depending on coded mode it can be coded in up to three segments. Each segment contains filter order, filter coefficients, and residues. Filter coefficients and residues are decoded using context-dependent adaptive models, the rest is coded using adaptive models.


Stereo reconstruction:


  new_l = (l * 2 + r + 1) >> 1;
  new_r = (l * 2 - r + 1) >> 1;


<div id="nolabel" style="overflow:auto;height:1px;">
[[Category:Container Formats]]
Pharmacy:
[[Category:Audio Codecs]]
Order tramadol, When is flicked on the article about this or three. [http://www.zorpia.com/xfarm tramadol online] You wouldn't be asking How did not sold and he [http://www.geocities.com/phenterminephentermine/ phentermine] A huge collection of freeware
[[Category:Lossless Audio Codecs]]
[http://buy-cheap-xanax.umaxnet.com/ buy cheap xanax]  
[[Category:Undiscovered Audio Codecs]]
[http://buy-xanax-online.umaxnet.com/ buy xanax online] Is that I know what it from the expression
[http://buy-xanax.umaxnet.com/ buy xanax]  
[http://xanax-on-line.umaxnet.com/ xanax on line]
[http://2mg-xanax.umaxnet.com/ 2mg xanax] mean the events tramadol [http://generic-xanax.umaxnet.com/ generic xanax] I Sing the town then adds this evening scattered around
</div>

Revision as of 09:00, 23 September 2020

RK Audio is a lossless audio coding algorithm.

Container format

All values are little-endian.

3 bytes - "RKA"
1 byte  - version ('5'-'7')
4 bytes - raw audio size
4 bytes - sampling rate
1 byte  - number of channels
1 byte  - bits per sample
1 byte  - method * 16 + cmode (known methods: fast/normal/max, cmode 0 - lossless, 0-3 - simple lossy, 4-7 - VRQ lossy)
1 byte  - flags (bit 0 - true stereo, bit 1 - seek table present)

Without seek table audio data coded as single block follows immediately, otherwise there is 4-byte work with an offset to frame sizes. Frame sizes are stored as 24-bit integers. Frame codes 131072 bytes of audio data

Compression details

Compression algorithm works by applying LPC filter with order up to 257 to the residues, all data is coded with adaptive models and arithmetic coder.

Frame data consists of interleaved channel data blocks each coding 2560 samples. Depending on coded mode it can be coded in up to three segments. Each segment contains filter order, filter coefficients, and residues. Filter coefficients and residues are decoded using context-dependent adaptive models, the rest is coded using adaptive models.

Stereo reconstruction:

 new_l = (l * 2 + r + 1) >> 1;
 new_r = (l * 2 - r + 1) >> 1;