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_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ | 8 #ifndef MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
9 #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ | 9 #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace tracked_objects { | 25 namespace tracked_objects { |
26 class Location; | 26 class Location; |
27 } // namespace tracked_objects | 27 } // namespace tracked_objects |
28 | 28 |
29 namespace media { | 29 namespace media { |
30 | 30 |
31 // Extension of VideoCaptureDevice to create and manipulate Blackmagic devices. | 31 // Extension of VideoCaptureDevice to create and manipulate Blackmagic devices. |
32 // Creates a reference counted |decklink_capture_delegate_| that does all the | 32 // Creates a reference counted |decklink_capture_delegate_| that does all the |
33 // DeckLink SDK configuration and capture work while holding a weak reference to | 33 // DeckLink SDK configuration and capture work while holding a weak reference to |
34 // us for sending back frames, logs and error messages. | 34 // us for sending back frames, logs and error messages. |
35 class MEDIA_EXPORT VideoCaptureDeviceDeckLinkMac : public VideoCaptureDevice { | 35 class CAPTURE_EXPORT VideoCaptureDeviceDeckLinkMac : public VideoCaptureDevice { |
36 public: | 36 public: |
37 // Gets the names of all DeckLink video capture devices connected to this | 37 // Gets the names of all DeckLink video capture devices connected to this |
38 // computer, as enumerated by the DeckLink SDK. To allow the user to choose | 38 // computer, as enumerated by the DeckLink SDK. To allow the user to choose |
39 // exactly which capture format she wants, we enumerate as many cameras as | 39 // exactly which capture format she wants, we enumerate as many cameras as |
40 // capture formats. | 40 // capture formats. |
41 static void EnumerateDevices(VideoCaptureDevice::Names* device_names); | 41 static void EnumerateDevices(VideoCaptureDevice::Names* device_names); |
42 | 42 |
43 // Gets the supported formats of a particular device attached to the system, | 43 // Gets the supported formats of a particular device attached to the system, |
44 // identified by |device|. Formats are retrieved from the DeckLink SDK. | 44 // identified by |device|. Formats are retrieved from the DeckLink SDK. |
45 // Following the enumeration, each camera will have only one capability. | 45 // Following the enumeration, each camera will have only one capability. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // Checks for Device (a.k.a. Audio) thread. | 84 // Checks for Device (a.k.a. Audio) thread. |
85 base::ThreadChecker thread_checker_; | 85 base::ThreadChecker thread_checker_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); | 87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace media | 90 } // namespace media |
91 | 91 |
92 #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ | 92 #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
OLD | NEW |