From a940c02890392b1ec22744b1855d76d5cb9f02a6 Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 9 Aug 2002 00:09:58 +0000 Subject: [PATCH] commit changes and typos as found by Eric Kruus svn path=/trunk/vorbis/; revision=3770 --- doc/helper.html | 12 ++++---- doc/vorbis-spec-codebook.html | 64 +++++++++++++++++++++++-------------------- doc/vorbis-spec-floor1.html | 8 +++--- doc/vorbis-spec-intro.html | 2 +- doc/vorbis-spec-ref.html | 20 +++++++------- 5 files changed, 56 insertions(+), 50 deletions(-) diff --git a/doc/helper.html b/doc/helper.html index 5996485..53b52f9 100644 --- a/doc/helper.html +++ b/doc/helper.html @@ -6,24 +6,24 @@ Ogg Vorbis I format specification: helper equations -Last update to this document: July 18, 2002

+Last update to this document: August 8, 2002

Overview

The equations below are used in multiple places by the Vorbis codec specification. Rather than cluttering up the main specification -documents, they are defined here and linked int he main documents +documents, they are defined here and linked in the main documents where appropriate.

ilog

-The "ilog(x)" function returns the highest set bit in the two's complement integer value +The "ilog(x)" function returns the position number (1 through n) of the highest set bit in the two's complement integer value [x]. Values of [x] less than zero are defined to return zero.
   1) [return_value] = 0;
-  2) if ( [x] is greater than nonzero ){
+  2) if ( [x] is greater than zero ){
       
        3) increment [return_value];
        4) logical shift [x] one bit to the right, padding the MSb with zero
@@ -56,8 +56,8 @@ host-native floating point number.

   1) [mantissa] = [x] bitwise AND 0x1fffff (unsigned result)
   2) [sign] = [x] bitwise AND 0x80000000 (unsigned result)
-  3) [exponent] = ( [x] bitwise AND 0x7fe00000) shifted left 21 bits (unsigned result)
-  4) if ( [mantissa] is nonzero ) then negate [mantissa]
+  3) [exponent] = ( [x] bitwise AND 0x7fe00000) shifted right 21 bits (unsigned result)
+  4) if ( [sign] is nonzero ) then negate [mantissa]
   5) return [mantissa] * ( 2 ^ ( [exponent] - 788 ) )
 
diff --git a/doc/vorbis-spec-codebook.html b/doc/vorbis-spec-codebook.html index ad69f57..4dee871 100644 --- a/doc/vorbis-spec-codebook.html +++ b/doc/vorbis-spec-codebook.html @@ -6,7 +6,7 @@ Ogg Vorbis I format specification: probability model and codebooks -Last update to this document: July 16, 2002
+Last update to this document: August 8, 2002

Overview

@@ -68,10 +68,11 @@ byte 8: [ X ] [ordered] (1 bit)
-We now read the list of codeword lengths; each entry (numbering a -total of [codebook_entries]) is assigned a codeword length. However, -decode of lengths is according to whether the [ordered] flag is -set or unset. +Each entry, numbering a +total of [codebook_entries], is assigned a codeword length. +We now read the list of codeword lengths and store these lengths in +the array [codebook_codeword_lengths]. Decode of lengths is +according to whether the [ordered] flag is set or unset.