| Index: media/base/video_frame_metadata.h
|
| diff --git a/media/base/video_frame_metadata.h b/media/base/video_frame_metadata.h
|
| index 543c71d9f45c84ccd20bfc454d97c132dee94f82..23b40ac3dfd712bd3636f709c0955911f72d86fd 100644
|
| --- a/media/base/video_frame_metadata.h
|
| +++ b/media/base/video_frame_metadata.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/time/time.h"
|
| #include "base/values.h"
|
| #include "media/base/media_export.h"
|
| +#include "media/base/video_rotation.h"
|
|
|
| namespace media {
|
|
|
| @@ -106,6 +107,9 @@ class MEDIA_EXPORT VideoFrameMetadata {
|
| // should use read lock fences.
|
| READ_LOCK_FENCES_ENABLED,
|
|
|
| + // Indicates that the frame is rotated.
|
| + ROTATION,
|
| +
|
| NUM_KEYS
|
| };
|
|
|
| @@ -120,6 +124,7 @@ class MEDIA_EXPORT VideoFrameMetadata {
|
| void SetBoolean(Key key, bool value);
|
| void SetInteger(Key key, int value);
|
| void SetDouble(Key key, double value);
|
| + void SetRotation(Key key, VideoRotation value);
|
| void SetString(Key key, const std::string& value);
|
| void SetTimeDelta(Key key, const base::TimeDelta& value);
|
| void SetTimeTicks(Key key, const base::TimeTicks& value);
|
| @@ -129,6 +134,7 @@ class MEDIA_EXPORT VideoFrameMetadata {
|
| bool GetBoolean(Key key, bool* value) const WARN_UNUSED_RESULT;
|
| bool GetInteger(Key key, int* value) const WARN_UNUSED_RESULT;
|
| bool GetDouble(Key key, double* value) const WARN_UNUSED_RESULT;
|
| + bool GetRotation(Key key, VideoRotation* value) const WARN_UNUSED_RESULT;
|
| bool GetString(Key key, std::string* value) const WARN_UNUSED_RESULT;
|
| bool GetTimeDelta(Key key, base::TimeDelta* value) const WARN_UNUSED_RESULT;
|
| bool GetTimeTicks(Key key, base::TimeTicks* value) const WARN_UNUSED_RESULT;
|
|
|