OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 #ifndef CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/ref_counted.h" | |
10 #include "chromecast/media/cma/base/decoder_buffer_base.h" | |
11 | |
12 namespace media { | |
13 class DecoderBuffer; | |
14 } | |
15 | |
16 namespace chromecast { | |
17 namespace media { | |
18 | |
19 class DecoderBufferWrapper : public DecoderBufferBase { | |
xhwang
2014/09/03 17:13:49
Add documentation about what this wrapper actually
damienv1
2014/09/03 21:01:58
Done.
| |
20 public: | |
21 explicit DecoderBufferWrapper( | |
22 const scoped_refptr< ::media::DecoderBuffer>& buffer); | |
23 | |
24 // DecoderBufferBase implementation. | |
25 virtual base::TimeDelta timestamp() const OVERRIDE; | |
26 virtual const uint8* data() const OVERRIDE; | |
27 virtual uint8* writable_data() const OVERRIDE; | |
28 virtual int data_size() const OVERRIDE; | |
29 virtual const ::media::DecryptConfig* decrypt_config() const OVERRIDE; | |
30 virtual bool end_of_stream() const OVERRIDE; | |
31 | |
32 private: | |
33 virtual ~DecoderBufferWrapper(); | |
34 | |
35 scoped_refptr< ::media::DecoderBuffer> const buffer_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(DecoderBufferWrapper); | |
38 }; | |
39 | |
40 } // namespace media | |
41 } // namespace chromecast | |
42 | |
43 #endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ | |
OLD | NEW |