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

Unified Diff: media/base/decrypt_config.cc

Issue 1422643002: Pass DecryptConfig parameters over IPC and use it in AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed MediaCodec.CodecException that was added only at level 21 (Android L) Created 5 years, 2 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/decrypt_config.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decrypt_config.cc
diff --git a/media/base/decrypt_config.cc b/media/base/decrypt_config.cc
index 7df9216ed98975b9525282994b6aa9c030689249..c15ac73718bc7f70e6f42b57462fac3645309050 100644
--- a/media/base/decrypt_config.cc
+++ b/media/base/decrypt_config.cc
@@ -5,6 +5,7 @@
#include "media/base/decrypt_config.h"
#include "base/logging.h"
+#include "base/strings/string_number_conversions.h"
namespace media {
@@ -37,4 +38,17 @@ bool DecryptConfig::Matches(const DecryptConfig& config) const {
return true;
}
+std::ostream& DecryptConfig::Print(std::ostream& os) const {
+ os << "key_id:'" << base::HexEncode(key_id_.data(), key_id_.size()) << "'"
+ << " iv:'" << base::HexEncode(iv_.data(), iv_.size()) << "'";
+
+ os << " subsamples:[";
+ for (const SubsampleEntry& entry : subsamples_) {
+ os << "(clear:" << entry.clear_bytes << ", cypher:" << entry.cypher_bytes
+ << ")";
+ }
+ os << "]";
+ return os;
+}
+
} // namespace media
« no previous file with comments | « media/base/decrypt_config.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698