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

Unified Diff: media/base/video_decoder_config.h

Issue 10910293: Add is_encrypted() in VideoDecoderConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move is_encrypted into VideoDecoderConfig. Created 8 years, 3 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/video_decoder_config.cc » ('j') | media/base/video_decoder_config.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_decoder_config.h
diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
index 93b1257d87c3bedd8e82dec03e129d70955124ae..f8321d86feea883394fd9c88373ce89ee55628c4 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
#define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
+#include <string>
+
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
@@ -73,7 +75,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
- const uint8* extra_data, size_t extra_data_size);
+ const uint8* extra_data, size_t extra_data_size,
+ bool is_encrypted);
~VideoDecoderConfig();
@@ -85,6 +88,7 @@ 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 record_stats);
// Deep copies |video_config|.
@@ -124,6 +128,12 @@ class MEDIA_EXPORT VideoDecoderConfig {
uint8* extra_data() const;
size_t extra_data_size() const;
+ // Whether the video stream is potentially encrypted.
+ // Note that in a potentially encrypted video stream, individual buffers
+ // can be encrypted or not encrypted.
+ bool is_encrypted() const;
+ void set_is_encrypted(bool is_encrypted);
scherkus (not reviewing) 2012/09/17 15:54:10 note that there are no other setters on this class
xhwang 2012/09/17 19:42:25 Done.
+
private:
VideoCodec codec_;
VideoCodecProfile profile_;
@@ -137,6 +147,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
scoped_array<uint8> extra_data_;
size_t extra_data_size_;
+ bool is_encrypted_;
+
DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig);
};
« no previous file with comments | « no previous file | media/base/video_decoder_config.cc » ('j') | media/base/video_decoder_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698