Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: media/cast/sender/sender_encoded_frame.h

Issue 1143363005: Revert of [Cast] Compute utilization metrics and add performance overlay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_CAST_SENDER_SENDER_ENCODED_FRAME_H_
6 #define MEDIA_CAST_SENDER_SENDER_ENCODED_FRAME_H_
7
8 #include "media/cast/net/cast_transport_config.h"
9
10 namespace media {
11 namespace cast {
12
13 // Extends EncodedFrame with additional fields used within the sender-side of
14 // the library.
15 struct SenderEncodedFrame : public EncodedFrame {
16 SenderEncodedFrame();
17 ~SenderEncodedFrame() final;
18
19 // The amount of real-world time it took to encode the frame, divided by the
20 // maximum amount of time allowed. Example: For the software VP8 encoder,
21 // this would be the elapsed encode time (according to the base::TimeTicks
22 // clock) divided by the VideoFrame's duration.
23 //
24 // Meaningful values are non-negative, with 0.0 [impossibly] representing 0%
25 // utilization, 1.0 representing 100% utilization, and values greater than 1.0
26 // indicating the encode time took longer than the media duration of the
27 // frame. Negative values indicate the field was not computed.
28 double deadline_utilization;
29
30 // The amount of "lossiness" needed to encode the frame within the targeted
31 // bandwidth. More-complex frame content and/or lower target encode bitrates
32 // will cause this value to rise.
33 //
34 // Meaningful values are non-negative, with 0.0 indicating the frame is very
35 // simple and/or the target encode bitrate is very large, 1.0 indicating the
36 // frame contains very complex content and/or the target encode bitrate is
37 // very small, and values greater than 1.0 indicating the encoder cannot
38 // encode the frame within the target bitrate (even at its lowest quality
39 // setting). Negative values indicate the field was not computed.
40 double lossy_utilization;
41 };
42
43 } // namespace cast
44 } // namespace media
45
46 #endif // MEDIA_CAST_SENDER_SENDER_ENCODED_FRAME_H_
OLDNEW
« no previous file with comments | « media/cast/sender/performance_metrics_overlay.cc ('k') | media/cast/sender/sender_encoded_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698