Sijia Chen
9442a7a0b5
add parameter checking on resolution and related UT
2015-05-26 15:41:47 +08:00
Martin Storsjö
b90eca78cd
Avoid endian assumptions in FillQpelLocationByFeatureValue_c
...
These values are read as two separate 16 bit integers from an
array in the FeatureSearchOne function, therefore we should
also store them in a well-defined order.
This fixes encoding of screen content on big endian; now the
full testsuite passes on big endian.
2015-05-15 13:11:23 +03:00
Martin Storsjö
31453e3072
Revert broken big-endian fix for DeblockingBsMarginalMBAvcbase
...
The function actually was correct for big-endian use already
(and the changes in 239e22d0
actually broke normal decoding tests),
it was only the test function itself that needed fixing for big-endian.
2015-05-15 10:13:40 +03:00
huade
8c66a7c2f8
update SHA1 table as long time cost on travis
2015-05-14 18:09:11 +08:00
Martin Storsjö
7a80c21526
Reformat tables without tabs
2015-05-13 22:06:58 +03:00
Martin Storsjö
dd913ef878
Don't use tabs for indentation in multi-line macros
...
The astyle configuration makes sure normal code is indented consistently
with 2 spaces, but astyle doesn't seem to touch the indentation in
these multi-line macros.
2015-05-13 22:06:54 +03:00
Haibo Zhu
61b82d28c4
Add framerate & spatialbitrate comparison for encoder UT
2015-05-05 18:53:50 -07:00
Martin Storsjö
ad9e65b96a
Remove trailing whitespace in the iOS codec unittest files
2015-05-04 12:47:19 +03:00
Martin Storsjö
8d34c68ad6
Add a missing newline at the end of a file
...
Some tools (like git) complain if a file lacks a newline at
the end of a file, and some editors will automatically readd
it when editing such files.
2015-05-04 12:46:48 +03:00
Martin Storsjö
a9c6a9d760
Remove tabs from the end of lines like ") {"
2015-04-29 15:49:28 +03:00
Martin Storsjö
b1570b17be
Convert mixed tabs to spaces in shell scripts
...
All other shell scripts use spaces for indentation.
2015-04-27 14:10:09 +03:00
Martin Storsjö
8e26d9c31c
Astyle the android unittest java file
2015-04-27 14:03:15 +03:00
Martin Storsjö
31a9fb6913
Remove trailing whitespace
2015-04-27 14:02:28 +03:00
Martin Storsjö
75251b5af7
Remove stray spaces before colon in messages
2015-04-22 09:19:59 +03:00
Haibo
e9916c7592
Add Transform 8x8 support
...
Add Intra 8x8 support
Add no_deblocking support inside T8x8
Add CABAC parse support
Add static data sheet for dequant
Fix bugs and clean/astyle the code
Remove build warnings
Modify the UT cases
Fix the ParseNalHeader bug
2015-04-20 04:04:30 -07:00
huade
f092b2a478
add ut demo for wp8
2015-04-17 14:10:12 +08:00
Sijia Chen
8c2ee58fd9
update the SHA table because of default setting changed
2015-04-16 12:46:11 +08:00
Sijia Chen
1922b533f6
change the range of frame rate from 30 to 60
2015-04-16 12:45:43 +08:00
ruil2
4c352d13f3
fix vui writting
2015-03-25 14:10:18 +08:00
huili2
a384df3246
Merge pull request #1868 from huili2/wels_common_basis
...
merge common part of wels_common_basis
2015-03-24 09:18:43 +08:00
sijchen
da8646f5b2
Merge pull request #1865 from ruil2/vui
...
update bGapsInFrameNumValueAllowedFlag according to parameters setting
2015-03-23 09:50:09 +08:00
huili2
403cc57dc6
merge common part of wels_common_basis
2015-03-20 12:44:00 +08:00
ruil2
e7fb44c451
update tables and update ut for different return value
2015-03-18 16:05:16 +08:00
ruil2
cce966fbba
update bGapsInFrameNumValueAllowedFlag according to parameters setting
2015-03-18 13:44:03 +08:00
Martin Storsjö
18a595468f
Avoid shadowing variables within functions
...
There is already a variable int iIdx declared just a few lines
above.
2015-03-17 09:44:08 +02:00
Martin Storsjö
09fcc93575
Initialize iLastCorrectFrameNum in GetOptionLTR_ALLLTR
...
This avoids valgrind warnings about uninitialized variables
in case the random uiIDRPicId actually turns out to be correct.
2015-03-16 11:08:49 +02:00
ruil2
ae9c5e2516
update vui parameters
2015-03-13 19:11:10 +08:00
ruil2
c109f4dc8d
add VUI for base layer
2015-03-13 14:31:08 +08:00
huashi
82cd357bae
fixed bug for UT--setoptionParamExt
2015-03-06 13:47:08 +08:00
Sijia Chen
2c44dbae5c
[UT] add more condition to improve the coverage of DecoderCrashTest
...
https://rbcommons.com/s/OpenH264/r/1132/
2015-03-05 13:22:48 +08:00
huili2
06b8e1abb7
allow slice-level data come in for parse only
2015-03-04 00:57:43 -08:00
Martin Storsjö
c301db696e
Remove a stray srand
...
The individual tests shouldn't reseed the random number generator
(other than for local debugging).
Hardcoding a specific random seed here leads to this test (and
all subsequent tests) not testing things randomly as intended, but
always testing the same parameters.
2015-02-27 12:06:44 +02:00
Martin Storsjö
7208ed14b1
Store a const char* instead of a std::string in gtest parameter arrays
...
This avoids valgrind warnings about using unintialized data.
2015-02-19 14:52:11 +02:00
Sijia Chen
f9080ac090
complete logic of simulcastavc with sps_pps_listing
2015-02-11 17:31:17 +08:00
dong zhang
7d6d86b63a
add a UT for large picture
2015-02-11 16:31:00 +08:00
Sijia Chen
943981abc4
fix a nal generation for simulcast avc and add nal-type check for simulcast avc UT
2015-02-09 13:50:31 +08:00
ruil2
8fc2af760f
Merge pull request #1804 from sijchen/fix_over3
...
[Encoder] fix potential overflow under large bit rate
2015-02-06 14:22:01 +08:00
ruil2
296ab4d490
Merge pull request #1802 from sijchen/savc50
...
[Encoder] fix for in-middle changing simulcast avc setting
2015-02-06 14:21:47 +08:00
Sijia Chen
431bcee310
1, update the max-nal-size setting in UT and param check since we are using a larger input check
...
2, fix potential overflow (will change bs but little impact on bs)
2015-02-06 13:24:20 +08:00
ruil2
7d055cae94
Merge pull request #1786 from sijchen/fix_over
...
improve error logging in UT
2015-02-06 12:17:56 +08:00
Sijia Chen
bc1b28b5dd
fix for in-middle changing simulcast avc setting
2015-02-05 16:34:28 +08:00
Martin Storsjö
6c1aa29431
Avoid declaring a new variable shadowing an existing one in the same function
...
All the following loops below assume that int iIdx already is declared.
2015-02-04 11:25:09 +02:00
dong zhang
d3b2be5ec2
add UT for set MaxNalUnitLen
...
ignore the cases: 2 MBs in one picture, and the multithreads case, enable them when code is ready
2015-02-04 14:39:11 +08:00
Martin Storsjö
e4a278620b
Remove dependencies on the decoder internals in unit test for the common library
2015-02-02 12:44:04 +02:00
sijchen
5fdd01ec0c
Merge pull request #1787 from mstorsjo/remove-stray-semicolon
...
Remove accidental double semicolons
2015-02-02 18:15:02 +08:00
sijchen
e7a7a35611
Merge pull request #1779 from mstorsjo/share-memalign
...
Move the memory allocation/deallocation routines to the common library
2015-02-02 18:14:55 +08:00
Martin Storsjö
a3063531c4
Remove accidental double semicolons
2015-02-02 09:20:35 +02:00
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ö
2356eb1ff6
Move the memory allocation/deallocation routines to the common library
...
They are still used slightly differently in the encoder and decoder;
the decoder uses plain functions while the encoder uses one object
keeping track of the number of allocated bytes, and keeping track
of the requested alignment.
2015-01-30 11:30:59 +02:00
Martin Storsjö
869870e670
Rename the decoder WelsMalloc to WelsMallocz
...
This function actually zero-initializes the allocated memory, thus
make this clear in the function name.
This makes the function name match the same behaviour in the encoder.
2015-01-30 10:37:48 +02:00
Sijia Chen
3c085aec79
improve error logging in UT
2015-01-30 15:43:20 +08: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