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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/pipeline.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DECODER_CONFIG_H_ 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Optional byte data required to initialize video decoders, such as H.264 128 // Optional byte data required to initialize video decoders, such as H.264
129 // AAVC data. 129 // AAVC data.
130 const uint8* extra_data() const; 130 const uint8* extra_data() const;
131 size_t extra_data_size() const; 131 size_t extra_data_size() const;
132 132
133 // Whether the video stream is potentially encrypted. 133 // Whether the video stream is potentially encrypted.
134 // Note that in a potentially encrypted video stream, individual buffers 134 // Note that in a potentially encrypted video stream, individual buffers
135 // can be encrypted or not encrypted. 135 // can be encrypted or not encrypted.
136 bool is_encrypted() const; 136 bool is_encrypted() const;
137 137
138 // Rotation of frame (0, 90, 180, 270) given in metadata
139 int rotation() const;
scherkus (not reviewing) 2014/07/02 01:44:46 xhwang: do you think rotation() should be part of
140 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
141
138 private: 142 private:
139 VideoCodec codec_; 143 VideoCodec codec_;
140 VideoCodecProfile profile_; 144 VideoCodecProfile profile_;
141 145
142 VideoFrame::Format format_; 146 VideoFrame::Format format_;
143 147
144 gfx::Size coded_size_; 148 gfx::Size coded_size_;
145 gfx::Rect visible_rect_; 149 gfx::Rect visible_rect_;
146 gfx::Size natural_size_; 150 gfx::Size natural_size_;
147 151
148 std::vector<uint8> extra_data_; 152 std::vector<uint8> extra_data_;
149 153
150 bool is_encrypted_; 154 bool is_encrypted_;
155 int rotation_;
151 156
152 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler 157 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
153 // generated copy constructor and assignment operator. Since the extra data is 158 // generated copy constructor and assignment operator. Since the extra data is
154 // typically small, the performance impact is minimal. 159 // typically small, the performance impact is minimal.
155 }; 160 };
156 161
157 } // namespace media 162 } // namespace media
158 163
159 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 164 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
OLDNEW
« 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