Description[cast] Add optional VideoEncoder method to flush frames.
This patch adds EmitFrames() to VideoEncoder. The method is documented
as indicating that the encoder should produce all the frames that it may
be buffering for analysis.
This patch modifies VideoSender::InsertRawVideoFrame() to call
EmitFrames() when a frames is dropped because the in-flight frames
duration exceeds the target playout delay.
This patch provides an implementation of EmitFrames() for the
VideoToolbox H.264 encoder, which buffers frames for analysis as
described in the bug. It also uses the existing
max_number_of_video_buffers_used field in VideoConfig to set the
upper bound on the encoder's frame window.
BUG=450798
R=hclam, miu, DaleCurtis, Robert Sesek
Committed: https://crrev.com/2c176764c9300863a30e028417ee5c6a5aadc6ad
Cr-Commit-Position: refs/heads/master@{#313643}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove unrelated changes that belong in a different CL. #Patch Set 3 : Add documentation for VideoConfig::max_number_of_video_buffers_used #
Total comments: 1
Patch Set 4 : Update comment on EmitFrames() #Patch Set 5 : Rebase #Patch Set 6 : Rebase #
Messages
Total messages: 21 (6 generated)
|