OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Filters are connected in a strongly typed manner, with downstream filters | 5 // Filters are connected in a strongly typed manner, with downstream filters |
6 // always reading data from upstream filters. Upstream filters have no clue | 6 // always reading data from upstream filters. Upstream filters have no clue |
7 // who is actually reading from them, and return the results via callbacks. | 7 // who is actually reading from them, and return the results via callbacks. |
8 // | 8 // |
9 // DemuxerStream(Video) <- VideoDecoder <- VideoRenderer | 9 // DemuxerStream(Video) <- VideoDecoder <- VideoRenderer |
10 // DataSource <- Demuxer < | 10 // DataSource <- Demuxer < |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define MEDIA_BASE_FILTERS_H_ | 24 #define MEDIA_BASE_FILTERS_H_ |
25 | 25 |
26 #include <limits> | 26 #include <limits> |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 #include "base/callback.h" | 29 #include "base/callback.h" |
30 #include "base/logging.h" | 30 #include "base/logging.h" |
31 #include "base/message_loop.h" | 31 #include "base/message_loop.h" |
32 #include "base/ref_counted.h" | 32 #include "base/ref_counted.h" |
33 #include "base/time.h" | 33 #include "base/time.h" |
| 34 #include "base/scoped_ptr.h" |
34 #include "media/base/media_format.h" | 35 #include "media/base/media_format.h" |
35 | 36 |
36 namespace media { | 37 namespace media { |
37 | 38 |
38 class Buffer; | 39 class Buffer; |
39 class Decoder; | 40 class Decoder; |
40 class DemuxerStream; | 41 class DemuxerStream; |
41 class FilterHost; | 42 class FilterHost; |
42 class VideoFrame; | 43 class VideoFrame; |
43 class WritableBuffer; | 44 class WritableBuffer; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // buffer. | 374 // buffer. |
374 virtual bool HasEnded() = 0; | 375 virtual bool HasEnded() = 0; |
375 | 376 |
376 // Sets the output volume. | 377 // Sets the output volume. |
377 virtual void SetVolume(float volume) = 0; | 378 virtual void SetVolume(float volume) = 0; |
378 }; | 379 }; |
379 | 380 |
380 } // namespace media | 381 } // namespace media |
381 | 382 |
382 #endif // MEDIA_BASE_FILTERS_H_ | 383 #endif // MEDIA_BASE_FILTERS_H_ |
OLD | NEW |