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

Side by Side Diff: chromecast/media/cma/base/decoder_buffer_wrapper.h

Issue 535563002: Add the base class for decoder buffers used in cast media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 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_
OLDNEW
« no previous file with comments | « chromecast/media/cma/base/decoder_buffer_base.cc ('k') | chromecast/media/cma/base/decoder_buffer_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698