Commit Graph

9 Commits

Author SHA1 Message Date
Cheng Chen
557368a8fa L2E: let external rate control pass in a max frame size
And allow the frame to recode when the frame size is larger
than the input max frame size.

If the max frame size is not specified, let vp9 decide whether
to recode.  The recode follows the vp9's current recoding mechanism.

The rate control api will return the new qindex back to the
external model.

Change-Id: I796fbf713ad50a5b413b0e2501583b565ed2343f
2021-02-03 11:29:06 -08:00
Angie Chiang
3a38edea2c Fix show_index in vp9_extrc_encodeframe_decision()
Change-Id: I93bb1fb3c14126d881d3f691d30875a0062e436c
2020-12-17 18:09:55 -08:00
Angie Chiang
e56e8dcd6f Add gop_index to vpx_ext_ratectrl.h
Bug: webm:1707

Change-Id: I48826d5f3a7cc292825a7f1e30ac6d0f57adc569
2020-11-19 20:15:18 -08:00
Angie Chiang
5b63f0f821 Capitalize VPX_RC_OK / VPX_RC_ERROR
Change-Id: I526bd6a6c2d2095db564f96d63c7ab7ee4dd90ad
2020-11-17 16:50:44 -08:00
James Zern
89ddf6f32a vp9_ext_ratectrl_test: add missing override
for ~ExtRateCtrlTest()

Change-Id: I311a400093c8c1ee2c002ba000d0b33c4fde209f
2020-10-27 17:09:08 -07:00
Angie Chiang
a207a0f6b9 Small changes of vp9_ext_ratectrl_test.cc
Change-Id: I27932c41a826cd3c10cc7801956cd32e4877133a
2020-10-20 17:32:27 -07:00
Angie Chiang
9bfdf4a9d0 Add ref frame info to vpx_rc_encodeframe_info_t
Bug: webm:1707

Change-Id: I2ff9e54a9c8ae535628c1c471a2d078652f49a31
2020-10-20 17:14:10 -07:00
angiebird
90271b2201 Add vpx_rc_status_t
Let callback functions in vpx_ext_ratectrl.h
return vpx_rc_status_t

Bug: webm:1707

Change-Id: I4ebed47278b228740f6c73b07aa472787b2617d2
2020-10-20 17:13:59 -07:00
Angie Chiang
e94000aa35 Add unit test for vp9_ext_ratectrl
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-19 21:49:38 -07:00