summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-15Add SetEncodeSpeed() to SimpleEncodeangiebird
Change-Id: I2fcf37045a96bb101de3359e2e69dcc266c1dc10
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-10Merge "test/*: rename *TestCase to TestSuite"James Zern
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-07-07vp8,vpx_dsp:[loongson] fix bugs reported by clangjinbo
1. Adjust variable type to match clang compiler. Clang is more strict on the type of asm operands, float or double type variable should use constraint 'f', integer variable should use constraint 'r'. 2. Fix prob of using r-value in output operands. clang report error: 'invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions'. Change-Id: Iae9e08f55f249059066c391534013e320812463e
2020-07-06vp9: Update last_q for dropped framesMarco Paniconi
last_q is used in resize logic, should always be last Q selected for previous frame, encoded or dropped. Change-Id: Ie9019ccf5a9e3acc8456a2e70cc2aa8d1c90236e
2020-07-06vp9: Fix to use last_q for resize checkMarco Paniconi
For temporal layers resize is only checked on the base/TL0 frames. So rc->last_q should be used, which because rc is in the layer context, rc->last_q will correspond to the qindex on last TL0 frame. In the previous code cm->base_qindex was used, which would correspond to qindex on last encoded frame, which is not TL0 when temporal_layers > 1. Change-Id: Iaf86f7156d2d48ae99a1b34ad576d453d490e746
2020-07-01vp9-svc: Fix the bitrate control for spatial svcSreerenj Balachandran
Make sure to initialize the layer context for spatial-svc which has a single temporal layer. Change-Id: I026ecec483555658e09d6d8893e56ab62ee6914b
2020-06-29add CONTRIBUTING.mdJames Zern
serves as a brief introduction and adds a link to the gerrit instructions on webmproject.org. Bug: webm:1669 Change-Id: If1d483eb48e2edcda8c51e66bdd1a86b7c35b986
2020-06-29vp8,vpx_dsp:[loongson] fix specification of instruction namejinbo
1.'xor,or,and' to 'pxor,por,pand'. In the case of operating FPR, gcc supports both of them, clang only supports the second type. 2.'dsrl,srl' to 'ssrld,ssrlw'. In the case of operating FPR, gcc supports both of them, clang only supports the second type. Change-Id: I93b47348e7c6580d99f57dc11165b4645236533c
2020-06-26vp9-svc: Fix to setting frame size for dynamic resizeMarco Paniconi
For svc with dynamic resize (only for single_layer_svc mode), add flag to indicate resized width/height has already been set, otherwise on the resized/trigger frame (resize_pending=1), the wrong resolution may be set if oxcf->width/height is different than layer width/height in single_layer_svc mode. Change-Id: I24403ee93fc96b830a9bf7c66d763a48762cdcb4
2020-06-25vp9-svc: Allow scale_references for single layer svcMarco Paniconi
This is needed to allow for newmv search in nonrd_pickmode for resize/scaled frame, and for int_pro_motion_estimation on resized/scaled frame. Change-Id: I5e2fdbc4706a10813c1b00f6194e2442f648905a
2020-06-19Merge "tools/lint-hunks.py: skip third_party files"James Zern
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-18tools/lint-hunks.py: skip third_party filesJames Zern
Change-Id: I2fda3119c08b5755f1a9b2fad1125090b0d86850
2020-06-18vp9-rtc: Fix to resetting drop_spatial_layerMarco Paniconi
The reset happens on the base spatial layer, before encoding. But it should be reset on the first_spatial_layer_to_encode, which may not be 0. Change-Id: I38ef686b4459ca7433062adbfe32ef2134e1ad60
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-15vp9-svc: Fix to dynamic resize for svc denoisingMarco Paniconi
Fix the logic to allow denoiser reset on resize for SVC mode, as dynamic resize is allowed for SVC under single_layer mode. Change-Id: I7776c68dadff2ccbce9b0b4a7f0d12624c2ccf90
2020-06-11Let SetExternalGroupOfPicturesMap use c-style arrangiebird
Change-Id: Ic92ce5a3cc5bb74120eb32fc6219e43b1b861f14
2020-06-08Fix assertion error in simple_encode.ccangiebird
Change-Id: I271d11cc35d34d5450a8b56fabcedaf2bb7c6565
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-26Init static_scene_max_gf_interval in vp9_rc_init()angiebird
Change-Id: I2cad885fac2fd5f3e84d02b905a2ce59eb66760e
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-26Add GOP_COMMANDangiebird
Send GOP_COMMAND to vp9 for setting gop decisions on the fly. GOP_COMMAND has three members. use: use this command to set gop or use vp9's gop decision. show_frame_count: number of show frames in this gop. use_alt_ref: use alt ref frame or not. Move the logic of processing external_arf_indexes_ from get_gop_coding_frame_num() to GetGopCommand() and GetCodingFrameNumFromGopMap(). Change-Id: Ic1942c7a4cf6eecdf3507864577688350c7ef0cf
2020-05-20Refactor decode_api_test and realtime_testangiebird
Replace NULL by nullptr. Use override specifier over virtual specifier. Change-Id: Iac2c97f997abd6ed9a5cd3991e052e79996f40f4
2020-05-19vp9_decoder: free postproc_state.prev_mipJames Zern
this fixes a leak when using MFQE BUG=webm:1692 Change-Id: I19fb2f07155769f59924e0843989b3d3f8899bf6
2020-05-15vp9-svc: Fix key frame update refresh simulcast flexible svcMarco Paniconi
For flexible svc in simulcast mode: don't allow refresh of all reference slots on key frame. Which slots to update should be based on the user flags. Change-Id: I3597c61ebcdfed2055bbdffec7ce701fad892744
2020-05-15Merge "vp9_firstpass.c: limit mv_limits with MV_MAX in motion_search"Yunqing Wang
2020-05-13vp9-rtc: Increase thresh for scene detectionMarco Paniconi
For CBR screen content mode. Makes it more robust to false detections. Change-Id: Icad89adb6f79b530b589bba2c71ba88ee5088d37
2020-05-12Merge "Don't collect stats if they won't be used"Jerome Jiang
2020-05-12Merge "Temporarily convert to 64 bits to avoid overflows"James Zern
2020-05-11Temporarily convert to 64 bits to avoid overflowsJorge E. Moreira
In the vp8_cost_branch function a couple of unsigned int are being multiplied by integer coefficients and added to later be divided by 256. While the end result most likely fits an unsigned int, the intermediary result of multiplying and adding sometimes doesn't (I was able to reproduce it by leaving the encoder running at 60 fps for a while). To avoid the multiplication overflow (which is undefined behavior and causes a wrong result anyways) the calculation is performed using unsigned long long instead and cast to unsigned int for return. Bug: b/154172422 Test: run cuttlefish with webrtc enabled for an hour Change-Id: If7ebbda38b2450a59ed3c99ffbb59dc62431a324
2020-05-11Merge changes Ib55d46e9,I4a4feeabJames Zern
* changes: decode_api_test: add negative test for vpx_codec_error_detail examples: use die() on dec/enc_init() failure
2020-05-09Merge "Fix mac build with vp9 ratectrl interface"Jerome Jiang
2020-05-08Don't collect stats if they won't be usedJorge E. Moreira
When the encoder is run continuously for a few minutes at 60 fps, the total_target_vs_actual field overflows. Since this field is a signed integer that's considered undefined behavior in C++, which causes an abort when used in an android binary (those run with ubsan enabled) Bug: b/154172422 Test: run cuttelfish with webrtc enabled for an hour Change-Id: I8f7d9d0884311a6338bdcdec76348b8cc3ce8c69
2020-05-08Merge "vpx_dec_fuzzer: add coverage for VP9D_SET_LOOP_FILTER_OPT"James Zern
2020-05-08Fix mac build with vp9 ratectrl interfaceJerome Jiang
Add -std=c++11 for darwin build. Change-Id: I760d4f7096bc33520c02b2cd7000fed9ac6cdd90
2020-05-07decode_api_test: add negative test for vpx_codec_error_detailJames Zern
Change-Id: Ib55d46e9290d2bd36345ff4a9737e227664c2a5b
2020-05-07examples: use die() on dec/enc_init() failureJames Zern
rather than die_codec(). calling any api functions with an uninitialized codec context is undefined. this avoids a crash in a call to vpx_codec_error_detail(). BUG=webm:1688 Change-Id: I4a4feeabc1cafa44c8d2f24587fad79e313dba6d
2020-05-07Merge "libs.mk,msvc: add missing vp9rc project"James Zern