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

Unified Diff: media/base/video_frame_metadata.h

Issue 2150203002: Apply rotation for texture backed VideoFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « content/renderer/media/webrtc/media_stream_remote_video_source.cc ('k') | media/base/video_frame_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698