[MPlayer-dev-eng] [PATCH] introducing -vf pretend

Reinhard Tartler siretart at tauware.de
Mon Jun 7 10:31:57 CEST 2010


On Sa, Jun 05, 2010 at 19:58:43 (CEST), Reimar Döffinger wrote:

> 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,....

thanks a lot!

does this mean that libmpcodecs/vf_rgb2bgr.c can be removed now?


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4



More information about the MPlayer-dev-eng mailing list