User Tools

Site Tools


atrac3p:serialized_tone_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
atrac3p:serialized_tone_data [2010/08/01 13:59] – fix clone bits megadiscmanatrac3p:serialized_tone_data [2010/10/25 22:28] (current) – Fix tree name megadiscman
Line 48: Line 48:
  
 === 1: variable-length-encoded difference-to-master === === 1: variable-length-encoded difference-to-master ===
-The slave pitch is encoded as difference to the master pitch with the same tone index (if present) or the master tone with the highest index that is present, or, if there are no master tones at all, as difference to 0. Difference application wraps at 1024.+In each band, the slave pitches of all tones are encoded as difference to the master pitch with the same tone index in that band (if present) or the master tone with the highest index that is present, or, if there are no master tones at all, as difference to 0. Difference application wraps at 1024.
  
  
 ===== Tone Linking ===== ===== Tone Linking =====
-For the compression of level and phase information in the slave channel, tones in the slave channel are linked to tones in the master channel based on their pitch. The linking algorithm is like this:+For the compression of level information in the slave channel, tones in the slave channel are linked to tones in the master channel based on their pitch. The linking algorithm is like this:
  
   * Look for the tone(s) in the master channel which have the lowest absolute deviation in pitch from the current slave tone. If more than one tone with the same absolute deviation is found, pick the first one. If the absolute deviation in pitch is less then 8, link to that tone.   * Look for the tone(s) in the master channel which have the lowest absolute deviation in pitch from the current slave tone. If more than one tone with the same absolute deviation is found, pick the first one. If the absolute deviation in pitch is less then 8, link to that tone.
Line 115: Line 115:
 ==== Tone info header ==== ==== Tone info header ====
   * 1 bit: Chooses high-dynamic-range mode if set, low-dynamic-range mode if clear   * 1 bit: Chooses high-dynamic-range mode if set, low-dynamic-range mode if clear
-  * symbol from [[tone info trees#bands with tones tree]]: The number of bands tonal data is stored for minus 1 (so the symbols 0..15 mean 1..16 bands).+  * symbol from [[tone info trees#bands with tones tree]] (in the range 1..16 bands).
   * in two-channel substreams:   * in two-channel substreams:
     * 1 bit: If clear, never clone information from master to slave for any band otherwise     * 1 bit: If clear, never clone information from master to slave for any band otherwise
Line 205: Line 205:
 === Coding mode 1: variable-length encoding === === Coding mode 1: variable-length encoding ===
   * for each tone in each band:   * for each tone in each band:
-    * symbol from [[tone info trees#HDR level tree]. Add 20 to the symbol number to obtain the real level.+    * symbol from [[tone info trees#HDR level tree]].
  
 === Coding mode 2 (slave only): variable-lenght encoded difference to master === === Coding mode 2 (slave only): variable-lenght encoded difference to master ===
   * for each tone in each band:   * for each tone in each band:
-    * symbol from [[tone info trees#logarithmic level difference tree]. Use linked tone level or 34 (if not linked) as base.+    * symbol from [[tone info trees#HDR level difference tree]]. Use linked tone level or 34 (if not linked) as base.
  
 === Coding mode 3 (slave only): clone master === === Coding mode 3 (slave only): clone master ===
Line 227: Line 227:
 === Coding mode 1: variable-length encoding === === Coding mode 1: variable-length encoding ===
   * for each band:   * for each band:
-    * symbol from [[tone info trees#LDR band level tree]. Add **24** to the symbol number to obtain the real level.+    * symbol from [[tone info trees#LDR band level tree]]. Add **24** to the symbol number to obtain the real level.
  
 === Coding mode 2 (slave only): variable-lenght encoded difference to master === === Coding mode 2 (slave only): variable-lenght encoded difference to master ===
   * for each band:   * for each band:
-    * symbol from [[tone info trees#logarithmic level difference tress]. Use master band level or (if no tones in that band) **44** as base.+    * symbol from [[tone info trees#logarithmic level difference tress]]. Use master band level or (if no tones in that band) **44** as base.
  
 === Coding mode 3 (slave only): clone master === === Coding mode 3 (slave only): clone master ===
Line 250: Line 250:
   * for each band:   * for each band:
     * if that band has one tone:     * if that band has one tone:
-      * symbol from [[tone info trees#single-tone LDR level tree].+      * symbol from [[tone info trees#single-tone LDR level tree]].
     * otherwise for each tone in that band     * otherwise for each tone in that band
-      * symbol from [[tone info trees#LDR level tree].+      * symbol from [[tone info trees#LDR level tree]].
  
 === Coding mode 2 (slave only): variable-lenght encoded difference to master === === Coding mode 2 (slave only): variable-lenght encoded difference to master ===
   * for each tone in each band:   * for each tone in each band:
-    * symbol from [[tone info trees#HDR level difference tress]. Use linked tone level or 34 (if not linked) as base.+    * symbol from [[tone info trees#HDR level difference tree]]. Use linked tone level or 34 (if not linked) as base.
  
 === Coding mode 3 (slave only): clone master === === Coding mode 3 (slave only): clone master ===
atrac3p/serialized_tone_data.1280671185.txt.gz · Last modified: 2010/08/01 13:59 by megadiscman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki