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

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

Issue 1324683004: Win Video Capture: Sending the timestamps provided by the driver to the capture pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restyle Created 5 years, 3 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. 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_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
9 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 9 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 private: 71 private:
72 enum InternalState { 72 enum InternalState {
73 kIdle, // The device driver is opened but camera is not in use. 73 kIdle, // The device driver is opened but camera is not in use.
74 kCapturing, // Video is being captured. 74 kCapturing, // Video is being captured.
75 kError // Error accessing HW functions. 75 kError // Error accessing HW functions.
76 // User needs to recover by destroying the object. 76 // User needs to recover by destroying the object.
77 }; 77 };
78 78
79 // Implements SinkFilterObserver. 79 // Implements SinkFilterObserver.
80 void FrameReceived(const uint8* buffer, int length) override; 80 void FrameReceived(const uint8* buffer, int length,
81 base::TimeTicks timestamp) override;
81 82
82 bool CreateCapabilityMap(); 83 bool CreateCapabilityMap();
83 void SetAntiFlickerInCaptureFilter(const VideoCaptureParams& params); 84 void SetAntiFlickerInCaptureFilter(const VideoCaptureParams& params);
84 void SetErrorState(const std::string& reason); 85 void SetErrorState(const std::string& reason);
85 86
86 const Name device_name_; 87 const Name device_name_;
87 InternalState state_; 88 InternalState state_;
88 scoped_ptr<VideoCaptureDevice::Client> client_; 89 scoped_ptr<VideoCaptureDevice::Client> client_;
89 90
90 base::win::ScopedComPtr<IBaseFilter> capture_filter_; 91 base::win::ScopedComPtr<IBaseFilter> capture_filter_;
(...skipping 12 matching lines...) Expand all
103 VideoCaptureFormat capture_format_; 104 VideoCaptureFormat capture_format_;
104 105
105 base::ThreadChecker thread_checker_; 106 base::ThreadChecker thread_checker_;
106 107
107 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
108 }; 109 };
109 110
110 } // namespace media 111 } // namespace media
111 112
112 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 113 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « media/capture/video/win/sink_input_pin_win.cc ('k') | media/capture/video/win/video_capture_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698