Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: media/video/capture/video_capture_device_dummy.h

Issue 15906019: Hook up EncodedVideoSource on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cl_6
Patch Set: bbd3b746f Rebase. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698