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/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 |
OLD | NEW |