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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Forwarder to VideoCaptureDevice::Client::OnError(). | 54 // Forwarder to VideoCaptureDevice::Client::OnError(). |
55 void SendErrorString(const std::string& reason); | 55 void SendErrorString(const std::string& reason); |
56 | 56 |
57 // Forwarder to VideoCaptureDevice::Client::OnLog(). | 57 // Forwarder to VideoCaptureDevice::Client::OnLog(). |
58 void SendLogString(const std::string& message); | 58 void SendLogString(const std::string& message); |
59 | 59 |
60 private: | 60 private: |
61 // VideoCaptureDevice implementation. | 61 // VideoCaptureDevice implementation. |
62 virtual void AllocateAndStart( | 62 virtual void AllocateAndStart( |
63 const VideoCaptureParams& params, | 63 const VideoCaptureParams& params, |
64 scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE; | 64 scoped_ptr<VideoCaptureDevice::Client> client) override; |
65 virtual void StopAndDeAllocate() OVERRIDE; | 65 virtual void StopAndDeAllocate() override; |
66 | 66 |
67 // Protects concurrent setting and using of |client_|. | 67 // Protects concurrent setting and using of |client_|. |
68 base::Lock lock_; | 68 base::Lock lock_; |
69 scoped_ptr<VideoCaptureDevice::Client> client_; | 69 scoped_ptr<VideoCaptureDevice::Client> client_; |
70 | 70 |
71 // Reference counted handle to the DeckLink capture delegate, ref counted by | 71 // Reference counted handle to the DeckLink capture delegate, ref counted by |
72 // the DeckLink SDK as well. | 72 // the DeckLink SDK as well. |
73 scoped_refptr<DeckLinkCaptureDelegate> decklink_capture_delegate_; | 73 scoped_refptr<DeckLinkCaptureDelegate> decklink_capture_delegate_; |
74 | 74 |
75 // Checks for Device (a.k.a. Audio) thread. | 75 // Checks for Device (a.k.a. Audio) thread. |
76 base::ThreadChecker thread_checker_; | 76 base::ThreadChecker thread_checker_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); | 78 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace media | 81 } // namespace media |
82 | 82 |
83 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ | 83 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
OLD | NEW |