OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Observer class of Sinkfilter. The implementor of this class receive video | 5 // Observer class of Sinkfilter. The implementor of this class receive video |
6 // frames from the SinkFilter DirectShow filter. | 6 // frames from the SinkFilter DirectShow filter. |
7 | 7 |
8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ | 8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ |
9 #define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ | 9 #define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ |
10 | 10 |
| 11 #include <stdint.h> |
| 12 |
11 namespace media { | 13 namespace media { |
12 | 14 |
13 class SinkFilterObserver { | 15 class SinkFilterObserver { |
14 public: | 16 public: |
15 // SinkFilter will call this function with all frames delivered to it. | 17 // SinkFilter will call this function with all frames delivered to it. |
16 // buffer in only valid during this function call. | 18 // buffer in only valid during this function call. |
17 virtual void FrameReceived(const uint8_t* buffer, | 19 virtual void FrameReceived(const uint8_t* buffer, |
18 int length, | 20 int length, |
19 base::TimeTicks timestamp) = 0; | 21 base::TimeTicks timestamp) = 0; |
20 | 22 |
21 protected: | 23 protected: |
22 virtual ~SinkFilterObserver(); | 24 virtual ~SinkFilterObserver(); |
23 }; | 25 }; |
24 | 26 |
25 } // namespace media | 27 } // namespace media |
26 | 28 |
27 #endif // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ | 29 #endif // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_ |
OLD | NEW |