OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Implementation of VideoCaptureDevice class for Blackmagic video capture |
| 6 // devices by using the DeckLink SDK. |
| 7 |
| 8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
| 9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
| 10 |
| 11 #include "media/video/capture/video_capture_device.h" |
| 12 |
| 13 #import <Foundation/Foundation.h> |
| 14 |
| 15 namespace media { |
| 16 |
| 17 // Extension of VideoCaptureDevice to create and manipulate Blackmagic devices |
| 18 // via DeckLink SDK. |
| 19 class MEDIA_EXPORT VideoCaptureDeviceDeckLinkMac : public VideoCaptureDevice { |
| 20 public: |
| 21 // Gets the names of all DeckLink video capture devices connected to this |
| 22 // computer, as enumerated by the DeckLink SDK. |
| 23 static void EnumerateDevices(VideoCaptureDevice::Names* device_names); |
| 24 |
| 25 // Gets the supported formats of a particular device attached to the system, |
| 26 // identified by |device|. Formats are retrieved from the DeckLink SDK. |
| 27 static void EnumerateDeviceCapabilities( |
| 28 const VideoCaptureDevice::Name& device, |
| 29 VideoCaptureFormats* supported_formats); |
| 30 |
| 31 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name); |
| 32 virtual ~VideoCaptureDeviceDeckLinkMac(); |
| 33 |
| 34 // VideoCaptureDevice implementation. |
| 35 virtual void AllocateAndStart( |
| 36 const VideoCaptureParams& params, |
| 37 scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE; |
| 38 virtual void StopAndDeAllocate() OVERRIDE; |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac); |
| 42 }; |
| 43 |
| 44 } // namespace media |
| 45 |
| 46 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_ |
OLD | NEW |