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

Unified Diff: media/base/video_decoder_config.h

Issue 363813002: Update to Pipeline Metadata and Decoder Stream for Orientation Data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: VideoRotation enum added Created 6 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_decoder_config.h
diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
index 3cc33d927158a5c279c2e91b0e5dbd9aad6467e1..3ce9ba7790d4cfa92f1643a3dd04cac205a9ef80 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -66,6 +66,8 @@ enum VideoCodecProfile {
VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX,
};
+enum VideoRotation { kRotate0 = 0, kRotate90, kRotate180, kRotate270 };
scherkus (not reviewing) 2014/07/07 20:52:38 let's move this into its own file (media/base/vide
+
class MEDIA_EXPORT VideoDecoderConfig {
public:
// Constructs an uninitialized object. Clients should call Initialize() with
@@ -135,6 +137,10 @@ class MEDIA_EXPORT VideoDecoderConfig {
// can be encrypted or not encrypted.
bool is_encrypted() const;
+ // Rotation of frame (0, 90, 180, 270) given in metadata
+ VideoRotation rotation() const;
+ void set_rotation(VideoRotation rotation);
+
private:
VideoCodec codec_;
VideoCodecProfile profile_;
@@ -148,6 +154,7 @@ class MEDIA_EXPORT VideoDecoderConfig {
std::vector<uint8> extra_data_;
bool is_encrypted_;
+ VideoRotation rotation_;
// Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
// generated copy constructor and assignment operator. Since the extra data is

Powered by Google App Engine
This is Rietveld 408576698