webrtc/modules/rtp_rtcp
Erik Språng cf15cb5c94 Update how FEC handles protection parameters for key vs delta frames.
This CL:
1) Updates RtpSenderVideo to actually populate the is_key_frame field
properly.

2) Updates UlpfecGenerator to:
 * Allow updating the protection parameters before adding any packet.
 * Apply keyframe protection parameter when at least one buffered
   media packet to be protected belongs to a keyframe.

Updating the parameters in the middle of a frame is allowed, at that
point they only determine how many _complete_ frames are needed in order
to trigger FEC generation. Only that requirement is met, will the
protection parameters (e.g. FEC rate and mask type) actually be applied.

This means that delta-frames adjecent to a key-frame (either ahead of
or after) may be protected in the same way as the key-frame itself.

Bug: webrtc:11340
Change-Id: Ieb84d0ae46de01c17b4ef72251a4cb37814569da
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/195620
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Ying Wang <yinwa@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32787}
2020-12-07 13:36:03 +00:00
..
include Reland "Introduce RTC_NO_UNIQUE_ADDRESS." 2020-11-23 11:29:36 +00:00
mocks Delete SetRtcpXrRrtrStatus, make it a construction-time setting 2020-12-03 10:01:01 +00:00
source Update how FEC handles protection parameters for key vs delta frames. 2020-12-07 13:36:03 +00:00
test/testFec Concatenate string literals at compile time. 2020-01-14 14:47:48 +00:00
BUILD.gn Reland "Introduce RTC_NO_UNIQUE_ADDRESS." 2020-11-23 11:29:36 +00:00
DEPS Replace field trials with WebRtcKeyValueConfig in RtpRtcpModule 2019-02-21 14:25:34 +00:00
OWNERS Remove wildcard ownership for build files. 2020-02-19 14:05:46 +00:00