OLD | NEW |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Following the enumeration, each camera will have only one capability. | 42 // Following the enumeration, each camera will have only one capability. |
43 static void EnumerateDeviceCapabilities( | 43 static void EnumerateDeviceCapabilities( |
44 const VideoCaptureDevice::Name& device, | 44 const VideoCaptureDevice::Name& device, |
45 VideoCaptureFormats* supported_formats); | 45 VideoCaptureFormats* supported_formats); |
46 | 46 |
47 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name); | 47 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name); |
48 ~VideoCaptureDeviceDeckLinkMac() override; | 48 ~VideoCaptureDeviceDeckLinkMac() override; |
49 | 49 |
50 // Copy of VideoCaptureDevice::Client::OnIncomingCapturedData(). Used by | 50 // Copy of VideoCaptureDevice::Client::OnIncomingCapturedData(). Used by |
51 // |decklink_capture_delegate_| to forward captured frames. | 51 // |decklink_capture_delegate_| to forward captured frames. |
52 void OnIncomingCapturedData(const uint8* data, | 52 void OnIncomingCapturedData(const uint8_t* data, |
53 size_t length, | 53 size_t length, |
54 const VideoCaptureFormat& frame_format, | 54 const VideoCaptureFormat& frame_format, |
55 int rotation, // Clockwise. | 55 int rotation, // Clockwise. |
56 base::TimeTicks timestamp); | 56 base::TimeTicks timestamp); |
57 | 57 |
58 // Forwarder to VideoCaptureDevice::Client::OnError(). | 58 // Forwarder to VideoCaptureDevice::Client::OnError(). |
59 void SendErrorString(const tracked_objects::Location& from_here, | 59 void SendErrorString(const tracked_objects::Location& from_here, |
60 const std::string& reason); | 60 const std::string& reason); |
61 | 61 |
62 // Forwarder to VideoCaptureDevice::Client::OnLog(). | 62 // Forwarder to VideoCaptureDevice::Client::OnLog(). |
(...skipping 15 matching lines...) Expand all Loading... |
78 | 78 |
79 // Checks for Device (a.k.a. Audio) thread. | 79 // Checks for Device (a.k.a. Audio) thread. |
80 base::ThreadChecker thread_checker_; | 80 base::ThreadChecker thread_checker_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); | 82 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace media | 85 } // namespace media |
86 | 86 |
87 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ | 87 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
OLD | NEW |