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

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: 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/bitstream_buffer.h ('k') | media/base/decoder_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5491bcb2de1ac13f0c81a3ee80b95a1f69e6103f
--- /dev/null
+++ b/media/base/bitstream_buffer.cc
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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::SetDecryptConfig(const DecryptConfig& decrypt_config) {
+ key_id_ = decrypt_config.key_id();
+ iv_ = decrypt_config.iv();
+ subsamples_ = decrypt_config.subsamples();
+}
+
+} // namespace media
« no previous file with comments | « media/base/bitstream_buffer.h ('k') | media/base/decoder_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698