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 #include "media/capture/video/mac/video_capture_device_decklink_mac.h" | 5 #include "media/capture/video/mac/video_capture_device_decklink_mac.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
10 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
11 #include "third_party/decklink/mac/include/DeckLinkAPI.h" | 12 #include "third_party/decklink/mac/include/DeckLinkAPI.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // DeckLink SDK uses ScopedComPtr-style APIs. Chrome ScopedComPtr is only | 16 // DeckLink SDK uses ScopedComPtr-style APIs. Chrome ScopedComPtr is only |
16 // available for Windows builds. This is a verbatim knock-off of the needed | 17 // available for Windows builds. This is a verbatim knock-off of the needed |
17 // parts of base::win::ScopedComPtr<> for ref counting. | 18 // parts of base::win::ScopedComPtr<> for ref counting. |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 if (decklink_capture_delegate_.get()) | 481 if (decklink_capture_delegate_.get()) |
481 decklink_capture_delegate_->AllocateAndStart(params); | 482 decklink_capture_delegate_->AllocateAndStart(params); |
482 } | 483 } |
483 | 484 |
484 void VideoCaptureDeviceDeckLinkMac::StopAndDeAllocate() { | 485 void VideoCaptureDeviceDeckLinkMac::StopAndDeAllocate() { |
485 if (decklink_capture_delegate_.get()) | 486 if (decklink_capture_delegate_.get()) |
486 decklink_capture_delegate_->StopAndDeAllocate(); | 487 decklink_capture_delegate_->StopAndDeAllocate(); |
487 } | 488 } |
488 | 489 |
489 } // namespace media | 490 } // namespace media |
OLD | NEW |