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

Unified Diff: media/base/audio_decoder_config.h

Issue 1786733004: Revert of media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « media/base/BUILD.gn ('k') | media/base/audio_decoder_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder_config.h
diff --git a/media/base/audio_decoder_config.h b/media/base/audio_decoder_config.h
index 266de82d605277543a3fec40b2c5a8faec165266..71c893028fff82148b72eb706daad1f69e68d346 100644
--- a/media/base/audio_decoder_config.h
+++ b/media/base/audio_decoder_config.h
@@ -14,7 +14,6 @@
#include "base/time/time.h"
#include "media/base/audio_codecs.h"
#include "media/base/channel_layout.h"
-#include "media/base/encryption_scheme.h"
#include "media/base/media_export.h"
#include "media/base/sample_format.h"
@@ -35,7 +34,7 @@
ChannelLayout channel_layout,
int samples_per_second,
const std::vector<uint8_t>& extra_data,
- const EncryptionScheme& encryption_scheme);
+ bool is_encrypted);
AudioDecoderConfig(const AudioDecoderConfig& other);
@@ -47,7 +46,7 @@
ChannelLayout channel_layout,
int samples_per_second,
const std::vector<uint8_t>& extra_data,
- const EncryptionScheme& encryption_scheme,
+ bool is_encrypted,
base::TimeDelta seek_preroll,
int codec_delay);
@@ -80,12 +79,7 @@
// Whether the audio stream is potentially encrypted.
// Note that in a potentially encrypted audio stream, individual buffers
// can be encrypted or not encrypted.
- bool is_encrypted() const { return encryption_scheme_.is_encrypted(); }
-
- // Encryption scheme used for encrypted buffers.
- const EncryptionScheme& encryption_scheme() const {
- return encryption_scheme_;
- }
+ bool is_encrypted() const { return is_encrypted_; }
private:
AudioCodec codec_;
@@ -95,7 +89,7 @@
int samples_per_second_;
int bytes_per_frame_;
std::vector<uint8_t> extra_data_;
- EncryptionScheme encryption_scheme_;
+ bool is_encrypted_;
// |seek_preroll_| is the duration of the data that the decoder must decode
// before the decoded data is valid.
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/audio_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698