Update broken references to image assets
[chromium-blink-merge.git] / chromecast / media / cma / base / cast_decoder_buffer_impl.cc
blobe29b620ef1b14ca4808bf5370970f87dfa772022
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.
5 #include "chromecast/media/cma/base/cast_decoder_buffer_impl.h"
7 namespace chromecast {
8 namespace media {
10 CastDecoderBufferImpl::CastDecoderBufferImpl(
11 const scoped_refptr<DecoderBufferBase>& buffer)
12 : buffer_(buffer) {}
14 CastDecoderBufferImpl::~CastDecoderBufferImpl() {}
16 StreamId CastDecoderBufferImpl::stream_id() const {
17 return buffer_->stream_id();
20 int64_t CastDecoderBufferImpl::timestamp() const {
21 return buffer_->timestamp().InMicroseconds();
24 const uint8* CastDecoderBufferImpl::data() const {
25 return buffer_->data();
28 size_t CastDecoderBufferImpl::data_size() const {
29 return buffer_->data_size();
32 const CastDecryptConfig* CastDecoderBufferImpl::decrypt_config() const {
33 return buffer_->decrypt_config();
36 bool CastDecoderBufferImpl::end_of_stream() const {
37 return buffer_->end_of_stream();
40 const scoped_refptr<DecoderBufferBase>& CastDecoderBufferImpl::buffer() const {
41 return buffer_;
44 } // namespace media
45 } // namespace chromecast