[MPlayer-dev-eng] NUT pts/startcode optimization proposal

Michael Niedermayer michaelni at gmx.at
Tue May 4 02:08:02 CEST 2004


Hi

On Monday 03 May 2004 22:15, Ville Saari wrote:
> On Sun, May 02, 2004 at 02:57:18PM -0400, D Richard Felker III wrote:
> > >From the nut spec:
> >
> > coded_timestamp
> >         if coded_timestamp < (1<<msb_timestamp_shift) then its a
> >         lsb timestamp, otherwise its a full timestamp +
> > (1<<msb_timestamp_shift) lsb timestamps are converted to full timesamps
> > by:
> >         mask = (1<<msb_timestamp_shift)-1;
> >         delta= last_timestamp - mask/2
> >         timestamp= ((timestamp_lsb-delta)&mask) + delta
> >         a full timestamp must be used if there is no reference timestamp
> >         available after the last frame_startcode with the current
> > stream_id
>
> Is there some reason for the definition of the lsb timestamps to be so
> complicated? 
yes, error recovery, if last_timestamp is wrong by a small value lsb 
timestamps will result in the correct timestamp, delta wont

-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list