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..3ceb5d8fe8741f071dd02e1220879dccbd5afb4c 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 live_mode); |
~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 live_mode, |
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; |
+ // Returns true if the decoder should try to minimize decoding latency. |
scherkus (not reviewing)
2014/04/10 21:11:49
compare "live_mode()" to the documentation that di
Sergey Ulanov
2014/04/10 23:10:07
Done.
|
+ bool live_mode() const; |
+ |
private: |
VideoCodec codec_; |
VideoCodecProfile profile_; |
@@ -149,6 +154,8 @@ class MEDIA_EXPORT VideoDecoderConfig { |
bool is_encrypted_; |
+ bool live_mode_; |
+ |
// 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. |