Reinhard Tartler
7ffe76e540
Merge libavcore into libavutil
...
Done to keep ABI compatible. Otherwise this is just silly
14 years ago
Clément Bœsch
b9004bd50c
Remove a few if (p) av_freep(&p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 523d9407d5
)
14 years ago
Ramiro Polla
b9f5e3bd75
swscale-test: cosmetic alignment
...
Originally committed as revision 32265 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
f1084cb0cd
swscale-test: always use bilinear scaler to get output for SSD
...
Originally committed as revision 32256 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
9b4bf9c21d
swscale-test: allow specifying src/dst pixel formats
...
Originally committed as revision 32215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
9075bc7c51
indent
...
Originally committed as revision 32214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
4bf4478598
swscale-test: take input from reference file
...
If the CRC from the src->dst conversion matches a reference, it is not
necessary to perform a dst->yuva420p conversion and check the SSD.
Originally committed as revision 32213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
6bbae4c8b3
swscale-test: always use SWS_BILINEAR to convert from ref to src
...
Originally committed as revision 32212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
3e1e78008b
swscale-test: move conversion from ref to source back to doTest()
...
The source format parameters are kept in static variables and conversion from
ref to source is only made when any parameter changes.
Originally committed as revision 32211 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
4389d606e6
av_fill_image_linesizes -> av_image_fill_linesizes
...
Originally committed as revision 32106 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
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
15 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