Change UpdateRateControl() to return bool
authorWan-Teh Chang <wtc@google.com>
Thu, 16 Mar 2023 20:30:01 +0000 (13:30 -0700)
committerWan-Teh Chang <wtc@google.com>
Fri, 17 Mar 2023 02:55:41 +0000 (19:55 -0700)
commit430c6c1553df0abfe2dadc480b21dd691a98140f
treea6e1179ddca3aa25b8813cf5d0c1cf4daffce839
parentaf63e319789a26fe5d2c63a0da227cb03aff6f8f
Change UpdateRateControl() to return bool

Change the VP9RateControlRtcConfig constructor to initialize
ss_number_layers (to 1).

Change UpdateRateControl() to return bool so that it can report failure
(due to invalid configuration).

Also change InitRateControl() to return bool to propagate the return
value of UpdateRateControl().

Note: This is a port of the libaom CL
https://aomedia-review.googlesource.com/c/aom/+/172042.

Change-Id: I90b60353b5f15692dba5d89e7b1a9c81bb2fdd89
test/vp8_ratectrl_rtc_test.cc
test/vp9_ratectrl_rtc_test.cc
vp8/vp8_ratectrl_rtc.cc
vp8/vp8_ratectrl_rtc.h
vp9/ratectrl_rtc.cc
vp9/ratectrl_rtc.h