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

Side by Side Diff: media/base/video_frame_metadata.h

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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
« no previous file with comments | « content/content_browser.gypi ('k') | media/capture/content/thread_safe_capture_oracle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
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
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_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | media/capture/content/thread_safe_capture_oracle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698