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 // A dummy implementation of VideoCaptureDevice to use for platforms without | 5 // A dummy implementation of VideoCaptureDevice to use for platforms without |
6 // real video capture support. The class will be removed once the other | 6 // real video capture support. The class will be removed once the other |
7 // platforms have real video capture device support. | 7 // platforms have real video capture device support. |
8 // | 8 // |
9 // TODO(mflodman) Remove when video_capture_device_mac and | 9 // TODO(mflodman) Remove when video_capture_device_mac and |
10 // video_capture_device_win are available. | 10 // video_capture_device_win are available. |
11 | 11 |
12 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ | 12 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ |
13 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ | 13 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ |
14 | 14 |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "media/video/capture/video_capture_device.h" | 16 #include "media/video/capture/video_capture_device.h" |
17 | 17 |
18 namespace media { | 18 namespace media { |
19 | 19 |
20 class VideoCaptureDeviceDummy : public VideoCaptureDevice { | 20 class VideoCaptureDeviceDummy : public VideoCaptureDevice { |
21 public: | 21 public: |
| 22 virtual VideoEncodingCapability GetEncodingCapability() OVERRIDE; |
| 23 virtual void TryConfigureEncodedBitstream( |
| 24 const RuntimeVideoEncodingParameters& params) OVERRIDE; |
22 virtual void Allocate(int width, int height, int frame_rate, | 25 virtual void Allocate(int width, int height, int frame_rate, |
23 VideoCaptureDevice::EventHandler* observer) OVERRIDE; | 26 VideoCaptureDevice::EventHandler* observer) OVERRIDE; |
24 virtual void Start() OVERRIDE; | 27 virtual void Start() OVERRIDE; |
25 virtual void Stop() OVERRIDE; | 28 virtual void Stop() OVERRIDE; |
26 virtual void DeAllocate() OVERRIDE; | 29 virtual void DeAllocate() OVERRIDE; |
27 | 30 |
28 private: | 31 private: |
29 VideoCaptureDeviceDummy(); | 32 VideoCaptureDeviceDummy(); |
30 virtual ~VideoCaptureDeviceDummy(); | 33 virtual ~VideoCaptureDeviceDummy(); |
31 | 34 |
32 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy); | 35 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy); |
33 }; | 36 }; |
34 | 37 |
35 } // namespace media | 38 } // namespace media |
36 | 39 |
37 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ | 40 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_ |
OLD | NEW |