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

Unified Diff: media/base/video_decoder_config.h

Issue 231283005: Add live mode detection in WebM MediaSource parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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..b57877d4d403eaeed263a37eb3ffbf5f607b9380 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -81,7 +81,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
const uint8* extra_data, size_t extra_data_size,
- bool is_encrypted);
+ bool is_encrypted,
+ bool low_delay);
~VideoDecoderConfig();
@@ -94,6 +95,7 @@ class MEDIA_EXPORT VideoDecoderConfig {
const gfx::Size& natural_size,
const uint8* extra_data, size_t extra_data_size,
bool is_encrypted,
+ bool low_delay,
bool record_stats);
// Returns true if this object has appropriate configuration values, false
@@ -135,6 +137,9 @@ class MEDIA_EXPORT VideoDecoderConfig {
// can be encrypted or not encrypted.
bool is_encrypted() const;
+ // Indicates that the decoder should minimized delay (e.g. for a live stream).
+ bool low_delay() const;
Sergey Ulanov 2014/04/24 02:55:14 Can we make individual fields mutable? (i.e. add s
+
private:
VideoCodec codec_;
VideoCodecProfile profile_;
@@ -149,6 +154,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
bool is_encrypted_;
+ bool low_delay_;
+
// Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
// generated copy constructor and assignment operator. Since the extra data is
// typically small, the performance impact is minimal.

Powered by Google App Engine
This is Rietveld 408576698