[MPlayer-dev-eng] Do decoders have a stream ?

Arpi arpi at thot.banki.hu
Wed Aug 27 11:07:15 CEST 2003


Hi,

> On Wed, 27 Aug 2003 09:29:28 +0200
> Arpi <arpi at thot.banki.hu> wrote:
> > > So what about implementing decoding ahead in one process into G2 ;-)
> > 
> > cannot be done unless your hardware supports timed display of frames
> 
> Huh, cannot be done? =)
> I'm not an expert on the subject, but wouldn't it be possible to have
> a goal of always keeping an adjustable number of frames decoded in 
> separate fifos for {video|audio|sub|whatever}, and let the "regular" 
> timer loop decide when to display? (replace with hardware dependent 
> timing code when available)  Then prioritize to fill up the audio 
> fifo first. And then you have the framedropping, it's done ahead of 
> time when the video fifo is filled up.

this can be done, but what is the use of it?
the goal of decoding ahead is to use the time now spent in sleep() to
decode next frame(s). and it's coming from definition that you need 2
threads (one for display frame from fifo at the right time, can be done by
some hw, and one for decoding the frames (filling the fifo)).


A'rpi / Astral & ESP-team

--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list