| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_IMPL_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include "chromecast/public/media/cast_decoder_buffer.h" | 8 #include "chromecast/public/media/cast_decoder_buffer.h" |
| 9 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 9 #include "chromecast/media/cma/base/decoder_buffer_base.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Returns the decrypt configuration. | 36 // Returns the decrypt configuration. |
| 37 // Returns NULL if the buffer has no decrypt info. | 37 // Returns NULL if the buffer has no decrypt info. |
| 38 const CastDecryptConfig* decrypt_config() const override; | 38 const CastDecryptConfig* decrypt_config() const override; |
| 39 | 39 |
| 40 // Indicate if this is a special frame that indicates the end of the stream. | 40 // Indicate if this is a special frame that indicates the end of the stream. |
| 41 // If true, functions to access the frame content cannot be called. | 41 // If true, functions to access the frame content cannot be called. |
| 42 bool end_of_stream() const override; | 42 bool end_of_stream() const override; |
| 43 | 43 |
| 44 const scoped_refptr<DecoderBufferBase>& buffer() const; | 44 const scoped_refptr<DecoderBufferBase>& buffer() const; |
| 45 void set_buffer(const scoped_refptr<DecoderBufferBase>& buffer); |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 scoped_refptr<DecoderBufferBase> buffer_; | 48 scoped_refptr<DecoderBufferBase> buffer_; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace media | 51 } // namespace media |
| 51 } // namespace chromecast | 52 } // namespace chromecast |
| 52 | 53 |
| 53 #endif // CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_BASE_H_ | 54 #endif // CHROMECAST_MEDIA_CMA_BASE_CAST_DECODER_BUFFER_BASE_H_ |
| OLD | NEW |