# HG changeset patch # User ods15 # Date 1137784255 0 # Node ID 81d2f40ce5d4c92d47b121c0bd357b9a11de3d3b # Parent e2f2a8ac648a9f894b80db10af7ed3e9a3be8bab change goals slightly.. max_index_distance removed index changed to combination of syncpoint index and pts for keyframes back_ptr changed - points to most correct keyframe, not most recent. max(last_dts) <= syncpoint timestamp <= min(future_pts) diff -r e2f2a8ac648a -r 81d2f40ce5d4 DOCS/tech/mpcf.txt --- a/DOCS/tech/mpcf.txt Fri Jan 20 19:06:28 2006 +0000 +++ b/DOCS/tech/mpcf.txt Fri Jan 20 19:10:55 2006 +0000 @@ -21,7 +21,7 @@ Compact ~0.2% overhead, for normal bitrates - index is <10kb per hour (1 keyframe every 3sec) + index is <100kb per hour a usual header for a file is about 100 bytes (audio + video headers together) a packet header is about ~1-5 bytes @@ -130,7 +130,6 @@ version v stream_count v max_distance v - max_index_distance v tmp_pts=0 tmp_mul=1 tmp_stream=0 @@ -224,12 +223,35 @@ index: index_startcode f(64) packet header - stream_id v max_pts v - index_length v - for(i=0; i>=1 + if(type){ + flag= x & 1 + x>>=1 + while(x--) + has_keyframe[j++][i]=flag + has_keyframe[j++][i]=!flag; + }else{ + while(x != 1){ + has_keyframe[j++][i]=x&1; + x>>=1; + } + } + } + for(j=0; j