OLD | NEW |
(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/decoder_buffer_impl.h" |
| 6 |
| 7 namespace chromecast { |
| 8 namespace media { |
| 9 |
| 10 DecoderBufferImpl::DecoderBufferImpl( |
| 11 const scoped_refptr<DecoderBufferBase>& buffer) |
| 12 : buffer_(buffer) {} |
| 13 |
| 14 DecoderBufferImpl::~DecoderBufferImpl() {} |
| 15 |
| 16 StreamId DecoderBufferImpl::stream_id() const { |
| 17 return buffer_->stream_id(); |
| 18 } |
| 19 |
| 20 TimeDelta DecoderBufferImpl::timestamp() const { |
| 21 return buffer_->timestamp(); |
| 22 } |
| 23 |
| 24 void DecoderBufferImpl::set_timestamp(TimeDelta timestamp) { |
| 25 buffer_->set_timestamp(timestamp); |
| 26 } |
| 27 |
| 28 const uint8* DecoderBufferImpl::data() const { |
| 29 return buffer_->data(); |
| 30 } |
| 31 |
| 32 uint8* DecoderBufferImpl::writable_data() const { |
| 33 return buffer_->writable_data(); |
| 34 } |
| 35 |
| 36 size_t DecoderBufferImpl::data_size() const { |
| 37 return buffer_->data_size(); |
| 38 } |
| 39 |
| 40 const DecryptConfig* DecoderBufferImpl::decrypt_config() const { |
| 41 return buffer_->decrypt_config(); |
| 42 } |
| 43 |
| 44 bool DecoderBufferImpl::end_of_stream() const { |
| 45 return buffer_->end_of_stream(); |
| 46 } |
| 47 |
| 48 const scoped_refptr<DecoderBufferBase>& DecoderBufferImpl::buffer() const { |
| 49 return buffer_; |
| 50 } |
| 51 |
| 52 } // namespace media |
| 53 } // namespace chromecast |
OLD | NEW |