summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2020-11-13Fix uninitialized warning in resize_test.ccAngie Chiang
Change-Id: I12a72d3aa57b13dbcbeb037e1deea41529ea4194
2020-11-13Merge "vp9: Allow for disabling loopfilter per spatial layer"Marco Paniconi
2020-11-12vp9: Allow for disabling loopfilter per spatial layerMarco Paniconi
For SVC: add parameter to the control SET_SVC_PARAMS to allow for disabling the loopfilter per spatial layer. Note this svc setting will override the setting via VP9E_SET_DISABLE_LOOPFILTER (which should only be used for non-SVC). Add unittest to handle both SVC (spatial or temporal layers) and non-SVC (single layer) case. Change-Id: I4092f01668bae42aac724a6df5b6f6a604337448
2020-10-27vp9_ext_ratectrl_test: add missing overrideJames Zern
for ~ExtRateCtrlTest() Change-Id: I311a400093c8c1ee2c002ba000d0b33c4fde209f
2020-10-26Download bus_352x288_420_f20_b8.yuv properlyAngie Chiang
Bug: webm:1707 Change-Id: I6aabad7cdcddf2bc41a0cc7b5cdfd7d9759f9fae
2020-10-21Merge changes I27932c41,I2ff9e54a,I4ebed472Angie Chiang
* changes: Small changes of vp9_ext_ratectrl_test.cc Add ref frame info to vpx_rc_encodeframe_info_t Add vpx_rc_status_t
2020-10-20Small changes of vp9_ext_ratectrl_test.ccAngie Chiang
Change-Id: I27932c41a826cd3c10cc7801956cd32e4877133a
2020-10-21Merge "Add unit test for vp9_ext_ratectrl"Angie Chiang
2020-10-20Add ref frame info to vpx_rc_encodeframe_info_tAngie Chiang
Bug: webm:1707 Change-Id: I2ff9e54a9c8ae535628c1c471a2d078652f49a31
2020-10-20Add vpx_rc_status_tangiebird
Let callback functions in vpx_ext_ratectrl.h return vpx_rc_status_t Bug: webm:1707 Change-Id: I4ebed47278b228740f6c73b07aa472787b2617d2
2020-10-20vp9-rtc: Fix to control for disabling loopfilterMarco Paniconi
Adding unit test. Change-Id: Ic3c03fee7e9c2c224d927bb09914551422bdf816
2020-10-19Add unit test for vp9_ext_ratectrlAngie Chiang
Fix three bugs along the way. 1) Call vp9_extrc_send_firstpass_stats() after vp9_extrc_create() 2) Pass in model pointer in vp9_extrc_create() 3) Free frame_stats buffer in vp9_extrc_delete() Bug: webm:1707 Change-Id: Ic8bd62c7b4ebd85a7479ae5e4c82d7f6059d782f
2020-10-01Merge "ratectrl_rtc_test.cc: fix signed/unsigned comparison"James Zern
2020-09-30Add file for rate control interface test.Jerome Jiang
Change-Id: Id09dc5b653c1e5bb2b02f63579ac776f887ce0eb
2020-09-29ratectrl_rtc_test.cc: fix signed/unsigned comparisonJames Zern
Change-Id: Id522c12faf4c959f60b5df1b0f7312f14a71720d
2020-09-16test/encode_test_driver: rm redundant get() w/unique_ptrJames Zern
Change-Id: I3c1ece92ba9f43df4cbaf47109e35aaf0a807d97
2020-09-11Upstream GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TESTSarah Parker
BUG=b/159031848 Change-Id: I013770f4e54d0ea92304fa3e9cf4d46f5723f129
2020-08-12Merge "test/*: use canonical downloads.webmproject url"James Zern
2020-08-10Cosmetic change for simple_encode_test.ccangiebird
Change-Id: I50b4d38f7deceb5b416e72dd944d2ed31e42dafa
2020-08-10Make target_frame_bits error margin configurable.angiebird
Change-Id: I05dd4d60741743c13951727ce6608acf4224ebec
2020-08-07Add rq_history to encode_frame_resultangiebird
Change-Id: Ic2a52dcf5e5a6d57b80d390a2c48ee498e89e7b2
2020-08-07Fix ObserveFirstPassMotionVectors()angiebird
1) Use kRefFrameTypeNone in the unit test 2) Reset mv_info in fp_motion_vector_info_init 3) Call fp_motion_vector_info_init() in first_pass_encode() 4) Set mv_info for intra frame. 5) Set mv_info with zero mv as default for inter frame 6) Remove duplicated fp_motion_vector_info in encode_frame_info Change-Id: I2f7db5cd4cf1f19db039c9ce638d17b832f45b6e
2020-08-07test/*: use canonical downloads.webmproject urlJames Zern
prefer https://storage.googleapis.com/downloads.webmproject.org/ to http://downloads.webmproject.org/ similar to libs.mk BUG=b/163149610 Change-Id: I6abe0848120849b9512fc5a6122ddc54b5cc2240
2020-08-03L2E: Add ObserveFirstPassMotionVectorCheng Chen
Store motion vectors for each 16x16 block found in the first pass motion search. Provide an api "ObserveFirstPassMotionVector()" in SimpleEncode class, similar to "ObserveFirstPassStats()". Change-Id: Ia86386b7e4aa549f7000e7965c287380bf52e62c
2020-07-27NULL -> nullptr in CPP filesJerome Jiang
This should clean up clangtidy warnings Change-Id: Ifb5a986121b2d0bd71b9ad39a79dd46c63bdb998
2020-07-23Silience warnings about uninitiated test casesJerome Jiang
BUG=b/159031848 Change-Id: I6bb88c24bd08e0590ec6b8ebfb696fd9b07ed011
2020-07-17Build libsimple_encode.a separatelyangiebird
BUG=webm:1689 Change-Id: Id920816315c6586cd652ba6cd1b3a76dfc1f12b7
2020-07-13Merge "Cap target bitrate to raw rate internally"Jerome Jiang
2020-07-09Cap target bitrate to raw rate internallyJerome Jiang
BUG=webm:1685 Change-Id: Ida72fe854fadb19c3745724e74b67d88087eb83c
2020-07-09test/*: rename *TestCase to TestSuiteJames Zern
similar to the TEST_CASE -> TEST_SUITE changes in: 83769e3d2 update googletest to v1.10.0 BUG=webm:1695 Change-Id: Ib2bdb6bc0e4ed02d61523f8a8315b017b8ad6dad
2020-06-19Merge changes I07f2c208,I79762df8James Zern
* changes: update googletest to v1.10.0 vp9_skip_loopfilter_test: make Init() return a bool
2020-06-18update googletest to v1.10.0James Zern
this moves the framework to c++11 and changes *_TEST_CASE* to _TEST_SUITE BUG=webm:1695 Change-Id: I07f2c20850312a9c7e381b38353d2f9f45889cb1
2020-06-18vp9_skip_loopfilter_test: make Init() return a boolJames Zern
ASSERT's in the function only force a return, not termination. this fixes a static analyzer issue with using a null decoder object in following calls. BUG=webm:1695 Change-Id: I79762df8076d029c5c8fef4d5e06ed655719de62
2020-06-18vp9-rtc: Fixes to resizer for real-timeMarco Paniconi
Reduce the time before sampling begins (after key) and reduce averaging window, to make resize act faster. Reset RC paramaters for temporal layers on resize. Add per-frame-bandwidth thresholds to force downsize for extreme case, for HD input. Change-Id: I8e08580b2216a2e6981502552025370703cd206c
2020-06-16vp9-svc: Add svc test for denoiser and dynamic resizeMarco Paniconi
This catches the assert/crash fixed in 5174eb5. Also fix to only check for dynamic resize in SVC mode for base temporal layer. Change-Id: Ie6eb7d233cc43eafb1b78cec4aeb94fb4d7fe11a
2020-06-11Let SetExternalGroupOfPicturesMap use c-style arrangiebird
Change-Id: Ic92ce5a3cc5bb74120eb32fc6219e43b1b861f14
2020-06-03Merge "Refactor simple_encode_test.cc"Angie Chiang
2020-06-02Merge "Add NV12 support"Jerome Jiang
2020-06-02Refactor simple_encode_test.ccangiebird
1) Avoid using global variables. 2) Add comments to EncodeConsistencyTest. 3) Check frame_type and show_idx in EncodeConsistencyTest. Change-Id: I2261a0bd65189beb70432d62c077ef618a2712ab
2020-06-02Add NV12 supportJerome Jiang
Change-Id: Ia2a8221a156e0882079c5a252f59bc84d8f516b1
2020-05-28Add extra check / unit test to SetExternalGroupOfPicturesMap()angiebird
Let SetExternalGroupOfPicturesMap() modify the gop_map_ to satisfy the following constraints. 1) Each key frame position should be at the start of a gop. 2) The last gop should not use an alt ref. Add unit test for SetExternalGroupOfPicturesMap() Change-Id: Iee9bd238ad0fc5c2ccbf2fbd065a280c854cd718
2020-05-28Merge "Refactor decode_api_test and realtime_test"Angie Chiang
2020-05-26Add functions to compute/observe key frame mapangiebird
Change-Id: I2fc0efb2ac35e64af3350bddaa802a206d1aa13c
2020-05-26Make SetExternalGroupOfPicture support no arf modeangiebird
Rename external_arf_indexes by gop_map Use kGopMapFlagStart to indicate the start of a gop in the gop_map. Use kGopMapFlagUseAltRef to indicate whether to use altref in the gop_map. Change-Id: I743e3199a24b9ae1abd5acd290da1a1f8660e6ac
2020-05-20Refactor decode_api_test and realtime_testangiebird
Replace NULL by nullptr. Use override specifier over virtual specifier. Change-Id: Iac2c97f997abd6ed9a5cd3991e052e79996f40f4
2020-05-07decode_api_test: add negative test for vpx_codec_error_detailJames Zern
Change-Id: Ib55d46e9290d2bd36345ff4a9737e227664c2a5b
2020-04-28test/*.sh: add explicit error checks/returnsJames Zern
there was an assumption that function calls would terminate early with an error given 'set -e' was being used. this is true, but only when the function is part of a simple command otherwise it won't inherit the behavior. many of the call sites use 'func || return 1' syntax meaning the function would continue to completion return with the status of the last command executed. this hid errors with e.g., eval statements. inner calls within the functions are now explicitly tested for failure. BUG=aomedia:2669 Change-Id: Ie33a5ac4023dcc800bd302cb8cc54c6c3f2282f5
2020-04-21realtime_test: add IntegerOverflow testJames Zern
use an extreme bitrate to cover rate control calculations. this is disabled by default as there are a mix of -fsanitize=undefined/integer warnings for vp9 and -fsanitize=integer warnings for vp8. this is a follow-up to: 5e065cf9d vp8/{ratectrl,onyx_if}: fix some signed integer overflows 5eab093a7 vp9_ratectrl: fix some signed integer overflows BUG=webm:1685 Change-Id: I24d223e33471217528a79b0088965ba51d0399ba
2020-04-06vp9: add rate control interface for RTCJerome Jiang
Add vp9 RTC rate control without creating encoder, to allow external codecs to use vp9 rate control. A new library (libvp9rc.a) will be built. Applications using this interface must be linked with the library. BUG=1060775 Change-Id: Ib3e597256725a37d2d104e1e1a1733c469991b03
2020-03-30rtc: Increase resize limit resoln for rtcMarco Paniconi
Increase resize limit to avoid resized frame from going below 320x180. Change-Id: If736ac3fac4731b47844e4d8c771ecf5c66550de