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

Side by Side Diff: media/filters/decoder_stream.h

Issue 2075293003: CL for perf tryjob on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | media/filters/decoder_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/filters/decoder_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698