|
[Cast] Compute utilization metrics and add performance overlay.
Adds computation of two frame-level utilization metrics to the software
VP8 encoder in Cast: deadline utilization and lossy utilization. The
first is a measure of how long the encoding of each frame takes compared
to the frame duration. The second is a measure of the complexity of a
frame, in terms of the quality versus encoded size trade-off.
In a future change, these utilization metrics will be sent as feedback
signals to the producer of the video frames, allowing the producer to
adjust data volumes based on the consumer's capability throughout a
session. See bug for more details.
Also, this change adds an overlay display, where frame-level performance
metrics are rendered in the lower-right corner of each video frame just
before it is sent. This provides an "on screen display" of end-to-end
system performance. This is turned on with a command line argument:
--vmodule=performance_metrics_overlay=3
BUG= 156767
Committed: https://crrev.com/d9e741512cd6ea56cefd0173b371d0dd29f0cce5
Cr-Commit-Position: refs/heads/master@{#330896}
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+529 lines, -29 lines) |
Patch |
 |
M |
media/cast/BUILD.gn
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/cast/cast.gyp
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/cast/net/cast_transport_config.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/receiver/video_decoder_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/external_video_encoder.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/fake_software_video_encoder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/fake_software_video_encoder.cc
|
View
|
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/cast/sender/h264_vt_encoder.cc
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
A |
media/cast/sender/performance_metrics_overlay.h
|
View
|
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/cast/sender/performance_metrics_overlay.cc
|
View
|
1
|
1 chunk |
+295 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/cast/sender/sender_encoded_frame.h
|
View
|
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/cast/sender/sender_encoded_frame.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/cast/sender/size_adaptable_video_encoder_base.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/size_adaptable_video_encoder_base.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/software_video_encoder.h
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_encoder.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_encoder_impl.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_encoder_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_encoder_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_sender.h
|
View
|
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/video_sender.cc
|
View
|
|
5 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/vp8_encoder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/cast/sender/vp8_encoder.cc
|
View
|
|
3 chunks |
+36 lines, -3 lines |
0 comments
|
Download
|
Total messages: 11 (3 generated)
|