Statistics
| Branch: | Revision:

ffmpeg / libswscale / swscale-example.c @ aa2ead82

History | View | Annotate | Download (8.26 KB)

# Date Author Comment
613f2dc4 01/20/2010 12:22 AM Stefano Sabatini

Avoid more pointless tests, the input and output formats need to be
supported both as input and as output, as the conversion performed is:
yuva420p -> src -> dst -> yuva420p.

Originally committed as revision 30379 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

731c04ad 01/19/2010 09:52 PM Stefano Sabatini

Make selfTest() perform tests where both the input and output formats
are supported, avoid pointless loops.

Originally committed as revision 30377 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9e5f164d 01/19/2010 03:42 PM Ramiro Polla

swscale-example: Add comment about the use of av_{malloc,free}.

Originally committed as revision 30373 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

51d83986 01/19/2010 03:47 AM Måns Rullgård

swscale-example: use av_malloc()

Image buffers require 16-byte alignment, so av_malloc() should be used.
Fixes crash on PPC.

Originally committed as revision 30369 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

2d8d885b 01/18/2010 11:34 PM Stefano Sabatini

Split long line.

Originally committed as revision 30368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

591e465a 01/18/2010 11:33 PM Stefano Sabatini

Convert int -> enum PixelFormat in doTest().

Originally committed as revision 30367 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

dd653355 08/29/2009 11:03 PM Ramiro Polla

Revert mistakenly commited hunk.

Originally committed as revision 29585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7248797c 08/29/2009 11:02 PM Ramiro Polla

swscale: Check for return values of malloc.

Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

111641a9 08/29/2009 03:36 AM Ramiro Polla

swscale-example: Free memory used by input data.

Originally committed as revision 29583 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

89fb9516 08/23/2009 08:31 PM Ramiro Polla

swscale-example: Rename src->ref so as to not confuse with src being used in doTest().

Originally committed as revision 29548 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7da35acd 08/23/2009 08:29 PM Ramiro Polla

swscale-example: Use SWS_BILINEAR instead of hardcoded value.

Originally committed as revision 29547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

a48ce2c3 08/22/2009 07:30 PM Ramiro Polla

Fix inconsistent indentation.

Originally committed as revision 29545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

64d39b7c 08/19/2009 08:21 AM Reimar Döffinger

Free initial swscale context, too. Avoids a valgrind warning.

Originally committed as revision 29538 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7b67bd92 08/19/2009 08:18 AM Reimar Döffinger

Remove useless casts of malloc return value.

Originally committed as revision 29537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6b052ba8 08/17/2009 02:06 AM Ramiro Polla

swscale-example: Make selection of dstW, dstH, and flags more clear.

Originally committed as revision 29527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

dd68318c 08/16/2009 09:11 PM Ramiro Polla

Cosmetics:
- Place curly brackets in the same line as while/for/if/switch/else/do;
- Place curly brackets at column 0 in the next line starting a function.

Originally committed as revision 29523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d426ea20 08/13/2009 06:39 PM Ramiro Polla

swscale-example: Don't check for chroma planes in mono formats.

Originally committed as revision 29511 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

475f3613 08/13/2009 01:18 PM Ramiro Polla

Indent.

Originally committed as revision 29506 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e55ed689 08/13/2009 11:48 AM Ramiro Polla

swscale-example: Remove hack to end loop by setting variables to break.

Originally committed as revision 29505 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d7cf0a6f 08/13/2009 11:34 AM Ramiro Polla

swscale-example: Don't return random value from main().

Originally committed as revision 29504 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f5a9c4ee 08/13/2009 11:33 AM Ramiro Polla

swscale-example: Check for Gray formats.

Originally committed as revision 29503 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

71ed6c8f 07/09/2009 02:27 AM Ramiro Polla

Remove dependency from swscale_internal.h to lavu/internal.h, it is no longer
needed for DECLARE_ALIGNED.
Remove dependency from swscale-example.c to swscale_internal.h by duplicating
the necessary code. The duplicated code is a hack and should be removed once a...

dc822901 06/11/2009 03:15 PM Diego Biurrun

Fix compilation: #undef standard library functions that are
forbidden within FFmpeg, but allowed in example code.

Originally committed as revision 29354 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

5d5a8813 06/02/2009 03:35 PM Kostya Shishkov

Testing RGB48 variants requires bigger stride in swscale-example.c

Originally committed as revision 29343 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

4ed88643 03/30/2009 12:23 PM Reimar Döffinger

Use correct PRId64 instead of "lld" in printf string, fixes compiler warnings.

Originally committed as revision 29107 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

1cd98da8 03/20/2009 04:29 PM Benoit Fouet

Initialize pointer arrays which may be freed before being initialized.

Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

110f147a 03/20/2009 02:17 PM Cédric Schieli

Also test the alpha channel in swscale-example

Originally committed as revision 29013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

54ea7736 03/19/2009 11:33 PM Diego Biurrun

