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

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

Issue 2856893003: Image Capture: wire getCapabilities() in Windows (Closed)
Patch Set: Rebase: ScopedComPtr s/QueryInterface/CopyTo/ Created 3 years, 7 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
« no previous file with comments | « no previous file | media/capture/video/win/video_capture_device_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Windows specific implementation of VideoCaptureDevice. DirectShow is used for 5 // Windows specific implementation of VideoCaptureDevice. DirectShow is used for
6 // capturing. DirectShow provide its own threads for capturing. 6 // capturing. DirectShow provide its own threads for capturing.
7 7
8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
9 #define MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 9 #define MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ~VideoCaptureDeviceWin() override; 69 ~VideoCaptureDeviceWin() override;
70 // Opens the device driver for this device. 70 // Opens the device driver for this device.
71 bool Init(); 71 bool Init();
72 72
73 // VideoCaptureDevice implementation. 73 // VideoCaptureDevice implementation.
74 void AllocateAndStart( 74 void AllocateAndStart(
75 const VideoCaptureParams& params, 75 const VideoCaptureParams& params,
76 std::unique_ptr<VideoCaptureDevice::Client> client) override; 76 std::unique_ptr<VideoCaptureDevice::Client> client) override;
77 void StopAndDeAllocate() override; 77 void StopAndDeAllocate() override;
78 void TakePhoto(TakePhotoCallback callback) override; 78 void TakePhoto(TakePhotoCallback callback) override;
79 void GetPhotoCapabilities(GetPhotoCapabilitiesCallback callback) override;
79 80
80 private: 81 private:
81 enum InternalState { 82 enum InternalState {
82 kIdle, // The device driver is opened but camera is not in use. 83 kIdle, // The device driver is opened but camera is not in use.
83 kCapturing, // Video is being captured. 84 kCapturing, // Video is being captured.
84 kError // Error accessing HW functions. 85 kError // Error accessing HW functions.
85 // User needs to recover by destroying the object. 86 // User needs to recover by destroying the object.
86 }; 87 };
87 88
88 // Implements SinkFilterObserver. 89 // Implements SinkFilterObserver.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::queue<TakePhotoCallback> take_photo_callbacks_; 121 std::queue<TakePhotoCallback> take_photo_callbacks_;
121 122
122 base::ThreadChecker thread_checker_; 123 base::ThreadChecker thread_checker_;
123 124
124 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 125 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
125 }; 126 };
126 127
127 } // namespace media 128 } // namespace media
128 129
129 #endif // MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 130 #endif // MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | media/capture/video/win/video_capture_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698