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 <string> | |
9 | |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/time/time.h" | 11 #include "base/time/time.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
11 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
12 | 14 |
13 namespace media { | 15 namespace media { |
14 | 16 |
15 class MEDIA_EXPORT VideoFrameMetadata { | 17 class MEDIA_EXPORT VideoFrameMetadata { |
16 public: | 18 public: |
17 enum Key { | 19 enum Key { |
(...skipping 25 matching lines...) Expand all Loading... | |
43 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this | 45 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this |
44 // key. | 46 // key. |
45 FRAME_DURATION, | 47 FRAME_DURATION, |
46 | 48 |
47 // Represents either the fixed frame rate, or the maximum frame rate to | 49 // Represents either the fixed frame rate, or the maximum frame rate to |
48 // expect from a variable-rate source. This value generally remains the | 50 // 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 | 51 // same for all frames in the same session. Use Get/SetDouble() for this |
50 // key. | 52 // key. |
51 FRAME_RATE, | 53 FRAME_RATE, |
52 | 54 |
55 // This is a boolean that signals that the video capture engine detects | |
56 // interactive content. One possible optimization that this signal can help | |
57 // with is remote content: adjusting end-to-end latency down to help the | |
58 // user better coordinate their actions | |
miu
2015/12/08 00:16:16
nit: Period at end of sentence.
Irfan
2015/12/08 01:30:18
Done.
| |
59 // | |
60 // Use Get/SetBoolean for this key. | |
61 INTERACTIVE_CONTENT, | |
62 | |
53 // This field represents the local time at which either: 1) the frame was | 63 // 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 | 64 // 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. This value is NOT | 65 // of the frame, if it was generated from a remote source. This value is NOT |
56 // a high-resolution timestamp, and so it should not be used as a | 66 // a high-resolution timestamp, and so it should not be used as a |
57 // presentation time; but, instead, it should be used for buffering playback | 67 // presentation time; but, instead, it should be used for buffering playback |
58 // and for A/V synchronization purposes. | 68 // and for A/V synchronization purposes. |
59 // Use Get/SetTimeTicks() for this key. | 69 // Use Get/SetTimeTicks() for this key. |
60 REFERENCE_TIME, | 70 REFERENCE_TIME, |
61 | 71 |
62 // A feedback signal that indicates the fraction of the tolerable maximum | 72 // A feedback signal that indicates the fraction of the tolerable maximum |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 const base::BinaryValue* GetBinaryValue(Key key) const; | 128 const base::BinaryValue* GetBinaryValue(Key key) const; |
119 | 129 |
120 base::DictionaryValue dictionary_; | 130 base::DictionaryValue dictionary_; |
121 | 131 |
122 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); | 132 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); |
123 }; | 133 }; |
124 | 134 |
125 } // namespace media | 135 } // namespace media |
126 | 136 |
127 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 137 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ |
OLD | NEW |