[MPlayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.132,1.133

Michael Niedermayer CVS syncmail at mplayerhq.hu
Fri Mar 10 15:10:10 CET 2006


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var2/tmp/cvs-serv18666

Modified Files:
	mpcf.txt 
Log Message:
universal timestamp (= stream_id + timestamp in stream timebase)
-> simplify
add that thing to info packets as type too


Index: mpcf.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/mpcf.txt,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- mpcf.txt	10 Mar 2006 13:54:39 -0000	1.132
+++ mpcf.txt	10 Mar 2006 14:10:07 -0000	1.133
@@ -103,6 +103,10 @@
     length                              v
     value                               b
 
+t (v coded universal timestamp)
+    tmp                                 v
+    stream_id= tmp % stream_count
+    value= (tmp / stream_count) * stream[ stream_id ].timebase
 
 
 Bitstream syntax:
@@ -209,7 +213,7 @@
     data
 
 index:
-    max_pts                             v
+    max_pts                             t
     syncpoints                          v
     for(i=0; i<syncpoints; i++){
         syncpoint_pos_div8              v
@@ -253,7 +257,7 @@
 info_packet:
     stream_id_plus1                     v
     chapter_id                          v
-    chapter_start                       v
+    chapter_start                       t
     chapter_len                         v
     count                               v
     for(i=0; i<count; i++){
@@ -268,9 +272,12 @@
         }else if (value==-3){
             type= "s"
             value                       s
-        }else if (value<-3){
+        }else if (value==-4){
+            type= "t"
+            value                       t
+        }else if (value<-4){
             type= "r"
-            value.den= -value-3
+            value.den= -value-4
             value.num                   s
         }else{
             type= "v"
@@ -278,10 +285,7 @@
     }
 
 syncpoint:
-    coded_pts                           v
-    stream = coded_pts % stream_count
-    global_key_pts = coded_pts/stream_count
-    back_ptr_div8                       v
+    global_key_pts                      t
 
             Complete definition:
 
@@ -619,9 +623,7 @@
 -----------
 
 max_pts
-    s = max_pts % stream_count
-    pts = max_pts / stream_count
-    The highest pts in the entire file in the timebase of stream 's' .
+    The highest pts in the entire file
 
 syncpoint_pos_div8
     offset from begginning of file to up to 7 bytes before the syncpoint
@@ -664,9 +666,7 @@
     file
 
 chapter_start
-    s= chapter_start % stream_count
-    timestamp= chapter_start / stream_count
-    timestamp of start of chapter in timebase of stream 's'.
+    timestamp of start of chapter
 
 chapter_len
     Length of chapter in same timebase of chapter_start.




More information about the MPlayer-cvslog mailing list