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

Side by Side Diff: media/base/video_decoder_config.h

Issue 10696182: Add config change handling to SourceBufferStream & ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added copyright headers to manifest files Created 8 years, 4 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/stream_parser_buffer.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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const uint8* extra_data, size_t extra_data_size, 89 const uint8* extra_data, size_t extra_data_size,
90 bool record_stats); 90 bool record_stats);
91 91
92 // Deep copies |video_config|. 92 // Deep copies |video_config|.
93 void CopyFrom(const VideoDecoderConfig& video_config); 93 void CopyFrom(const VideoDecoderConfig& video_config);
94 94
95 // Returns true if this object has appropriate configuration values, false 95 // Returns true if this object has appropriate configuration values, false
96 // otherwise. 96 // otherwise.
97 bool IsValidConfig() const; 97 bool IsValidConfig() const;
98 98
99 // Returns true if all fields in |config| match this config.
100 // Note: The contents of |extra_data_| are compared not the raw pointers.
101 bool Matches(const VideoDecoderConfig& config) const;
102
99 // Returns a human-readable string describing |*this|. For debugging & test 103 // Returns a human-readable string describing |*this|. For debugging & test
100 // output only. 104 // output only.
101 std::string AsHumanReadableString() const; 105 std::string AsHumanReadableString() const;
102 106
103 VideoCodec codec() const; 107 VideoCodec codec() const;
104 VideoCodecProfile profile() const; 108 VideoCodecProfile profile() const;
105 109
106 // Video format used to determine YUV buffer sizes. 110 // Video format used to determine YUV buffer sizes.
107 VideoFrame::Format format() const; 111 VideoFrame::Format format() const;
108 112
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 159
156 scoped_array<uint8> extra_data_; 160 scoped_array<uint8> extra_data_;
157 size_t extra_data_size_; 161 size_t extra_data_size_;
158 162
159 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig); 163 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig);
160 }; 164 };
161 165
162 } // namespace media 166 } // namespace media
163 167
164 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 168 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
OLDNEW
« no previous file with comments | « media/base/stream_parser_buffer.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698