comparison DOCS/tech/mpcf.txt @ 17531:c6ad2343ec16

EOR in index
author ods15
date Sat, 04 Feb 2006 08:52:35 +0000
parents 1de8f7a7ad32
children 724816ab19be
comparison
equal deleted inserted replaced
17530:04d6525d59d6 17531:c6ad2343ec16
1 ======================================== 1 ========================================
2 NUT Open Container Format DRAFT 20060120 2 NUT Open Container Format DRAFT 20060203
3 ======================================== 3 ========================================
4 4
5 5
6 6
7 Intro: 7 Intro:
247 } 247 }
248 } 248 }
249 for(; j<n && j<syncpoints; j++){ 249 for(; j<n && j<syncpoints; j++){
250 if (!has_keyframe[j][i]) continue 250 if (!has_keyframe[j][i]) continue
251 A v 251 A v
252 last_pts += A 252 if(!A){
253 keyframe_pts[j][i] = last_pts 253 A v
254 B v
255 eor_pts[j][i] = last_pts + A + B
256 }else
257 B=0
258 keyframe_pts[j][i] = last_pts + A
259 last_pts += A + B
254 } 260 }
255 } 261 }
256 } 262 }
257 reserved_bytes 263 reserved_bytes
258 checksum u(32) 264 checksum u(32)
555 indicates whether this stream has a keyframe between this syncpoint and 561 indicates whether this stream has a keyframe between this syncpoint and
556 the last syncpoint. 562 the last syncpoint.
557 563
558 keyframe_pts 564 keyframe_pts
559 The pts of the first keyframe for this stream in the region between the 565 The pts of the first keyframe for this stream in the region between the
560 2 syncpoints, in the stream's timebase. 566 2 syncpoints, in the stream's timebase. (EOR frames are also keyframes)
567
568 eor_pts
569 Coded only if EOR is set at the position of the syncpoint. The pts of
570 that EOR. EOR is unset by the first keyframe after it.
561 571
562 index_ptr 572 index_ptr
563 Length in bytes from the first byte of the index startcode to the first 573 Length in bytes from the first byte of the index startcode to the first
564 byte of the index_ptr. If there is no index, index_ptr MUST NOT be 574 byte of the index_ptr. If there is no index, index_ptr MUST NOT be
565 written. 575 written.