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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 #include "media/base/bitstream_buffer.h"
2
3 namespace media {
4
5 BitstreamBuffer::BitstreamBuffer(int32 id,
6 base::SharedMemoryHandle handle,
7 size_t size)
8 : id_(id),
9 handle_(handle),
10 size_(size),
11 presentation_timestamp_(kNoTimestamp()) {}
12
13 BitstreamBuffer::BitstreamBuffer(int32 id,
14 base::SharedMemoryHandle handle,
15 size_t size,
16 base::TimeDelta presentation_timestamp)
17 : id_(id),
18 handle_(handle),
19 size_(size),
20 presentation_timestamp_(presentation_timestamp) {}
21
22 BitstreamBuffer::~BitstreamBuffer() {}
23
24 void BitstreamBuffer::SetDecryptParams(const DecryptConfig& decrypt_config) {
25 key_id_ = decrypt_config.key_id();
26 iv_ = decrypt_config.iv();
27 subsamples_ = decrypt_config.subsamples();
28 }
29
30 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698