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

Side by Side 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: rsesek@ and dalecurtis@ comments. Added missing ScopedDeckLinkPtr::Release(). 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 unified diff | Download patch
OLDNEW
(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 // Gets the supported formats of a particular device attached to the system,
Robert Sesek 2014/09/04 14:25:01 nit: blank line before
mcasas 2014/09/04 15:59:21 Done.
25 // identified by |device|. Formats are retrieved from the DeckLink SDK.
26 static void EnumerateDeviceCapabilities(
27 const VideoCaptureDevice::Name& device,
28 VideoCaptureFormats* supported_formats);
29
30 explicit VideoCaptureDeviceDeckLinkMac(const Name& device_name);
31 virtual ~VideoCaptureDeviceDeckLinkMac();
32
33 // VideoCaptureDevice implementation.
34 virtual void AllocateAndStart(
35 const VideoCaptureParams& params,
36 scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE;
37 virtual void StopAndDeAllocate() OVERRIDE;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDeckLinkMac);
41 };
42
43 } // namespace media
44
45 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DECKLINK_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698