[MPlayer-dev-eng] [PATCH] introducing -vf pretend (was: removing libmpcodecs/vf_rbg2bgr.c)

Attila Kinali attila at kinali.ch
Mon May 24 23:30:51 CEST 2010


Moin,

On Fri, 14 May 2010 00:40:16 +0200
Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:

> On Thu, May 13, 2010 at 09:54:28PM +0200, Attila Kinali wrote:
> > As with -vf yuy2, -vf rgb2bgr seems to be superceeded by sws a long
> > time ago.
> 
> Unfortunately no, there is no substitute for the "swap" option.
> Should be trivial to implement a filter to do that (it does not
> need to do any conversion or anything at all, just change the format),
> but it is something I needed only reasonably (for a device with buggy
> framebuffer driver).

Ok, here is a patch that introduces a pretend filter, that does
(almost) exactly what the swap option did. It is a bit more general
as it accepts any format parameter, not just from the RGB/BGR class.

To apply the patch, run first 
`svn cp libmpcodecs/vf_format.c libmpcodecs/vf_pretend.c` 
(yes, i was lazy).

			Attila Kinali

-- 
Why does it take years to find the answers to
the questions one should have asked long ago?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pretend-2010-05-24.diff
Type: text/x-diff
Size: 3295 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100524/6c45c992/attachment.diff>


More information about the MPlayer-dev-eng mailing list