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

Side by Side Diff: media/video/capture/win/video_capture_device_win.h

Issue 8520033: Add OVERRIDE to media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
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 // Windows specific implementation of VideoCaptureDevice. 5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide it's own threads 6 // DirectShow is used for capturing. DirectShow provide it's own threads
7 // for capturing. 7 // for capturing.
8 8
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
(...skipping 22 matching lines...) Expand all
33 explicit VideoCaptureDeviceWin(const Name& device_name); 33 explicit VideoCaptureDeviceWin(const Name& device_name);
34 virtual ~VideoCaptureDeviceWin(); 34 virtual ~VideoCaptureDeviceWin();
35 // Opens the device driver for this device. 35 // Opens the device driver for this device.
36 // This function is used by the static VideoCaptureDevice::Create function. 36 // This function is used by the static VideoCaptureDevice::Create function.
37 bool Init(); 37 bool Init();
38 38
39 // VideoCaptureDevice implementation. 39 // VideoCaptureDevice implementation.
40 virtual void Allocate(int width, 40 virtual void Allocate(int width,
41 int height, 41 int height,
42 int frame_rate, 42 int frame_rate,
43 VideoCaptureDevice::EventHandler* observer); 43 VideoCaptureDevice::EventHandler* observer) OVERRIDE;
44 virtual void Start(); 44 virtual void Start() OVERRIDE;
45 virtual void Stop(); 45 virtual void Stop() OVERRIDE;
46 virtual void DeAllocate(); 46 virtual void DeAllocate() OVERRIDE;
47 virtual const Name& device_name(); 47 virtual const Name& device_name() OVERRIDE;
48 48
49 private: 49 private:
50 enum InternalState { 50 enum InternalState {
51 kIdle, // The device driver is opened but camera is not in use. 51 kIdle, // The device driver is opened but camera is not in use.
52 kAllocated, // The camera has been allocated and can be started. 52 kAllocated, // The camera has been allocated and can be started.
53 kCapturing, // Video is being captured. 53 kCapturing, // Video is being captured.
54 kError // Error accessing HW functions. 54 kError // Error accessing HW functions.
55 // User needs to recover by destroying the object. 55 // User needs to recover by destroying the object.
56 }; 56 };
57 typedef std::map<int, Capability> CapabilityMap; 57 typedef std::map<int, Capability> CapabilityMap;
(...skipping 25 matching lines...) Expand all
83 83
84 // Map of all capabilities this device support. 84 // Map of all capabilities this device support.
85 CapabilityMap capabilities_; 85 CapabilityMap capabilities_;
86 86
87 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 87 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
88 }; 88 };
89 89
90 } // namespace media 90 } // namespace media
91 91
92 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 92 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « media/video/capture/linux/video_capture_device_linux.h ('k') | media/webm/webm_cluster_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698