changeset 17455:1bb20b4c4082

Interleave index to ease per-need decoding.
author ods15
date Sun, 22 Jan 2006 05:57:46 +0000
parents f70d4718090e
children b8ce59172e6a
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 11 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Sun Jan 22 01:32:09 2006 +0000
+++ b/DOCS/tech/mpcf.txt	Sun Jan 22 05:57:46 2006 +0000
@@ -229,28 +229,29 @@
         syncpoint_pos_div8              v
     }
     for(i=0; i<stream_count; i++){
-        for(j=0; j<syncpoint_count; ){
+        for(j=0; j<syncpoints; ){
             x                           v
             type= x & 1
             x>>=1
+            n=j
             if(type){
                 flag= x & 1
                 x>>=1
                 while(x--)
-                    has_keyframe[j++][i]=flag
-                has_keyframe[j++][i]=!flag;
+                    has_keyframe[n++][i]=flag
+                has_keyframe[n++][i]=!flag;
             }else{
                 while(x != 1){
-                    has_keyframe[j++][i]=x&1;
+                    has_keyframe[n++][i]=x&1;
                     x>>=1;
                 }
             }
-        }
-        for(j=0; j<syncpoint_count; j++){
-            if (!has_keyframe[j++][i]) continue
-            A                           v
-            last_pts += A
-            keyframe_pts[j][i] = last_pts
+            for(; j<n && j<syncpoints; j++){
+                if (!has_keyframe[j][i]) continue
+                A                           v
+                last_pts += A
+                keyframe_pts[j][i] = last_pts
+            }
         }
     }
     reserved_bytes