[MPlayer-dev-eng] NUT index proposal
Michael Niedermayer
michaelni at gmx.at
Fri Jan 6 21:05:44 CET 2006
Hi
heres yet another idea for a compact index for nut, it combines several ideas
it doesnt store per stream pts but that could be added easily ...
syncpoint_count v
for(i=0; i<syncpoint_count; i++){
pos_div8_diff v
pts_diff v (stored as stream_id + n*pts_diff)
}
for(i=0; i<stream_count; i++){
for(j=0; j<syncpoint_count; ){
x v
type= x & 3
if(type & 1){
x>>=2;
while(x--)
has_keyframe[j++][i]=type & 2;
has_keyframe[j++][i]=type ^ 3;
}else{
while(x>3)[
x>>=1;
has_keyframe[j++][i]=x&1;
}
}
}
}
if the overhead of this is small enough which i belive it is then i see
no problem with accepting it
--
Michael
More information about the MPlayer-dev-eng
mailing list