universal timestamp (= stream_id + timestamp in stream timebase)

-> simplify
add that thing to info packets as type too


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17797 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2006-03-10 14:10:07 +00:00
parent f25911feec
commit 7f157e2d58
1 changed files with 14 additions and 14 deletions

View File

@ -103,6 +103,10 @@ vb (variable length binary data or string)
length v length v
value b value b
t (v coded universal timestamp)
tmp v
stream_id= tmp % stream_count
value= (tmp / stream_count) * stream[ stream_id ].timebase
Bitstream syntax: Bitstream syntax:
@ -209,7 +213,7 @@ frame:
data data
index: index:
max_pts v max_pts t
syncpoints v syncpoints v
for(i=0; i<syncpoints; i++){ for(i=0; i<syncpoints; i++){
syncpoint_pos_div8 v syncpoint_pos_div8 v
@ -253,7 +257,7 @@ last 8 reserved_bytes of index:
info_packet: info_packet:
stream_id_plus1 v stream_id_plus1 v
chapter_id v chapter_id v
chapter_start v chapter_start t
chapter_len v chapter_len v
count v count v
for(i=0; i<count; i++){ for(i=0; i<count; i++){
@ -268,9 +272,12 @@ info_packet:
}else if (value==-3){ }else if (value==-3){
type= "s" type= "s"
value s value s
}else if (value<-3){ }else if (value==-4){
type= "t"
value t
}else if (value<-4){
type= "r" type= "r"
value.den= -value-3 value.den= -value-4
value.num s value.num s
}else{ }else{
type= "v" type= "v"
@ -278,10 +285,7 @@ info_packet:
} }
syncpoint: syncpoint:
coded_pts v global_key_pts t
stream = coded_pts % stream_count
global_key_pts = coded_pts/stream_count
back_ptr_div8 v
Complete definition: Complete definition:
@ -619,9 +623,7 @@ Index tags:
----------- -----------
max_pts max_pts
s = max_pts % stream_count The highest pts in the entire file
pts = max_pts / stream_count
The highest pts in the entire file in the timebase of stream 's' .
syncpoint_pos_div8 syncpoint_pos_div8
offset from begginning of file to up to 7 bytes before the syncpoint offset from begginning of file to up to 7 bytes before the syncpoint
@ -664,9 +666,7 @@ chapter_id
file file
chapter_start chapter_start
s= chapter_start % stream_count timestamp of start of chapter
timestamp= chapter_start / stream_count
timestamp of start of chapter in timebase of stream 's'.
chapter_len chapter_len
Length of chapter in same timebase of chapter_start. Length of chapter in same timebase of chapter_start.