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

Unified Diff: media/capture/video/win/video_capture_device_win.cc

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: 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/win/video_capture_device_win.cc
diff --git a/media/capture/video/win/video_capture_device_win.cc b/media/capture/video/win/video_capture_device_win.cc
index c9961fa222eb84d90c768ea9e40da3574cf63074..d3ef73abe3a55dc14606f3fd2a019033a897ef1c 100644
--- a/media/capture/video/win/video_capture_device_win.cc
+++ b/media/capture/video/win/video_capture_device_win.cc
@@ -447,9 +447,17 @@ void VideoCaptureDeviceWin::StopAndDeAllocate() {
}
// Implements SinkFilterObserver::SinkFilterObserver.
-void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer, int length) {
- client_->OnIncomingCapturedData(buffer, length, capture_format_, 0,
- base::TimeTicks::Now());
+void VideoCaptureDeviceWin::FrameReceived(
+ const uint8* buffer,
+ int length,
+ REFERENCE_TIME raw_timestamp) {
+ client_->OnIncomingCapturedData(
+ buffer,
+ length,
+ capture_format_,
+ 0,
+ base::TimeTicks() +
mcasas 2015/09/09 23:33:27 Funny you need to add a dummy ctor to add a TimeDe
qiangchen 2015/09/10 18:03:01 TimeTicks has only static function FromInternalVal
+ base::TimeDelta::FromMicroseconds(raw_timestamp / 10));
}
bool VideoCaptureDeviceWin::CreateCapabilityMap() {

Powered by Google App Engine
This is Rietveld 408576698