| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 MEDIA_FILTERS_DECODER_STREAM_H_ | 5 #ifndef MEDIA_FILTERS_DECODER_STREAM_H_ |
| 6 #define MEDIA_FILTERS_DECODER_STREAM_H_ | 6 #define MEDIA_FILTERS_DECODER_STREAM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 DEMUXER_READ_ABORTED, // Demuxer returned aborted read. | 47 DEMUXER_READ_ABORTED, // Demuxer returned aborted read. |
| 48 DECODE_ERROR, // Decoder returned decode error. | 48 DECODE_ERROR, // Decoder returned decode error. |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 // Indicates completion of a DecoderStream initialization. | 51 // Indicates completion of a DecoderStream initialization. |
| 52 typedef base::Callback<void(bool success)> InitCB; | 52 typedef base::Callback<void(bool success)> InitCB; |
| 53 | 53 |
| 54 // Indicates completion of a DecoderStream read. | 54 // Indicates completion of a DecoderStream read. |
| 55 typedef base::Callback<void(Status, const scoped_refptr<Output>&)> ReadCB; | 55 typedef base::Callback<void(Status, const scoped_refptr<Output>&)> ReadCB; |
| 56 | 56 |
| 57 // Callback to report decode statistics. |
| 58 typedef base::Callback<void(uint64_t bytes)> StatisticsCB; |
| 59 |
| 57 DecoderStream( | 60 DecoderStream( |
| 58 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 61 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 59 ScopedVector<Decoder> decoders, | 62 ScopedVector<Decoder> decoders, |
| 60 const scoped_refptr<MediaLog>& media_log); | 63 const scoped_refptr<MediaLog>& media_log); |
| 61 virtual ~DecoderStream(); | 64 virtual ~DecoderStream(); |
| 62 | 65 |
| 63 // Returns the string representation of the StreamType for logging purpose. | 66 // Returns the string representation of the StreamType for logging purpose. |
| 64 std::string GetStreamTypeString(); | 67 std::string GetStreamTypeString(); |
| 65 | 68 |
| 66 // Initializes the DecoderStream and returns the initialization result | 69 // Initializes the DecoderStream and returns the initialization result |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 273 |
| 271 template <> | 274 template <> |
| 272 int DecoderStream<DemuxerStream::AUDIO>::GetMaxDecodeRequests() const; | 275 int DecoderStream<DemuxerStream::AUDIO>::GetMaxDecodeRequests() const; |
| 273 | 276 |
| 274 typedef DecoderStream<DemuxerStream::VIDEO> VideoFrameStream; | 277 typedef DecoderStream<DemuxerStream::VIDEO> VideoFrameStream; |
| 275 typedef DecoderStream<DemuxerStream::AUDIO> AudioBufferStream; | 278 typedef DecoderStream<DemuxerStream::AUDIO> AudioBufferStream; |
| 276 | 279 |
| 277 } // namespace media | 280 } // namespace media |
| 278 | 281 |
| 279 #endif // MEDIA_FILTERS_DECODER_STREAM_H_ | 282 #endif // MEDIA_FILTERS_DECODER_STREAM_H_ |
| OLD | NEW |