Ramiro Polla
8d88402013
swscale-test: add CRC output
...
Originally committed as revision 31982 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
a4fc3bd533
indent
...
Originally committed as revision 31949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
06c93cb705
swscale-test: get strides using av_fill_image_linesizes() from libavcore
...
Originally committed as revision 31948 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
e07b1939e5
swscale-test: merge declaration and initialization
...
Originally committed as revision 31879 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
73016d29c9
swscale-test: scale from reference to source only once for each algorithm
...
Originally committed as revision 31777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
be1c5d35cc
indent
...
Originally committed as revision 31776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
da78053af0
swscale-test: change order tests are run, maintaining the same algorithm for
...
sequential geometries instead of running all algorithms sequentially for each
geometry.
Originally committed as revision 31775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
9bb9875eb7
swscale-test: use only 3 characters to print width/height since they're always
...
smaller than 1000
Originally committed as revision 31771 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
b6f1e7ec44
swscale-test: print test name before running test, so that it's available in
...
the output even if the test crashes.
Originally committed as revision 31770 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
67e1d52783
swscale-test: allocate more memory to prevent scalers from writing out of bounds
...
Some converters (ie. unscaled rgb24 -> argb) may write some bytes out of
bounds. Ideally the converters should be fixed, but in the meantime we allocate
more memory to prevent heap corruption.
Originally committed as revision 31768 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
92bfd7461c
swscale-test: use av_pix_fmt_descriptors[].name directly
...
Originally committed as revision 31759 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
91cfeac668
Revert r30825, it was not supposed to be committed.
...
127.32L to me, beware when using git svn dcommit for committing stuff
to svn...
Originally committed as revision 30827 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
3fec44c640
Make swscale-test take in input the name of the input and the output
...
format.
Make swscale-test only perform the test from the input to the output
format rather than perform all.
Also implement swscale-test-all.sh, for performing all the tests.
Improve flexibility of the swscale-test tool, this way is simpler to
perform only a subset of tests.
Originally committed as revision 30825 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
7dac0c4379
Fix randomness of the swscale-test output.
...
See the thread:
Subject: [FFmpeg-devel] [RFC] Make swscale-test perform only one convertion
Date: Fri, 29 Jan 2010 01:52:23 +0100
Originally committed as revision 30457 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
b51de6d8c7
Rename swscale-example to swscale-test, to better reflect the intended
...
use of the program.
Originally committed as revision 30439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
613f2dc4ae
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
15 years ago
Stefano Sabatini
731c04ad65
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
15 years ago
Ramiro Polla
9e5f164dc1
swscale-example: Add comment about the use of av_{malloc,free}.
...
Originally committed as revision 30373 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
51d83986b1
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
15 years ago
Stefano Sabatini
2d8d885b06
Split long line.
...
Originally committed as revision 30368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
591e465acf
Convert int -> enum PixelFormat in doTest().
...
Originally committed as revision 30367 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
dd653355fa
Revert mistakenly commited hunk.
...
Originally committed as revision 29585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
7248797c03
swscale: Check for return values of malloc.
...
Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
111641a97a
swscale-example: Free memory used by input data.
...
Originally committed as revision 29583 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
89fb9516af
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
15 years ago
Ramiro Polla
7da35acdab
swscale-example: Use SWS_BILINEAR instead of hardcoded value.
...
Originally committed as revision 29547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
a48ce2c3a7
Fix inconsistent indentation.
...
Originally committed as revision 29545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Reimar Döffinger
64d39b7c76
Free initial swscale context, too. Avoids a valgrind warning.
...
Originally committed as revision 29538 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Reimar Döffinger
7b67bd92f4
Remove useless casts of malloc return value.
...
Originally committed as revision 29537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
6b052ba88f
swscale-example: Make selection of dstW, dstH, and flags more clear.
...
Originally committed as revision 29527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
dd68318cee
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
15 years ago
Ramiro Polla
d426ea20c9
swscale-example: Don't check for chroma planes in mono formats.
...
Originally committed as revision 29511 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
475f361308
Indent.
...
Originally committed as revision 29506 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
e55ed689a2
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
15 years ago
Ramiro Polla
d7cf0a6ff7
swscale-example: Don't return random value from main().
...
Originally committed as revision 29504 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
f5a9c4ee50
swscale-example: Check for Gray formats.
...
Originally committed as revision 29503 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
71ed6c8f06
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
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
16 years ago
Diego Biurrun
dc8229015c
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
16 years ago
Kostya Shishkov
5d5a8813fc
Testing RGB48 variants requires bigger stride in swscale-example.c
...
Originally committed as revision 29343 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Reimar Döffinger
4ed886430c
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
16 years ago
Benoit Fouet
1cd98da820
Initialize pointer arrays which may be freed before being initialized.
...
Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
110f147a85
Also test the alpha channel in swscale-example
...
Originally committed as revision 29013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
54ea773614
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
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
16 years ago
Ramiro Polla
9a034dde8b
swscale-example: use LFG instead of random()
...
Originally committed as revision 28993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
3d021dd6eb
Remove unnecessary emms Assembler instructions.
...
Originally committed as revision 28518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
945f7c6e92
Revert #undefining system functions, it is not necessary.
...
Originally committed as revision 28502 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
516c5f88a1
Add config.h #include for ARCH_X86 definition.
...
Originally committed as revision 28500 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
84205e0239
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
16 years ago
Aurelien Jacobs
b63f641e9b
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
16 years ago
Michael Niedermayer
b29e65513c
Remove rgb2rgb.h dependancy.
...
Originally committed as revision 27835 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago