Measure encoding time on encode callbacks.

Permits measuring encoding time even when performed on another thread,
typically for hardware encoding, instead of assuming that encoding is
blocking the calling thread.

Permitted encoding time is increased for hardware encoders since they
can be timed to keep 30fps, for instance, without indicating overload.

Merges EncodingTimeObserver into EncodedFrameObserver to have one post-encode
callback.

BUG=webrtc:5042, webrtc:5132
R=asapersson@webrtc.org, mflodman@webrtc.org

Review URL: https://codereview.webrtc.org/1569853002 .

Cr-Commit-Position: refs/heads/master@{#11499}
This commit is contained in:
Peter Boström
2016-02-05 11:13:28 +01:00
parent 8e8908aadd
commit e449915455
21 changed files with 353 additions and 344 deletions

View File

@ -31,8 +31,6 @@
namespace webrtc {
class EncodedFrameObserver;
namespace vcm {
class VCMProcessTimer {