Martin Storsjö
ef82e18d74
Silence warnings about insecure CRT functions in the test suite
...
There is no problem in using the "insecure" CRT functions, as long as
they are used correctly - especially not within the test suite where
they are only are exposed to the test suite input data.
Within the library, these are used via the library internal wrappers
in codec/common/src/crt_util_safe_x.cpp, but we'd rather not use them
in the test suite - just use the normal standard C functions here.
2015-01-16 13:38:06 +02:00
Martin Storsjö
a1b8ffc9df
Use the right data type for a variable
...
There is little point in using an int32_t variable for something
that will only be used for passing in as a bool parameter to a
function.
2015-01-16 13:38:06 +02:00
Martin Storsjö
a852ac99ed
Fix a cast to actually cast to the right type
...
The existing cast didn't make much sense. The expression itself is
already int, there's little point in casting it to int, especially
when assigning to a float.
This fixes warnings with MSVC.
2015-01-16 13:38:06 +02:00
Martin Storsjö
93cb617932
Add a comparison in ASSERT_TRUE
...
This makes sure the compared value actually is bool, not any other
type that can be used as condition.
This fixes warnings with MSVC.
2015-01-16 13:38:06 +02:00
Martin Storsjö
99925984b3
Consistently compare integers with integers and bools with bools
...
MSVC warns when comparing integers with booleans in with the gtest
assertion macros.
2015-01-16 13:37:15 +02:00
Martin Storsjö
a44643aeda
Avoid a warning about a variable set but not used
...
The return values may be useful later, so instead of removing the
variable, just silence the warning.
This fixes a warning in builds with GCC.
2015-01-16 09:26:42 +02:00
Sijia Chen
98ed302990
add new SpsPpsStrategy and UT
2015-01-15 18:04:39 +08:00
sijchen
e9ec603fd7
Merge pull request #1727 from huili2/addUT_parseonly_frameincomplete
...
add UT for incomplete frame for parse only
2015-01-15 16:23:05 +08:00
huili2
ea533e6405
add UT for incomplete frame for parse only
2015-01-14 18:00:33 -08:00
dongzha
993caea18c
Merge pull request #1721 from huili2/DecodeFrameNodelay
...
add new API as DecodeFrameNoDelay for immediate decoding
2015-01-15 09:54:10 +08:00
Sijia Chen
ea06cbe06b
enhance param checking with num-ref and related logging
2015-01-12 10:39:51 +08:00
huili2
ac08cc4b2f
Merge pull request #1694 from zhilwang/asm-SetNoneZero
...
Add asm code for NoneZeroCount and refine related code
2015-01-06 13:37:56 +08:00
ruil2
ce14a0e4f9
fix bug when some parameters change dynamically
2015-01-05 17:01:35 +08:00
zhiliang wang
01b74ea7c1
Add asm code for NoneZeroCount and refine related code
2015-01-04 16:39:17 +08:00
huili2
e3e5208509
add new API as DecodeFrameNoDelay for immediate decoding, which will be recommended decoding method for h.264 bitstream
2014-12-30 23:43:47 -08:00
huili2
b12b39a47b
disable color format check for parse only
2014-12-28 23:43:09 -08:00
sijchen
26ccd837f1
Merge pull request #1672 from huili2/parseonly_sizemodif
...
unify parseonly to have 0x0001
2014-12-26 09:58:28 +08:00
huili2
9c0bbeb4da
unify parseonly to have 0x0001
2014-12-24 23:11:49 -08:00
ruil2
cf6450b269
refine frame rate
2014-12-23 17:30:01 +08:00
ruil2
59aee6052a
Merge pull request #1667 from lyao2/ut_fix3
...
fix a spatial layer index error
2014-12-23 17:19:49 +08:00
lyao2
2e4fd4248a
fix a spatial layer index error
2014-12-23 16:25:11 +08:00
huili2
2c99f5810e
Merge pull request #1659 from syureyi/scalinglist
...
Scalinglist
2014-12-23 10:50:49 +08:00
ruil2
e3bf63db59
using function pointer to make different branch for different rc
2014-12-22 12:00:39 +08:00
sijchen
9a602cac1b
Merge pull request #1657 from mstorsjo/clip-bitrate
...
Make sure the random test bitrate is high enough
2014-12-21 18:49:26 -08:00
Martin Storsjö
887b4f47fc
Make sure the random test bitrate is high enough
...
This is the same fix as in 47df41 (for the ForceIntraFrame
test) applied to the ForceIntraFrameWithTemporal test.
2014-12-20 00:35:13 +02:00
sijchen
8dbdb418ca
Merge pull request #1641 from mstorsjo/test-min-bitrate
...
Make sure the random test bitrate is high enough
2014-12-17 15:50:13 +08:00
ruil2
ac992acaa9
Merge pull request #1640 from mstorsjo/fix-tests
...
Fix occasional failures in some tests
2014-12-17 09:29:36 +08:00
Martin Storsjö
ee5896e4a1
Fix a number of typos in run_SafeDelete.sh
2014-12-16 16:28:45 +02:00
Martin Storsjö
47df411b1a
Make sure the random test bitrate is high enough
...
The ForceIntraFrame test will fail (giving up after 100 skipped
frames) if the bitrate is not set high enough.
Set the minimum bitrate to w*h/50, which is a very low value,
but which still should allow getting a non-skipped frame within
a few attempts.
2014-12-16 11:56:48 +02:00
Martin Storsjö
f4b3724976
Increase the minimum frame size in a test with multiple spatial layers
...
Make sure the input frame size is large enough that the downsampled
layers also have a nonzero resolution.
2014-12-16 11:13:22 +02:00
Martin Storsjö
59fefbe7c7
Use an inline function instead of a macro for clipping which contains rand()
...
When using a macro, the macro parameters get evaluated
multiple times, which means that the rand() value compared
actually isn't the same that is used as return value.
This makes sure that clipping works as intended for the
random tests.
2014-12-16 11:13:22 +02:00
Martin Storsjö
a9c2e1b431
Use the common WELS_CLIP3 macro instead of a custom reimplementation
2014-12-16 11:13:22 +02:00
Martin Storsjö
d387ebc358
Add a gitignore entry for another file created by the binary comparison scripts
2014-12-16 09:06:10 +02:00
Martin Storsjö
c0633a147e
Readd and update the accidentally cleared SHA1 test tables
...
These were accidentally cleared in 5ab5fe15, when the script
for updating them was broken.
2014-12-15 23:33:16 +02:00
Martin Storsjö
8a2237751a
Fix a check in the binary comparison scripts
2014-12-15 17:28:10 +02:00
Martin Storsjö
3aac5e0fae
Properly update hashes
2014-12-15 17:26:23 +02:00
ruil2
5ab5fe155b
keep the consistency between sps level and parameter level
2014-12-15 09:56:54 +08:00
huili2
984497cc09
modify freeze output to proper location
2014-12-11 23:42:04 -08:00
ruil2
41339f3023
Merge pull request #1615 from lyao2/ut_idr3
...
refine the UT case for checking IDR request
2014-12-12 09:13:29 +08:00
ruil2
ec99819ce8
Merge pull request #1614 from sijchen/fix_idr_id1
...
[Encoder] fix idr_id: idr_id should be adding regardless of the sps strategy
2014-12-11 16:41:59 +08:00
lyao2
2e85e3c7d9
refine the UT case for checking IDR request
2014-12-11 14:32:26 +08:00
Sijia Chen
f1a7a1a966
encoder log level adjustment in UT to avoid too many output and some formatting
2014-12-11 14:31:32 +08:00
Sijia Chen
32d6193f97
fix idr_id: idr_id should be adding regardless of the sps strategy
2014-12-11 10:58:27 +08:00
dong zhang
2c468b96a9
add flag to count EC Mbs due to ref error
...
add UT
2014-12-11 10:49:55 +08:00
dongzha
af97f2d4bb
Merge pull request #1605 from sijchen/fix_ut1
...
fix a UT function
2014-12-10 11:18:08 +08:00
Sijia Chen
87c83c0d36
fix a UT function
2014-12-10 10:49:58 +08:00
huade
944a041066
1 update SHA1 table which have been broken by previous update; 2 enhance script to support more case(multi layer etc.)
2014-12-09 15:59:07 +08:00
sijchen
cc5978b252
Merge pull request #1594 from lyao2/RC_maxBr_commit5
...
Rate control refine to fit MAX bitrate requirement
2014-12-08 11:03:43 +08:00
ruil2
56c895ffb4
1. should not set WELS_LOG_ERROR level in encoder initilization.
...
2.fix UT bug
2014-12-05 17:08:00 +08:00
lyao2
c01606c28a
Rate control refine to fit MAX bitrate requirement
2014-12-05 12:09:08 +08:00