changeset 21278:32dbc205ba34

rename all *_nom (nominator) to the correct *_num (numerator)
author ivo
date Sun, 26 Nov 2006 22:50:47 +0000
parents 0603972f083c
children 9040bce9f768
files DOCS/tech/nut.txt
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/nut.txt	Sun Nov 26 22:49:27 2006 +0000
+++ b/DOCS/tech/nut.txt	Sun Nov 26 22:50:47 2006 +0000
@@ -237,9 +237,9 @@
     max_distance                        v
     time_base_count                     v
     for(i=0; i<time_base_count; i++)
-        time_base_nom                   v
+        time_base_num                   v
         time_base_denom                 v
-        time_base[i]= time_base_nom/time_base_denom
+        time_base[i]= time_base_num/time_base_denom
     tmp_pts=0
     tmp_mul=1
     tmp_stream=0
@@ -290,7 +290,7 @@
         sample_height                   v
         colorspace_type                 v
     }else if(stream_class == audio){
-        samplerate_nom                  v
+        samplerate_num                  v
         samplerate_denom                v
         channel_count                   v
     }
@@ -495,14 +495,14 @@
     the id values used are the same as in avi, so if a codec uses a specific
     fourcc in avi then the same fourcc MUST be used here
 
-time_base_nom (v) / time_base_denom (v) = time_base
+time_base_num (v) / time_base_denom (v) = time_base
     the length of a timer tick in seconds, this MUST be equal to the 1/fps
     if FLAG_FIXED_FPS is set
-    time_base_nom and time_base_denom MUST NOT be 0
-    time_base_nom and time_base_denom MUST be relatively prime
+    time_base_num and time_base_denom MUST NOT be 0
+    time_base_num and time_base_denom MUST be relatively prime
     time_base_denom MUST be < 2^31
     examples:
-        fps       time_base_nom    time_base_denom
+        fps       time_base_num    time_base_denom
         30        1                30
         29.97     1001             30000
         23.976    1001             24000
@@ -517,10 +517,10 @@
     To switch from 2 different timebases, the following calculation is
     defined:
 
-    ln        = from_time_base_nom*to_time_base_denom
+    ln        = from_time_base_num*to_time_base_denom
     sn        = from_timestamp
     d1        = from_time_base_denom
-    d2        = to_time_base_nom
+    d2        = to_time_base_num
     timestamp = (ln/d1*sn + ln%d1*sn/d1)/d2
     Note: this calculation MUST be done with unsigned 64 bit integers, and
     is equivalent to (ln*sn)/(d1*d2) but this would require a 96bit integer
@@ -711,7 +711,7 @@
     17    ITU Rec 624 / ITU Rec 601 Y range:  0..255 Cb/Cr range:  0..255
     18    ITU Rec 709               Y range:  0..255 Cb/Cr range:  0..255
 
-samplerate_nom (v) / samplerate_denom (v) = samplerate
+samplerate_num (v) / samplerate_denom (v) = samplerate
     the number of samples per second, MUST NOT be 0
 
 crc32 checksum