OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains abstract classes used for media filter to handle video | 5 // This file contains abstract classes used for media filter to handle video |
6 // capture devices. | 6 // capture devices. |
7 | 7 |
8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ | 8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ |
9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ | 9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
14 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
15 #include "media/video/capture/video_capture_types.h" | 15 #include "media/video/capture/video_capture_types.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 class MEDIA_EXPORT VideoCapture { | 19 class MEDIA_EXPORT VideoCapture { |
20 public: | 20 public: |
21 // TODO(wjia): consider merging with media::VideoFrame if possible. | 21 // TODO(wjia): consider merging with media::VideoFrame if possible. |
22 class VideoFrameBuffer : public base::RefCountedThreadSafe<VideoFrameBuffer> { | 22 class VideoFrameBuffer : public base::RefCountedThreadSafe<VideoFrameBuffer> { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 protected: | 99 protected: |
100 virtual ~VideoCapture() {} | 100 virtual ~VideoCapture() {} |
101 | 101 |
102 private: | 102 private: |
103 DISALLOW_COPY_AND_ASSIGN(VideoCapture); | 103 DISALLOW_COPY_AND_ASSIGN(VideoCapture); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace media | 106 } // namespace media |
107 | 107 |
108 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ | 108 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ |
OLD | NEW |