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

Unified Diff: media/base/decoder_buffer.h

Issue 1018373003: Improving WebM video duration estimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding limited media log (10 times max) for WebM duration estimates. Created 5 years, 9 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 | « no previous file | media/base/decoder_buffer.cc » ('j') | media/filters/source_buffer_range.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decoder_buffer.h
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h
index 665313ddcc1a698a23452c706355c80ed99f98d3..df9baf572c2dba476d0bacc29aac58ea582213fe 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -86,6 +86,12 @@ class MEDIA_EXPORT DecoderBuffer
duration_ = duration;
}
+ bool is_duration_estimated() { return is_duration_estimated_; }
wolenetz 2015/03/28 00:26:05 nit: const method
chcunningham 2015/04/13 23:25:17 Done.
+
+ void set_is_duration_estimated(bool is_estimated) {
wolenetz 2015/03/28 00:26:05 Must these be in DecoderBuffer? Or is StreamParser
chcunningham 2015/04/13 23:25:17 Moved to StreamParserBuffer. SBS is currently the
+ is_duration_estimated_ = is_estimated;
+ }
+
const uint8* data() const {
DCHECK(!end_of_stream());
return data_.get();
@@ -186,6 +192,7 @@ class MEDIA_EXPORT DecoderBuffer
private:
base::TimeDelta timestamp_;
base::TimeDelta duration_;
+ bool is_duration_estimated_;
int size_;
scoped_ptr<uint8, base::AlignedFreeDeleter> data_;
« no previous file with comments | « no previous file | media/base/decoder_buffer.cc » ('j') | media/filters/source_buffer_range.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698