Initialize *srcContext, *dstContext, *outContext to NULL, avoids the warnings:
libswscale/swscale-example.c:60: warning: 'outContext' may be used uninitialized in this function
libswscale/swscale-example.c:60: warning: 'dstContext' may be used uninitialized in this function...

9a034dde 03/18/2009 05:12 PM Ramiro Polla

swscale-example: use LFG instead of random()

Originally committed as revision 28993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

3d021dd6 02/10/2009 02:00 AM Diego Biurrun

Remove unnecessary emms Assembler instructions.

Originally committed as revision 28518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

945f7c6e 02/09/2009 08:31 PM Diego Biurrun

Revert #undefining system functions, it is not necessary.

Originally committed as revision 28502 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

516c5f88 02/09/2009 06:04 PM Diego Biurrun

Add config.h #include for ARCH_X86 definition.

Originally committed as revision 28500 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

84205e02 02/09/2009 06:01 PM Diego Biurrun

Add #undefs to reenable system functions that are normally forbidden in other
parts of FFmpeg but OK in this test program. Fixes the build.

Originally committed as revision 28499 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b63f641e 01/14/2009 12:13 AM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 28311 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b29e6551 10/27/2008 09:03 AM Michael Niedermayer

Remove rgb2rgb.h dependancy.

Originally committed as revision 27835 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7ad6469e 10/16/2008 01:34 PM Diego Pettenò

Convert asm keyword into asm.

Neither the asm() nor the asm() keyword is not part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without...

92ca9105 09/29/2008 06:06 AM Diego Biurrun

Remove unused function fast_memcpy.

Originally committed as revision 27673 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ed2164f3 09/29/2008 05:41 AM Diego Biurrun

cosmetics: indentation

Originally committed as revision 27672 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

8335a9f0 09/29/2008 01:15 AM Michael Niedermayer

Revert mistakely commited hunk.

Originally committed as revision 27671 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

0473e31f 09/29/2008 01:14 AM Michael Niedermayer

Print all cases that are tested, not just the ones that are bad.

Originally committed as revision 27670 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ae9e0e83 09/04/2008 03:13 PM Michael Niedermayer

Add fflush to prevent stdout & stderr from being mixed.

Originally committed as revision 27515 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

83da2c6f 05/09/2008 12:00 PM Diego Biurrun

Use full path for #includes from another directory.

Originally committed as revision 26702 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

54e3ae2e 04/13/2008 01:29 AM Diego Biurrun

Relicense test/example files as LGPL with Michael's permission.

Originally committed as revision 26429 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

1b0a4572 01/17/2008 03:49 PM Benoit Fouet

Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).

Originally committed as revision 25780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

8916b4b5 01/17/2008 11:07 AM Benoit Fouet

Remove some useless parentheses.

Originally committed as revision 25779 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e5091488 01/17/2008 08:57 AM Benoit Fouet

Remove non cosmetic spaces inside parentheses.

Originally committed as revision 25777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b19bcbaa 07/05/2007 10:18 AM Diego Biurrun

license header consistency cosmetics

Originally committed as revision 23722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

221b804f 04/29/2007 01:39 PM Diego Biurrun

cosmetics attack, part II: Remove all tabs and prettyprint/reindent the code.

Originally committed as revision 23173 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6a4970ab 04/26/2007 11:07 PM Diego Biurrun

cosmetics: Remove trailing whitespace.

Originally committed as revision 23147 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

26cdb9a2 04/26/2007 11:05 AM Marc Hoffman

Remove large automatics from stack.
patch by Marc Hoffman, mmh pleasantst com

Originally committed as revision 23117 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

3d6a30d9 11/01/2006 06:36 PM Diego Biurrun

Use common define for x86_32 and x86_64.

Originally committed as revision 20592 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d026b45e 10/07/2006 03:33 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program'.

Originally committed as revision 20100 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

632d8739 10/04/2006 01:54 PM Diego Biurrun

Fix warnings:
swscale-example.c:87: warning: implicit declaration of function 'sws_format_name'
swscale-example.c:214: warning: implicit declaration of function 'sws_rgb2rgb_init'

Originally committed as revision 20037 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

87656472 09/24/2006 09:55 AM Luca Abeni

Improve swscale-example to test conversions between all the possible
pixel formats

Originally committed as revision 19965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e9e12f0e 09/17/2006 03:15 PM Luca Abeni

Remove the dependency of libswscale on img_format.h

Originally committed as revision 19878 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

db3924f1 08/18/2006 01:58 PM Diego Biurrun

Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.

Originally committed as revision 19437 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

94c4def2 07/20/2006 12:13 PM Luca Abeni

Use libavutil in libswscale, and allow it to be built out of the mplayer tree

Originally committed as revision 19148 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

73435f00 06/30/2006 12:00 PM Luca Abeni

Move postproc ---> libswscale

Originally committed as revision 18866 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale