[FFmpeg-devel] [PATCH] swscale-example: Implement get_stride() helper function.

Ramiro Polla ramiro.polla
Mon Jan 18 00:38:17 CET 2010

On Sat, Sep 12, 2009 at 5:36 PM, Ramiro Polla <ramiro.polla at gmail.com> wrote:
> Attached files NOT FOR REVIEW.
> On Sun, Aug 23, 2009 at 6:09 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> On Sun, Aug 23, 2009 at 05:41:41PM -0300, Ramiro Polla wrote:
>>> On Sun, Aug 23, 2009 at 12:33 AM, Michael Niedermayer<michaelni at gmx.at> wrote:
>>> As another option I think we should add another code as
>>> swscale-example, and turn this one into a regression suite (and not
>>> make it depend on lavc). This code does far more than a simple example
>>> would need, and far less in terms of options (no flags are explained,
>>> etc...). I have a simple swscale example that uses AVFrame and outputs
>>> a png (easy to see the result). What do you think?
>> can i see the code?
> It has been rewritten and incremented many times over the past few
> weeks and it's no longer simple. I know this could probably be made
> with ffmpeg.c and avfilters but in one file it's simpler and easier to
> add more stuff. Should I make any effort to get this into FFmpeg svn
> or would it be best to just keep it in SoC svn?
>> btw, the format we want as output is a raw format with header createable
>> with a single printf() for a swscale example
> Any suggestion for a simple format to implement? Something in XML? =)

New patch (still not for review) for the tool I've been using to test swscale.

For example to see the current abgr <-> bgra failures, run:
./swscale-test -i ../../input.avi -sws_flags neighbor+print_info
-pix_fmt abgr -scale -pix_fmt bgra -scale -pix_fmt bgr24 -scale -o

and the output is black!

I think these kind of tests would eventually be replaced by lavfilter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale_test.diff
Type: text/x-diff
Size: 22924 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100117/a2281d9e/attachment.diff>

More information about the ffmpeg-devel mailing list