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

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

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 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. 5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads 6 // DirectShow is used for capturing. DirectShow provide its own threads
7 // for capturing. 7 // for capturing.
8 8
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
(...skipping 26 matching lines...) Expand all
37 37
38 explicit VideoCaptureDeviceMFWin(const Name& device_name); 38 explicit VideoCaptureDeviceMFWin(const Name& device_name);
39 virtual ~VideoCaptureDeviceMFWin(); 39 virtual ~VideoCaptureDeviceMFWin();
40 40
41 // Opens the device driver for this device. 41 // Opens the device driver for this device.
42 bool Init(const base::win::ScopedComPtr<IMFMediaSource>& source); 42 bool Init(const base::win::ScopedComPtr<IMFMediaSource>& source);
43 43
44 // VideoCaptureDevice implementation. 44 // VideoCaptureDevice implementation.
45 virtual void AllocateAndStart(const VideoCaptureParams& params, 45 virtual void AllocateAndStart(const VideoCaptureParams& params,
46 scoped_ptr<VideoCaptureDevice::Client> client) 46 scoped_ptr<VideoCaptureDevice::Client> client)
47 OVERRIDE; 47 override;
48 virtual void StopAndDeAllocate() OVERRIDE; 48 virtual void StopAndDeAllocate() override;
49 49
50 // Captured new video data. 50 // Captured new video data.
51 void OnIncomingCapturedData(const uint8* data, 51 void OnIncomingCapturedData(const uint8* data,
52 int length, 52 int length,
53 int rotation, 53 int rotation,
54 const base::TimeTicks& time_stamp); 54 const base::TimeTicks& time_stamp);
55 55
56 private: 56 private:
57 void OnError(HRESULT hr); 57 void OnError(HRESULT hr);
58 58
59 Name name_; 59 Name name_;
60 base::win::ScopedComPtr<IMFActivate> device_; 60 base::win::ScopedComPtr<IMFActivate> device_;
61 scoped_refptr<MFReaderCallback> callback_; 61 scoped_refptr<MFReaderCallback> callback_;
62 62
63 base::Lock lock_; // Used to guard the below variables. 63 base::Lock lock_; // Used to guard the below variables.
64 scoped_ptr<VideoCaptureDevice::Client> client_; 64 scoped_ptr<VideoCaptureDevice::Client> client_;
65 base::win::ScopedComPtr<IMFSourceReader> reader_; 65 base::win::ScopedComPtr<IMFSourceReader> reader_;
66 VideoCaptureFormat capture_format_; 66 VideoCaptureFormat capture_format_;
67 bool capture_; 67 bool capture_;
68 68
69 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin); 69 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin);
70 }; 70 };
71 71
72 } // namespace media 72 } // namespace media
73 73
74 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 74 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
OLDNEW
« no previous file with comments | « media/video/capture/win/video_capture_device_factory_win.h ('k') | media/video/capture/win/video_capture_device_mf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698