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

Side by Side Diff: chromecast/media/cma/base/cast_decoder_buffer_impl.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromecast/media/cma/base/cast_decoder_buffer_impl.h"
6
7 namespace chromecast {
8 namespace media {
9
10 CastDecoderBufferImpl::CastDecoderBufferImpl(
11 const scoped_refptr<DecoderBufferBase>& buffer)
12 : buffer_(buffer) {}
13
14 CastDecoderBufferImpl::~CastDecoderBufferImpl() {}
15
16 StreamId CastDecoderBufferImpl::stream_id() const {
17 return buffer_->stream_id();
18 }
19
20 int64_t CastDecoderBufferImpl::timestamp() const {
21 return buffer_->timestamp().InMicroseconds();
22 }
23
24 const uint8* CastDecoderBufferImpl::data() const {
25 return buffer_->data();
26 }
27
28 size_t CastDecoderBufferImpl::data_size() const {
29 return buffer_->data_size();
30 }
31
32 const CastDecryptConfig* CastDecoderBufferImpl::decrypt_config() const {
33 return buffer_->decrypt_config();
34 }
35
36 bool CastDecoderBufferImpl::end_of_stream() const {
37 return buffer_->end_of_stream();
38 }
39
40 const scoped_refptr<DecoderBufferBase>& CastDecoderBufferImpl::buffer() const {
41 return buffer_;
42 }
43
44 } // namespace media
45 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698