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" | |
35 #include "media/base/media_format.h" | 34 #include "media/base/media_format.h" |
36 | 35 |
37 namespace media { | 36 namespace media { |
38 | 37 |
39 class Buffer; | 38 class Buffer; |
40 class Decoder; | 39 class Decoder; |
41 class DemuxerStream; | 40 class DemuxerStream; |
42 class FilterHost; | 41 class FilterHost; |
43 class VideoFrame; | 42 class VideoFrame; |
44 class WritableBuffer; | 43 class WritableBuffer; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // buffer. | 373 // buffer. |
375 virtual bool HasEnded() = 0; | 374 virtual bool HasEnded() = 0; |
376 | 375 |
377 // Sets the output volume. | 376 // Sets the output volume. |
378 virtual void SetVolume(float volume) = 0; | 377 virtual void SetVolume(float volume) = 0; |
379 }; | 378 }; |
380 | 379 |
381 } // namespace media | 380 } // namespace media |
382 | 381 |
383 #endif // MEDIA_BASE_FILTERS_H_ | 382 #endif // MEDIA_BASE_FILTERS_H_ |
OLD | NEW |