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

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: Created 6 years, 6 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
« no previous file with comments | « media/base/pipeline.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1cb6535e0ca30aea3d3ae5b004b228e4d1c324d1 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -135,6 +135,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
+ int rotation() const;
scherkus (not reviewing) 2014/07/02 01:44:46 xhwang: do you think rotation() should be part of
+ void set_rotation(int rotation);
scherkus (not reviewing) 2014/07/02 01:44:46 while FFmpeg may prefer to use an int, lets make i
+
private:
VideoCodec codec_;
VideoCodecProfile profile_;
@@ -148,6 +152,7 @@ class MEDIA_EXPORT VideoDecoderConfig {
std::vector<uint8> extra_data_;
bool is_encrypted_;
+ int rotation_;
// Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
// generated copy constructor and assignment operator. Since the extra data is
« no previous file with comments | « media/base/pipeline.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698