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

Side by Side Diff: media/capture/video/mac/video_capture_device_decklink_mac.h

Issue 1983193002: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve Comments Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Implementation of VideoCaptureDevice class for Blackmagic video capture 5 // Implementation of VideoCaptureDevice class for Blackmagic video capture
6 // devices by using the DeckLink SDK. 6 // devices by using the DeckLink SDK.
7 7
8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ 9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name); 50 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name);
51 ~VideoCaptureDeviceDeckLinkMac() override; 51 ~VideoCaptureDeviceDeckLinkMac() override;
52 52
53 // Copy of VideoCaptureDevice::Client::OnIncomingCapturedData(). Used by 53 // Copy of VideoCaptureDevice::Client::OnIncomingCapturedData(). Used by
54 // |decklink_capture_delegate_| to forward captured frames. 54 // |decklink_capture_delegate_| to forward captured frames.
55 void OnIncomingCapturedData(const uint8_t* data, 55 void OnIncomingCapturedData(const uint8_t* data,
56 size_t length, 56 size_t length,
57 const VideoCaptureFormat& frame_format, 57 const VideoCaptureFormat& frame_format,
58 int rotation, // Clockwise. 58 int rotation, // Clockwise.
59 base::TimeTicks timestamp); 59 base::TimeTicks reference_time,
60 base::TimeDelta timestamp);
60 61
61 // Forwarder to VideoCaptureDevice::Client::OnError(). 62 // Forwarder to VideoCaptureDevice::Client::OnError().
62 void SendErrorString(const tracked_objects::Location& from_here, 63 void SendErrorString(const tracked_objects::Location& from_here,
63 const std::string& reason); 64 const std::string& reason);
64 65
65 // Forwarder to VideoCaptureDevice::Client::OnLog(). 66 // Forwarder to VideoCaptureDevice::Client::OnLog().
66 void SendLogString(const std::string& message); 67 void SendLogString(const std::string& message);
67 68
68 private: 69 private:
69 // VideoCaptureDevice implementation. 70 // VideoCaptureDevice implementation.
(...skipping 12 matching lines...) Expand all
82 83
83 // Checks for Device (a.k.a. Audio) thread. 84 // Checks for Device (a.k.a. Audio) thread.
84 base::ThreadChecker thread_checker_; 85 base::ThreadChecker thread_checker_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); 87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac);
87 }; 88 };
88 89
89 } // namespace media 90 } // namespace media
90 91
91 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ 92 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
OLDNEW
« no previous file with comments | « media/capture/video/linux/v4l2_capture_delegate.cc ('k') | media/capture/video/mac/video_capture_device_decklink_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698