[MPlayer-dev-eng] [PATCH] introducing -vf pretend (was: removing libmpcodecs/vf_rbg2bgr.c)
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Jun 5 19:58:43 CEST 2010
On Wed, May 26, 2010 at 06:59:14PM +0200, Reimar Döffinger wrote:
> > > Another minor annoyance is that it won't automatically select the "best" RGB/BGR
> > > format, however I think it's reasonable to ignore that.
> >
> > This could be actually solved by using classes of formats.
> > Ie, specify that the output is of type BGR and then select the
> > right one based on the given input type.
>
> Yes, on the other hand extending vf_format is a more flexible solution in principle,
> though it has a higher "shooting yourself in the foot" potential.
I applied a solution, however in hindsight a separate filter that only changes the
specified format and lets all others through might be a more flexible solution...
You could then get the old rgb2bgr behaviour with something (horrible) like
-vf noformat=yv12,noformat=yuyv,....,subst=rgb24:brg24,subst=rgb32:bgr32,....
More information about the MPlayer-dev-eng
mailing list