Martin Storsjö
4394d22b70
Set m_iPicResSize in PrepareOneSrcFrame
...
If the calling test hasn't set m_iPicResSize, it is set to the
maximum frame size, which takes much longer to initialize than the
current actual frame size.
This reduces the runtime of EncoderInterfaceTest.SkipFrameCheck
in valgrind from 229 seconds to 8 seconds, and the total runtime
of all the test cases in EncoderInterfaceTest from 405 seconds
to 89 seconds.
2015-01-30 16:02:40 +02:00
Martin Storsjö
76b0f8c17a
Avoid writing outside of the target rect in MCHalfPelFilterAnchor
...
This simplifies comparison between the output of MCHalfPelFilterAnchor
and the actual MC function implementations.
2015-01-29 08:51:02 +02:00
dongzha
4f4adcec49
Merge pull request #1772 from mstorsjo/mc-unify
...
Move the MC implementation to the common library
2015-01-29 09:28:57 +08:00
dongzha
59b3b428a2
Merge pull request #1768 from mstorsjo/msvc-ignore
...
Add a .gitignore file for test/build/win32
2015-01-29 09:28:02 +08:00
Martin Storsjö
605f2fb858
Remove the now unnecessary mc_test_common.h
2015-01-28 23:59:41 +02:00
Martin Storsjö
f03edd79c2
Merge all MC unit tests into one file
...
Since both encoder and decoder use the same MC implementation now,
one set of tests is enough.
2015-01-28 23:59:37 +02:00
Martin Storsjö
9a0663620a
Move the MC routines to the common library
...
Use the decoder versions of the functions (which are capable
of handling widths 4/8/16 for luma, not only 16 as in the
encoder). By using the more generic versions, there may be a small
performance loss since the functions need to check the width
in every call. Actual measurements show that the actual change is
very small (and the shared routines turn out to actually be faster
than the existing ones in ARM NEON setups).
2015-01-28 15:32:46 +02:00
Martin Storsjö
909a508749
Use the right stride in a memset in the EncMcHalfpel test
2015-01-28 15:19:19 +02:00
Martin Storsjö
151dfe04d5
Extend the tested area in the encoder MC test
2015-01-28 15:11:17 +02:00
Martin Storsjö
9a9fc4c489
Change pfSampleAveraging to be a single function with internal width handling
...
This makes it match the behaviour of pMcLumaFunc and pMcChromaFunc.
2015-01-28 13:59:58 +02:00
Martin Storsjö
1127aa7761
Simplify the MC unit tests now that the naming is made consistent
2015-01-28 13:59:58 +02:00
Martin Storsjö
8b6bf0499f
Rename the encoder MC chroma/luma functions to match the naming in the decoder
2015-01-28 13:59:58 +02:00
Martin Storsjö
bb21b62cbd
Simplify the MC unit tests now that the luma functions have a similar signature
2015-01-28 13:59:58 +02:00
Martin Storsjö
1cf68cad13
Move the qpel function table into the luma function itself
...
This unifies the luma MC interface to match the decoder side.
2015-01-28 13:59:58 +02:00
Martin Storsjö
1be2cd14c0
Add a .gitignore file for test/build/win32
...
This file is copied from codec/build/win32.
2015-01-28 09:42:10 +02:00
Martin Storsjö
853d2922db
Use float literals instead of double literals when setting float values
...
This fixes warnings with MSVC 2008.
2015-01-28 09:19:09 +02:00
Sijia Chen
5752888c81
1, fix a potential overflow
...
2, remove some unnecessary multiplier and add input check of spatial BR
2015-01-28 10:51:27 +08:00
Martin Storsjö
e5c2f333be
Remove the forceC parameter from DEF_MCCOPYTEST
...
Even if there actually is no SIMD optimized version of the
width==2 cases, luma function for SIMD still needs to handle
it by calling McCopyWidthEq2_c for these cases.
This simplifies the UT code a little, and makes sure that
those codepaths are tested properly.
2015-01-27 12:11:38 +02:00
Martin Storsjö
10e2f90b7e
Bundle MC tests for all motion vectors in one single test
...
This speeds up the compile time from 21.3 to 2.6 seconds
for the MC test files.
This makes it slightly harder to see exactly which test
failed on a quick glance, but it makes the overall structure of
the unit test output more manageable and readable, by reducing
the number of tests from 1300 to 430.
2015-01-27 09:41:00 +02:00
Martin Storsjö
ca97f78ae8
Add unit tests for special cased MC functions in the encoder
2015-01-27 09:41:00 +02:00
Martin Storsjö
8084a2c797
Add unit tests for encoder MC
2015-01-27 09:41:00 +02:00
Martin Storsjö
4df4c1d757
Prepare the shared MC test code for adding an encoder MC test
2015-01-27 09:41:00 +02:00
Martin Storsjö
49af2b592d
Split DecUT_MotionCompensation to a shareable header
...
This allows adding a version of the same test for the encoder.
2015-01-27 09:40:59 +02:00
Martin Storsjö
cf3e7b5dec
Make local functions and tables in DecUT_MotionCompensation static
2015-01-27 09:40:59 +02:00
Martin Storsjö
8ecb8b4200
Remove unused includes in DecUT_MotionCompensation
2015-01-27 09:40:59 +02:00
Martin Storsjö
420a81afe4
Unify the order of iX and iY in DecUT_MotionCompensation
...
They are in the order iX, iY in the rest of the file.
2015-01-27 09:40:59 +02:00
ruil2
1b48e6c88c
Merge pull request #1756 from sijchen/savc4
...
[Encoder] Implementation of bSimulcastAVC and UT
2015-01-27 10:42:50 +08:00
Martin Storsjö
e64e2bb620
Avoid warnings in DecUT_ParseSyntax
2015-01-26 23:54:34 +02:00
Martin Storsjö
4192165ec9
Add DecUT_ParseSyntax to the build system
...
This test seems to have been added to the git tree in commit
9a602cac (which does much more than what the commit message
tells), and finally merged into git master in 2c99f581.
2015-01-26 15:59:43 +02:00
Martin Storsjö
faf62464a8
Make DecUT_ParseSyntax.cpp actually build and run successfully
2015-01-26 15:59:43 +02:00
Sijia Chen
8d5ec6759d
add support of SimulcastAVC functions
2015-01-26 15:25:09 +08:00
Sijia Chen
f13624316e
fix level-idc related input checking and a statistics calculation
...
will change bs but tested there is little impact on RD
being reviewed at: https://rbcommons.com/s/OpenH264/r/1084/
2015-01-26 15:20:58 +08:00
Martin Storsjö
acafbb442d
Add checks for cpu features in tests
...
This allows running the tests on devices that don't have
all the SIMD instruction sets.
2015-01-24 22:47:23 +02:00
sijchen
7f967f6fc4
Merge pull request #1750 from syureyi/crqp
...
to support different chroma qp
2015-01-23 13:30:21 +08:00
zhuiling
a45c661525
to support different chroma qp
...
fix travis ci error
2015-01-23 09:06:09 +08:00
ruil2
e7fff10d91
Merge pull request #1745 from sijchen/fix_ut
...
[UT] fix a random failure of UT
2015-01-21 17:31:34 +08:00
Sijia Chen
5b10c1ff8d
fix random failure of UT under randon seed 1421732719
2015-01-20 15:47:05 +08:00
Sijia Chen
8cc53b0231
astyle an unformatted file
2015-01-20 10:50:44 +08:00
Sijia Chen
489d121549
add a default param function for EncodeDecoderAPI test
2015-01-20 10:49:25 +08:00
sijchen
8bef6bc942
Merge pull request #1738 from huili2/init_EC_modify
...
modify EC init position
2015-01-19 16:36:29 +08:00
Martin Storsjö
d6f7a07b14
Undefine a define for writing debug files
2015-01-19 10:06:30 +02:00
Martin Storsjö
c1aa2a1edb
Use WelsClip3 instead of WELS_CLIP3 for random values
...
Since WELS_CLIP3 is a macro, using it will cause the arguments
to be evalated multiple times, which means that the clip will
not work as intended. If using a rand() argument, always use
WelsClip3 instead, which is an inline function.
2015-01-19 10:02:21 +02:00
Martin Storsjö
fcae7fd300
Compare macro block widths instead of picture widths
...
Since cropping is disabled (prepareParam does
memset (pParam, 0, sizeof (SEncParamExt)); which clears the
cropping flag), we need to make sure that the number of
macroblocks differ, not only the number of pixels.
2015-01-19 10:01:12 +02:00
Martin Storsjö
58f1fef520
Fix a comparison in ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING3
...
Previously, this test picked a width at random until it found
a width that had been used before, meaning that all tests were
made with the same single width.
2015-01-19 09:58:25 +02:00
huili2
01fd220ef9
Merge pull request #1739 from sijchen/sps_list3
...
[Encoder] rename the SpsPpsStrategy to enum
2015-01-19 13:31:51 +08:00
sijchen
eb7b149fcc
Merge pull request #1736 from mstorsjo/werror-tests
...
Build using -Werror in travis unit tests
2015-01-19 10:54:11 +08:00
sijchen
4930111ad3
Merge pull request #1734 from mstorsjo/fix-unused-variable-warning
...
Avoid a warning about a variable set but not used
2015-01-19 10:51:33 +08:00
Sijia Chen
d9502aa71d
rename the strategy to enum
2015-01-19 10:49:38 +08:00
huili2
50ce93e31c
modify EC init position
2015-01-18 18:07:27 -08:00
Martin Storsjö
c69d628a82
Avoid warnings about an unused variable in debug mode
2015-01-16 14:02:01 +02:00