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
sijchen
a00dd56f1c
Merge pull request #1763 from mstorsjo/mc-ut-simplify
...
Remove the forceC parameter from DEF_MCCOPYTEST
2015-01-28 10:13:46 +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
sijchen
d9ee702031
Merge pull request #1759 from mstorsjo/enc-mc-ut
...
Add unit tests for encoder MC
2015-01-27 16:51:42 +08:00
Martin Storsjö
23b20fb14c
Simplify code in HorFilterInput16bit in MC
...
This avoids a gcc optimizer bug (which seems to be present in some
gcc 4.6 and 4.7 versions) at the -O3 level.
2015-01-27 09:41:00 +02:00
Martin Storsjö
279e14b34e
Add const to some inline functions within MC
2015-01-27 09:41:00 +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ö
478af8f00c
Unify the pfChromaMc function signature with the decoder version
...
Instead of passing a struct with x/y, pass them as two separate
parameters.
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
Martin Storsjö
9fc9acfd14
Avoid a duplicate local typedef
2015-01-27 09:40:59 +02:00
Martin Storsjö
7d9fc35235
Unify the encoder MC init function with the decoder
...
This simplifies the code a little, by passing a pointer to the sub-struct
SMcFunc instead of to the full SWelsFuncPtrList, which isn't necessary.
2015-01-27 09:40:59 +02:00
ruil2
5b27407993
Merge pull request #1757 from sijchen/sps_list4
...
[Encoder] add input checking and fix a bs length under new strategy
2015-01-27 10:43:20 +08:00
ruil2
1b48e6c88c
Merge pull request #1756 from sijchen/savc4
...
[Encoder] Implementation of bSimulcastAVC and UT
2015-01-27 10:42:50 +08:00
sijchen
f404ce2e56
Merge pull request #1758 from mstorsjo/add-missed-test
...
Hook up the DecUT_ParseSyntax test
2015-01-27 08:47:40 +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
Martin Storsjö
4ca8ad2612
Initialize pCodecInstance in the constructor
...
This avoids using uninitialized memory if SetCodecInstance
isn't ever called (as in DecUT_ParseSyntax).
2015-01-26 13:16:09 +02:00
Sijia Chen
deccd1eadb
fix profileidc
2015-01-26 16:36:42 +08:00
ruil2
1ae06eab91
Merge pull request #1755 from sijchen/fix_lvl
...
[Encoder] fix level-idc related input checking and a statistics calculation
2015-01-26 15:58:03 +08:00
Sijia Chen
e2fb48d404
change the trace to warning
2015-01-26 15:42:09 +08:00
Sijia Chen
8d5ec6759d
add support of SimulcastAVC functions
2015-01-26 15:25:09 +08:00
sijchen
89159ab25f
Merge pull request #1754 from ruil2/status
...
use the new no delay decoderframe interface instead of old one
2015-01-26 15:23:49 +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
Sijia Chen
45e3424364
add input checking and fix a bs length under new strategy
2015-01-26 11:12:24 +08:00
ruil2
4b52d99d97
use the new no delay decoderframe interface instead of old one
2015-01-26 09:56:11 +08:00
dongzha
de68ec6f45
Merge pull request #1751 from ruil2/status
...
return decoder error
2015-01-26 09:31:48 +08:00
dongzha
51f1ea3839
Merge pull request #1753 from mstorsjo/test-cpu-flags
...
Add checks for cpu features in tests
2015-01-26 09:29:47 +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
ruil2
6afdf36ecc
return decoder error
2015-01-23 15:48:13 +08:00
sijchen
7f967f6fc4
Merge pull request #1750 from syureyi/crqp
...
to support different chroma qp
2015-01-23 13:30:21 +08:00
sijchen
dfd24a987d
Merge pull request #1748 from dongzha/fixcrash
...
fix crash in SGE test
2015-01-23 09:45:54 +08:00
zhuiling
a45c661525
to support different chroma qp
...
fix travis ci error
2015-01-23 09:06:09 +08:00
dong zhang
6dcaf2f890
fix crash in SGE test
2015-01-22 09:10:28 +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
ruil2
17030193e6
Merge pull request #1742 from sijchen/fix_max_br
...
[Encoder] improve the para checking of max-br
2015-01-21 17:31:24 +08:00
Sijia Chen
d74234d975
enhance max-br checking logic
2015-01-21 16:54:43 +08:00
Sijia Chen
6664593ef7
Merge branch 'master' of https://github.com/cisco/openh264 into fix_max_br
2015-01-21 16:35:31 +08:00
sijchen
4b231c8fe6
Merge pull request #1744 from dongzha/modifydecoderlog
...
modify decoder console log level to WELS_LOG_WARNING
2015-01-21 09:43:41 +08:00
ruil2
96b1183574
Merge pull request #1743 from sijchen/fix_test
...
[UT] add a default param function for EncodeDecoderAPI test
2015-01-21 09:19:21 +08:00
Sijia Chen
5b10c1ff8d
fix random failure of UT under randon seed 1421732719
2015-01-20 15:47:05 +08:00
dong zhang
bd7fabd892
modify decoder console log level to WELS_LOG_WARNING
...
change the postion of setting EC method
2015-01-20 13:18:33 +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