summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-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
2020-03-05Merge changes Ie7c70a1d,I2c5abbe2,If41a1ea6,Id6ba4664,I156308bcAngie Chiang
* changes: Add unit test for ref_frame_info Add key frame group info to SimpleEncode Add ref_frame_info to encode_frame_result Add init/update_frame_indexes() Add GetVectorData()
2020-03-04rtc: Update svc test for resizeMarco Paniconi
Add count on expected number of resizes, and use the speed_setting_ for base layer. Also allow AQ_MODE=3 for the tests with dynamic layer disabling/enabling. Change-Id: I03fb0789a2210ba00b8b153941bf79fb774d51bf
2020-03-03vp9-svc: Allow for dynamic resize for single layer SVCMarco Paniconi
Make internal dynamic resize work for SVC mode when single layer SVC is running (i.e, other layers are dropped due to 0 bitrate). Added unittest. Change-Id: Icf03e1f276d9c4ba2734c87c927f7881c6b0a116
2020-03-03Add unit test for ref_frame_infoangiebird
Fix several bugs to make the test pass. 1) Move update_frame_indexes() out of show_frame check. 2) Init coding_indexes[i] to -1 when key frame appears 3) Fix a bug in PostUpdateRefFrameInfo() Change-Id: Ie7c70a1d460e5b89475a1aef77416fc9a88387e1
2020-02-24Make external arf consistent with vp9Cheng Chen
Add a test to ensure that encoding with the external arfs gets the same result as long as the arfs are the same as the vp9 baseline. Change-Id: I92c79001018f4df3bc16e9fc56c733509bebb9dc
2020-02-20Consistency test for GroupOfPictureangiebird
Make sure frame_type, show_idx and coding_index in GroupOfPicture match the results in EncodeFrameInfo. Change-Id: I3b477a03b5efd651c2d174e7146a4cd4f5551604
2020-02-20Use ObserveGroupOfPicture() in EncodeFrame testangiebird
In the previous version, we assume the number of coding frames is known. Although the assumption is true for now with rate_ctrl flag on, it's more proper to use ObserveGroupOfPicture() to get the partial info about how many coding frames are in the group. Because We want to keep the flexibility of changing the size of group of pictures on the fly in the future. Change-Id: Ibbe6ab49268c468bf1cef8344efd3a3e1eab972a
2020-02-14vp8_decode: add missing vpx_clear_system_stateJames Zern
this avoids leaving the floating point unit in an inconsistent state on error and breaking subsequent tests on x86 the test clip invalid-bug-148271109.ivf would also result in a sanitizer error prior to: vp8,GetSigned: silence unsigned int overflow warning BUG=b/148271109 Change-Id: Ia254f3892ac1eeec51db5e9d42ea071545db0cd8
2020-02-10Add a unit test to check partition infoCheng Chen
Change-Id: I397d7005961a037c9c9cb29e3ff0a3d39a501d15
2020-02-06Consistency test for motion vector infoCheng Chen
Change-Id: Ie1d77e231b973eb16f4e9c520721b47cdf86622c
2020-01-27Consistency test for partition infoCheng Chen
Test the information stored in the encoder is the same between two encode runs. Change-Id: I4f97fac4f212602f766aee0a6cbef566ca43b41e
2020-01-17vp9: add delta q for uv channel. add tests.Jerome Jiang
Add control for delta q for uv. 0 by default. Change-Id: Ib8ed160b1a5c9a61ba15985076f6c6f121477103
2020-01-11Merge "simple_encode*.cc: add missing copyright"James Zern
2020-01-10simple_encode*.cc: add missing copyrightJames Zern
Change-Id: I58ddf13698e3892aa591af4196ca03d7c09426c6
2020-01-09Fix test failure with --size-limitJerome Jiang
The test didn't verify expected error code with invalid sizes. It assumed VPX_CODEC_OK. Added new Encoder class which doesn't run decoding at all. It accepts expected error code to verify with encoder output. The encoder behavior was changed in 94a65e8. BUG=webm:1670 Change-Id: I6324d8f744e6c4aa82aa66913923dc140b07bfc9
2019-12-17Merge "trivial: fix 'fragment' spelling"Johann Koenig
2019-12-12Add GetFramePixelCount to SimpleEncodeangiebird
Gets the total number of pixels of YUV planes per frame. Change-Id: Ifdf35190cdde1378de6d7e93ab4428868a5795fa
2019-12-11Merge changes I54f60f62,Idbc437d3Angie Chiang
* changes: Rename parameter two_pass to twopass. Add GetNextEncodeFrameInfo ObserveGroupOfPicture
2019-12-10Add GetNextEncodeFrameInfo ObserveGroupOfPictureangiebird
GetNextEncodeFrameInfo() Gets encode_frame_info for the next coding frame. ObserveGroupOfPicture() Provides the group of pictures that the next coding frame is in. Change-Id: Idbc437d32c392f25b06efb2d4e1ec01347d678f2
2019-12-06Merge Timestamp TestVpxRollover tests for Vp8/Vp9Debargha Mukherjee
BUG=webm:701 Change-Id: Id0b928db3cbb6263d136d7b9eb8d9453b3c63824
2019-12-05Add missing typecast and re-enable timestamp testDebargha Mukherjee
BUG=webm:701 Change-Id: I1d8a6e263fddb9e4cc6265a313011a18d18bbf9e