Chromium Code Reviews| Index: media/base/video_frame_metadata.h |
| diff --git a/media/base/video_frame_metadata.h b/media/base/video_frame_metadata.h |
| index 526383b42305d5d3c7961992e65a761eaab3ccf2..95900f8eda25401d322278be3ce418e122b2f178 100644 |
| --- a/media/base/video_frame_metadata.h |
| +++ b/media/base/video_frame_metadata.h |
| @@ -21,6 +21,10 @@ class MEDIA_EXPORT VideoFrameMetadata { |
| CAPTURE_BEGIN_TIME, |
| CAPTURE_END_TIME, |
| + // Some VideoFrames have an indication of the color space used. Use |
| + // GetInteger()/SetInteger() and VideoFrame::ColorSpace enumeration. |
| + COLOR_SPACE, |
| + |
| // The estimated duration of this frame (i.e., the amount of time between |
| // the media timestamp of this frame and the next). Note that this is not |
| // the same information provided by FRAME_RATE as the FRAME_DURATION can |
| @@ -36,9 +40,24 @@ class MEDIA_EXPORT VideoFrameMetadata { |
| // key. |
| FRAME_RATE, |
| - // Some VideoFrames have an indication of the color space used. Use |
| - // GetInteger()/SetInteger() and VideoFrame::ColorSpace enumeration. |
| - COLOR_SPACE, |
| + // A measure of stress, usually related to resource bottlenecks, being |
| + // experienced by the consumers of the video frame. A producer can check |
| + // this value after-the-fact, usually via a VideoFrame done callback, to |
| + // determine whether the consumer can handle more/less data volume. In all, |
| + // this is a feedback mechanism used to achieve the right quality versus |
| + // performance trade-off. |
| + // |
| + // Use Get/SetDouble() for this key. Values are interpreted as follows: |
| + // Less than 0.0 is meaningless and should be ignored. 0.0 indicates zero |
| + // stress. 1.0 indicates a maximum sustainable stress level. Greater than |
| + // 1.0 indicates the processing pipeline is likely to stall or drop frames |
| + // if the data volume is not reduced immediately. |
| + // |
| + // Example: In a system that encodes and transmits video frames over the |
| + // network, the stress level can be used to indicate whether sufficient CPU |
| + // is available for encoding and/or sufficient bandwidth is available for |
| + // transmission over the network. |
| + STRESS_LEVEL, |
|
hubbe
2015/06/02 00:23:22
I don't particularly like this name.
How about RES
miu
2015/06/02 03:07:34
Done. This is actually what I had in my working p
|
| NUM_KEYS |
| }; |