| 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> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Some VideoFrames have an indication of the color space used. Use | 34 // Some VideoFrames have an indication of the color space used. Use |
| 35 // GetInteger()/SetInteger() and ColorSpace enumeration. | 35 // GetInteger()/SetInteger() and ColorSpace enumeration. |
| 36 COLOR_SPACE, | 36 COLOR_SPACE, |
| 37 | 37 |
| 38 // Indicates that this frame must be copied to a new texture before use, | 38 // Indicates that this frame must be copied to a new texture before use, |
| 39 // rather than being used directly. Specifically this is required for | 39 // rather than being used directly. Specifically this is required for |
| 40 // WebView because of limitations about sharing surface textures between GL | 40 // WebView because of limitations about sharing surface textures between GL |
| 41 // contexts. | 41 // contexts. |
| 42 COPY_REQUIRED, | 42 COPY_REQUIRED, |
| 43 | 43 |
| 44 // Indicates that the frame is owned by the decoder and that destroying the |
| 45 // decoder will make the frame unrenderable. TODO(sandersd): Remove once OSX |
| 46 // and Windows hardware decoders support frames which outlive the decoder. |
| 47 // http://crbug.com/595716 and http://crbug.com/602708. |
| 48 DECODER_OWNS_FRAME, |
| 49 |
| 44 // Indicates if the current frame is the End of its current Stream. Use | 50 // Indicates if the current frame is the End of its current Stream. Use |
| 45 // Get/SetBoolean() for this Key. | 51 // Get/SetBoolean() for this Key. |
| 46 END_OF_STREAM, | 52 END_OF_STREAM, |
| 47 | 53 |
| 48 // The estimated duration of this frame (i.e., the amount of time between | 54 // The estimated duration of this frame (i.e., the amount of time between |
| 49 // the media timestamp of this frame and the next). Note that this is not | 55 // the media timestamp of this frame and the next). Note that this is not |
| 50 // the same information provided by FRAME_RATE as the FRAME_DURATION can | 56 // the same information provided by FRAME_RATE as the FRAME_DURATION can |
| 51 // vary unpredictably for every frame. Consumers can use this to optimize | 57 // vary unpredictably for every frame. Consumers can use this to optimize |
| 52 // playback scheduling, make encoding quality decisions, and/or compute | 58 // playback scheduling, make encoding quality decisions, and/or compute |
| 53 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this | 59 // frame-level resource utilization stats. Use Get/SetTimeDelta() for this |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 const base::BinaryValue* GetBinaryValue(Key key) const; | 150 const base::BinaryValue* GetBinaryValue(Key key) const; |
| 145 | 151 |
| 146 base::DictionaryValue dictionary_; | 152 base::DictionaryValue dictionary_; |
| 147 | 153 |
| 148 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); | 154 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); |
| 149 }; | 155 }; |
| 150 | 156 |
| 151 } // namespace media | 157 } // namespace media |
| 152 | 158 |
| 153 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 159 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ |
| OLD | NEW |