OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 5 #ifndef MEDIA_BASE_VIDEO_FRAME_METADATA_H_ |
6 #define MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 6 #define MEDIA_BASE_VIDEO_FRAME_METADATA_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this | 43 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this |
44 // key. | 44 // key. |
45 FRAME_DURATION, | 45 FRAME_DURATION, |
46 | 46 |
47 // Represents either the fixed frame rate, or the maximum frame rate to | 47 // Represents either the fixed frame rate, or the maximum frame rate to |
48 // expect from a variable-rate source. This value generally remains the | 48 // expect from a variable-rate source. This value generally remains the |
49 // same for all frames in the same session. Use Get/SetDouble() for this | 49 // same for all frames in the same session. Use Get/SetDouble() for this |
50 // key. | 50 // key. |
51 FRAME_RATE, | 51 FRAME_RATE, |
52 | 52 |
53 // This field represents the local time at which either: 1) the frame was | |
54 // generated, if it was done so locally; or 2) the targeted play-out time | |
55 // of the frame, if it was generated from a remote source. | |
miu
2015/08/04 20:37:32
Please also add: "This value is NOT a high-resolut
qiangchen
2015/08/04 20:56:13
Done.
| |
56 REFERENCE_TIME, | |
miu
2015/08/04 20:38:19
Oh, also please mention "Use Get/SetTimeTicks() fo
qiangchen
2015/08/04 20:56:13
Done.
| |
57 | |
53 // A feedback signal that indicates the fraction of the tolerable maximum | 58 // A feedback signal that indicates the fraction of the tolerable maximum |
54 // amount of resources that were utilized to process this frame. A producer | 59 // amount of resources that were utilized to process this frame. A producer |
55 // can check this value after-the-fact, usually via a VideoFrame destruction | 60 // can check this value after-the-fact, usually via a VideoFrame destruction |
56 // observer, to determine whether the consumer can handle more or less data | 61 // observer, to determine whether the consumer can handle more or less data |
57 // volume, and achieve the right quality versus performance trade-off. | 62 // volume, and achieve the right quality versus performance trade-off. |
58 // | 63 // |
59 // Use Get/SetDouble() for this key. Values are interpreted as follows: | 64 // Use Get/SetDouble() for this key. Values are interpreted as follows: |
60 // Less than 0.0 is meaningless and should be ignored. 1.0 indicates a | 65 // Less than 0.0 is meaningless and should be ignored. 1.0 indicates a |
61 // maximum sustainable utilization. Greater than 1.0 indicates the consumer | 66 // maximum sustainable utilization. Greater than 1.0 indicates the consumer |
62 // is likely to stall or drop frames if the data volume is not reduced. | 67 // is likely to stall or drop frames if the data volume is not reduced. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 const base::BinaryValue* GetBinaryValue(Key key) const; | 114 const base::BinaryValue* GetBinaryValue(Key key) const; |
110 | 115 |
111 base::DictionaryValue dictionary_; | 116 base::DictionaryValue dictionary_; |
112 | 117 |
113 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); | 118 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); |
114 }; | 119 }; |
115 | 120 |
116 } // namespace media | 121 } // namespace media |
117 | 122 |
118 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 123 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ |
OLD | NEW |