aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale-example.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename swscale-example to swscale-test, to better reflect the intendedStefano Sabatini2010-01-271-260/+0
| | | | | | use of the program. Originally committed as revision 30439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Avoid more pointless tests, the input and output formats need to beStefano Sabatini2010-01-201-2/+2
| | | | | | | 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
* Make selfTest() perform tests where both the input and output formatsStefano Sabatini2010-01-191-0/+6
| | | | | | are supported, avoid pointless loops. Originally committed as revision 30377 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Add comment about the use of av_{malloc,free}.Ramiro Polla2010-01-191-0/+4
| | | | Originally committed as revision 30373 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: use av_malloc()Måns Rullgård2010-01-191-10/+11
| | | | | | | 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
* Split long line.Stefano Sabatini2010-01-181-1/+2
| | | | Originally committed as revision 30368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Convert int -> enum PixelFormat in doTest().Stefano Sabatini2010-01-181-1/+1
| | | | Originally committed as revision 30367 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert mistakenly commited hunk.Ramiro Polla2009-08-291-3/+2
| | | | Originally committed as revision 29585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale: Check for return values of malloc.Ramiro Polla2009-08-291-2/+6
| | | | Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Free memory used by input data.Ramiro Polla2009-08-291-0/+2
| | | | Originally committed as revision 29583 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Rename src->ref so as to not confuse with src being used in ↵Ramiro Polla2009-08-231-2/+2
| | | | | | doTest(). Originally committed as revision 29548 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Use SWS_BILINEAR instead of hardcoded value.Ramiro Polla2009-08-231-1/+1
| | | | Originally committed as revision 29547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix inconsistent indentation.Ramiro Polla2009-08-221-2/+2
| | | | Originally committed as revision 29545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Free initial swscale context, too. Avoids a valgrind warning.Reimar Döffinger2009-08-191-0/+1
| | | | Originally committed as revision 29538 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove useless casts of malloc return value.Reimar Döffinger2009-08-191-3/+3
| | | | Originally committed as revision 29537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Make selection of dstW, dstH, and flags more clear.Ramiro Polla2009-08-171-8/+12
| | | | Originally committed as revision 29527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics:Ramiro Polla2009-08-161-10/+14
| | | | | | | - 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
* swscale-example: Don't check for chroma planes in mono formats.Ramiro Polla2009-08-131-1/+6
| | | | Originally committed as revision 29511 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent.Ramiro Polla2009-08-131-2/+2
| | | | Originally committed as revision 29506 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Remove hack to end loop by setting variables to break.Ramiro Polla2009-08-131-13/+5
| | | | Originally committed as revision 29505 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Don't return random value from main().Ramiro Polla2009-08-131-1/+1
| | | | Originally committed as revision 29504 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: Check for Gray formats.Ramiro Polla2009-08-131-3/+9
| | | | Originally committed as revision 29503 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove dependency from swscale_internal.h to lavu/internal.h, it is no longerRamiro Polla2009-07-091-6/+10
| | | | | | | | | | | 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 cleaner pixel format information system exists. swscale-example.c is example code on how to use the library and therefore shouldn't rely on internal headers. Originally committed as revision 29415 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix compilation: #undef standard library functions that areDiego Biurrun2009-06-111-0/+6
| | | | | | forbidden within FFmpeg, but allowed in example code. Originally committed as revision 29354 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Testing RGB48 variants requires bigger stride in swscale-example.cKostya Shishkov2009-06-021-0/+4
| | | | Originally committed as revision 29343 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use correct PRId64 instead of "lld" in printf string, fixes compiler warnings.Reimar Döffinger2009-03-301-1/+1
| | | | Originally committed as revision 29107 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Initialize pointer arrays which may be freed before being initialized.Benoit Fouet2009-03-201-3/+3
| | | | Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Also test the alpha channel in swscale-exampleCédric Schieli2009-03-201-19/+22
| | | | Originally committed as revision 29013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Initialize *srcContext, *dstContext, *outContext to NULL, avoids the warnings:Diego Biurrun2009-03-191-2/+2
| | | | | | | | 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 libswscale/swscale-example.c:60: warning: 'srcContext' may be used uninitialized in this function Originally committed as revision 29008 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale-example: use LFG instead of random()Ramiro Polla2009-03-181-1/+5
| | | | Originally committed as revision 28993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove unnecessary emms Assembler instructions.Diego Biurrun2009-02-101-9/+0
| | | | Originally committed as revision 28518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert #undefining system functions, it is not necessary.Diego Biurrun2009-02-091-7/+0
| | | | Originally committed as revision 28502 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add config.h #include for ARCH_X86 definition.Diego Biurrun2009-02-091-0/+1
| | | | Originally committed as revision 28500 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add #undefs to reenable system functions that are normally forbidden in otherDiego Biurrun2009-02-091-0/+7
| | | | | | 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
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-141-2/+2
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 28311 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove rgb2rgb.h dependancy.Michael Niedermayer2008-10-271-6/+0
| | | | Originally committed as revision 27835 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Convert asm keyword into __asm__.Diego Pettenò2008-10-161-2/+2
| | | | | | | | | | | | | 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 requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 synta. Originally committed as revision 27778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove unused function fast_memcpy.Diego Biurrun2008-09-291-4/+0
| | | | Originally committed as revision 27673 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* cosmetics: indentationDiego Biurrun2008-09-291-6/+5
| | | | Originally committed as revision 27672 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert mistakely commited hunk.Michael Niedermayer2008-09-291-1/+1
| | | | Originally committed as revision 27671 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Print all cases that are tested, not just the ones that are bad.Michael Niedermayer2008-09-291-3/+1
| | | | Originally committed as revision 27670 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add fflush to prevent stdout & stderr from being mixed.Michael Niedermayer2008-09-041-0/+2
| | | | Originally committed as revision 27515 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use full path for #includes from another directory.Diego Biurrun2008-05-091-1/+1
| | | | Originally committed as revision 26702 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Relicense test/example files as LGPL with Michael's permission.Diego Biurrun2008-04-131-8/+8
| | | | Originally committed as revision 26429 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).Benoit Fouet2008-01-171-4/+4
| | | | Originally committed as revision 25780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove some useless parentheses.Benoit Fouet2008-01-171-1/+1
| | | | Originally committed as revision 25779 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove non cosmetic spaces inside parentheses.Benoit Fouet2008-01-171-2/+2
| | | | Originally committed as revision 25777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+1
| | | | Originally committed as revision 23722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* cosmetics attack, part II: Remove all tabs and prettyprint/reindent the code.Diego Biurrun2007-04-291-153/+153
| | | | Originally committed as revision 23173 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* cosmetics: Remove trailing whitespace.Diego Biurrun2007-04-261-15/+15
| | | | Originally committed as revision 23147 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale