L2E: Use libvpx's default q in case of invalid external value
authorCheng Chen <chengchen@google.com>
Mon, 6 Jun 2022 23:46:55 +0000 (16:46 -0700)
committerCheng Chen <chengchen@google.com>
Tue, 7 Jun 2022 18:42:25 +0000 (11:42 -0700)
commit7b1b9f7cd23e085d97c26ed026d2c817d78a14d6
tree05799aadc817f4244af4530fa0d064d8f7807b46
parent7bb4bd36122e55236148190625507efc90ec5b75
L2E: Use libvpx's default q in case of invalid external value

If the external model recommends an invalid q value, we use the
default q selected by libvpx's rate control strategy.

We update the test so that when the external model wants to control
GOP decision, it could get per frame information and just recommend
an invalid q.

Change-Id: I69be4b0ee0800e7ab0706d305242bb87f001b1f7
test/vp9_ext_ratectrl_test.cc
vp9/encoder/vp9_encoder.c
vpx/vpx_ext_ratectrl.h