Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: media/video/capture/mac/video_capture_device_decklink_mac.h

Issue 518073002: Mac VideoCapture: Support for Blackmagic DeckLink device & capabilities enumeration, using SDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped_refptr cannot be negated in logical operations, use .get() first. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/video/capture/mac/video_capture_device_decklink_mac.h
diff --git a/media/video/capture/mac/video_capture_device_decklink_mac.h b/media/video/capture/mac/video_capture_device_decklink_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fadc188bee68ef063951f0283a149c39c576af8
--- /dev/null
+++ b/media/video/capture/mac/video_capture_device_decklink_mac.h
@@ -0,0 +1,46 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Implementation of VideoCaptureDevice class for Blackmagic video capture
+// devices by using the DeckLink SDK.
+
+#ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
+#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
+
+#include "media/video/capture/video_capture_device.h"
+
+#import <Foundation/Foundation.h>
+
+namespace media {
+
+// Extension of VideoCaptureDevice to create and manipulate Blackmagic devices
+// via DeckLink SDK.
+class MEDIA_EXPORT VideoCaptureDeviceDeckLinkMac : public VideoCaptureDevice {
+ public:
+ // Gets the names of all DeckLink video capture devices connected to this
+ // computer, as enumerated by the DeckLink SDK.
+ static void EnumerateDevices(VideoCaptureDevice::Names* device_names);
+
+ // Gets the supported formats of a particular device attached to the system,
+ // identified by |device|. Formats are retrieved from the DeckLink SDK.
+ static void EnumerateDeviceCapabilities(
+ const VideoCaptureDevice::Name& device,
+ VideoCaptureFormats* supported_formats);
+
+ explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name);
+ virtual ~VideoCaptureDeviceDeckLinkMac();
+
+ // VideoCaptureDevice implementation.
+ virtual void AllocateAndStart(
+ const VideoCaptureParams& params,
+ scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE;
+ virtual void StopAndDeAllocate() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac);
+};
+
+} // namespace media
+
+#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698