[MPlayer-dev-eng] Re: Drop interlaced frames.
arpi at thot.banki.hu
Wed Sep 11 00:16:16 CEST 2002
> > >This requires a lot of unnecessary changes. A better approach would be
> > >to intercept VFCTRL_DRAW_OSD in your filter, and throw it away if the
> > >current frame was dropped. Otherwise pass it on to the next filter.
the goal of that change was to add a new feature: filters can drop the frame.
i like it, and i'm about commiting that part.
> > vf=sh_video->vfilter;
> > -vf->put_image(vf,mpi);
> > +if(!vf->put_image(vf,mpi))
> > + return 0;
> > vf->control(vf,VFCTRL_DRAW_OSD,NULL);
ye sthis looks betterm but teh time calculations shouldn't be dropped by
return 0, so i've chanegd it to
if(ret>0) draw osd
> Yes, but the subsequent code won't hurt if it gets executed. However,
> drawing the OSD multiple times on the same frame will be bad, since
> the alpha will get blended twice.
> I still think it's better not to
> change the return type of put_image....
any better idea about how to handle framedrop initiated by a filter or encoder?
A'rpi / Astral & ESP-team
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-dev-eng