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

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: 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // maximum sustainable utilization. Greater than 1.0 indicates the consumer 72 // maximum sustainable utilization. Greater than 1.0 indicates the consumer
71 // is likely to stall or drop frames if the data volume is not reduced. 73 // is likely to stall or drop frames if the data volume is not reduced.
72 // 74 //
73 // Example: In a system that encodes and transmits video frames over the 75 // Example: In a system that encodes and transmits video frames over the
74 // network, this value can be used to indicate whether sufficient CPU 76 // network, this value can be used to indicate whether sufficient CPU
75 // is available for encoding and/or sufficient bandwidth is available for 77 // is available for encoding and/or sufficient bandwidth is available for
76 // transmission over the network. The maximum of the two utilization 78 // transmission over the network. The maximum of the two utilization
77 // measurements would be used as feedback. 79 // measurements would be used as feedback.
78 RESOURCE_UTILIZATION, 80 RESOURCE_UTILIZATION,
79 81
82 // This is a boolean that signals that the video capture oracle
83 // currently detects animation content.
84 //
85 // Use Get/SetBoolean for this key.
86 ANIMATION_CONTENT,
87
88 // This is a boolean that signals that there were UI events observed
89 // at the time of the capture.
90 //
91 // Use Get/SetBoolean for this key.
92 USER_INTERACTION,
93
80 NUM_KEYS 94 NUM_KEYS
81 }; 95 };
82 96
83 VideoFrameMetadata(); 97 VideoFrameMetadata();
84 ~VideoFrameMetadata(); 98 ~VideoFrameMetadata();
85 99
86 bool HasKey(Key key) const; 100 bool HasKey(Key key) const;
87 101
88 void Clear() { dictionary_.Clear(); } 102 void Clear() { dictionary_.Clear(); }
89 103
(...skipping 28 matching lines...) Expand all
118 const base::BinaryValue* GetBinaryValue(Key key) const; 132 const base::BinaryValue* GetBinaryValue(Key key) const;
119 133
120 base::DictionaryValue dictionary_; 134 base::DictionaryValue dictionary_;
121 135
122 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); 136 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata);
123 }; 137 };
124 138
125 } // namespace media 139 } // namespace media
126 140
127 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ 141 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698