Configure frame references in VP9 encoder wrapper.

Bug: webrtc:9585
Change-Id: I3f90d8f2b81556cfb5fa9123607ab0a9ade2bf3f
Reviewed-on: https://webrtc-review.googlesource.com/93469
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24915}
This commit is contained in:
Sergey Silkin
2018-10-01 17:13:50 +02:00
committed by Commit Bot
parent 957c62e0d6
commit 390f358344
4 changed files with 142 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class VP9EncoderImpl : public VP9Encoder {
CodecSpecificInfoVP9* vp9_info);
void UpdateReferenceBuffers(const vpx_codec_cx_pkt& pkt,
const size_t pic_num);
vpx_svc_ref_frame_config_t SetReferences(bool is_key_pic);
bool ExplicitlyConfiguredSpatialLayers() const;
bool SetSvcRates(const VideoBitrateAllocation& bitrate_allocation);
@ -116,6 +117,7 @@ class VP9EncoderImpl : public VP9Encoder {
uint8_t num_active_spatial_layers_; // Number of actively encoded SLs
bool is_svc_;
InterLayerPredMode inter_layer_pred_;
bool external_ref_control_;
std::vector<FramerateController> framerate_controller_;