[FFmpeg-devel] Fwd: [PATCH] lavfi: add xbr filter

arwa arif arwaarif1994 at gmail.com
Fri Nov 7 18:38:54 CET 2014


On Fri, Nov 7, 2014 at 10:53 PM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> On Tue, Nov 04, 2014 at 12:26:27AM +0530, arwa arif wrote:
> > Okay. I would try to complete it by tomorrow.
>
> any news about this ?
> i know this isnt trivial to update to the other reference ...
>
>
> >
> > On Mon, Nov 3, 2014 at 8:02 PM, Stefano Sabatini <stefasab at gmail.com>
> wrote:
> >
> > > On date Monday 2014-11-03 12:09:50 +0530, arwa arif encoded:
> [...]
> > > So we have:
> > > C++, 2xBR v3.3b, LGPL
> > >
> > >
> http://sourceforge.net/p/paintown/code/HEAD/tree/trunk/src/util/graphics/sdl/xbr.cpp
> > >
> > > C++, 2xBR v3.3b, GPL
> > >
> > >
> https://github.com/yoyofr/iFBA/blob/master/fba_src/src/intf/video/scalers/xbr.cpp
> > >
> > > The former is clearly a copy&paste from the latter, so that should be
> > > used as reference.
> > >
> > > paintown code was relicensed to GPL with Hyllian's consent, so we
> > > should be able to do the same (if licensing is a concerns, which
> > > probably isn't for such a fringe filter).
> > >
> > > Algorithm description can be found here:
> > >
> > >
> https://web.archive.org/web/20140904180543/http://board.byuu.org/viewtopic.php?f=10&t=2248
> > >
> > > (note: it was down the last time I checked).
> > >
> > > NOTE: since both are games/emulators, I suppose it won't be easy to
> > > make them generate a reference output, so we should rely on comparing
> > > the output generated by the filter with some output found on the web.
> > >
> > > @arwa: are you willing to readapt your xbr filter to make use of
> > > Hyllian's code?
> > > --
> > > FFmpeg = Freak and Frightening Maxi Powered Enhancing Gangster
> > > _______________________________________________
> > > ffmpeg-devel mailing list
> > > ffmpeg-devel at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
>
>
I tried modifying the code. I have created a patch, but I am confused how
to do ALPHA_BLEND part without using float values. Currently I have
commented that part in the patch. In the reference code(
https://github.com/yoyofr/iFBA/blob/master/fba_src/src/intf/video/scalers/xbr.cpp),
they are actually doing ALPHA_BLEND with masks for 565 format. But, since
FFmpeg has RGB24 format, I am not able to get a way which would do the same
thing without float.


> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Good people do not need laws to tell them to act responsibly, while bad
> people will find a way around the laws. -- Plato
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-i-This-is-a-combination-of-2-commits.patch
Type: text/x-patch
Size: 14376 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141107/500253a8/attachment.bin>


More information about the ffmpeg-devel mailing list