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

Unified Diff: media/base/bitstream_buffer.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: 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
Index: media/base/bitstream_buffer.cc
diff --git a/media/base/bitstream_buffer.cc b/media/base/bitstream_buffer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d20cdcf6caf9bdbee851401d7f58ab517f93db57
--- /dev/null
+++ b/media/base/bitstream_buffer.cc
@@ -0,0 +1,30 @@
+#include "media/base/bitstream_buffer.h"
+
+namespace media {
+
+BitstreamBuffer::BitstreamBuffer(int32 id,
+ base::SharedMemoryHandle handle,
+ size_t size)
+ : id_(id),
+ handle_(handle),
+ size_(size),
+ presentation_timestamp_(kNoTimestamp()) {}
+
+BitstreamBuffer::BitstreamBuffer(int32 id,
+ base::SharedMemoryHandle handle,
+ size_t size,
+ base::TimeDelta presentation_timestamp)
+ : id_(id),
+ handle_(handle),
+ size_(size),
+ presentation_timestamp_(presentation_timestamp) {}
+
+BitstreamBuffer::~BitstreamBuffer() {}
+
+void BitstreamBuffer::SetDecryptParams(const DecryptConfig& decrypt_config) {
+ key_id_ = decrypt_config.key_id();
+ iv_ = decrypt_config.iv();
+ subsamples_ = decrypt_config.subsamples();
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698