With Svc controller do not produce frame that will be dropped anyway
This cover scenario where target bitrate is changed in a middle of of group of frame after spatial upswitch. This change should avoid wasting encoder resources to produce those frames, reduce number of errors "Encoder produced a frame for layer that wasn't requested" Bug: webrtc:11999 Change-Id: I06045259b1cee2c21bfdabbafff3892b57c82a84 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/230543 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34969}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
5d3bf6ae2a
commit
32b917ac41
@ -82,6 +82,12 @@ class LibvpxVp9Encoder : public VP9Encoder {
|
||||
bool ExplicitlyConfiguredSpatialLayers() const;
|
||||
bool SetSvcRates(const VideoBitrateAllocation& bitrate_allocation);
|
||||
|
||||
// Configures which spatial layers libvpx should encode according to
|
||||
// configuration provided by svc_controller_.
|
||||
void EnableSpatialLayer(int sid);
|
||||
void DisableSpatialLayer(int sid);
|
||||
void SetActiveSpatialLayers();
|
||||
|
||||
void GetEncodedLayerFrame(const vpx_codec_cx_pkt* pkt);
|
||||
|
||||
// Callback function for outputting packets per spatial layer.
|
||||
|
||||
Reference in New Issue
Block a user