| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 6 #define MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 class VideoCaptureDeviceMac; | 11 class VideoCaptureDeviceMac; |
| 12 } | 12 } |
| 13 | 13 |
| 14 // Protocol representing platform-dependent video capture on Mac, implemented | 14 // Protocol representing platform-dependent video capture on Mac. |
| 15 // by both QTKit and AVFoundation APIs. | |
| 16 @protocol PlatformVideoCapturingMac<NSObject> | 15 @protocol PlatformVideoCapturingMac<NSObject> |
| 17 | 16 |
| 18 // This method initializes the instance by calling NSObject |init| and registers | 17 // This method initializes the instance by calling NSObject |init| and registers |
| 19 // internally a frame receiver at the same time. The frame receiver is supposed | 18 // internally a frame receiver at the same time. The frame receiver is supposed |
| 20 // to be initialised before and outlive the VideoCapturingDeviceMac | 19 // to be initialised before and outlive the VideoCapturingDeviceMac |
| 21 // implementation. | 20 // implementation. |
| 22 - (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; | 21 - (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; |
| 23 | 22 |
| 24 // Sets the frame receiver. This method executes the registration in mutual | 23 // Sets the frame receiver. This method executes the registration in mutual |
| 25 // exclusion. | 24 // exclusion. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 // Starts video capturing, registers observers. Returns YES on success, NO | 43 // Starts video capturing, registers observers. Returns YES on success, NO |
| 45 // otherwise. | 44 // otherwise. |
| 46 - (BOOL)startCapture; | 45 - (BOOL)startCapture; |
| 47 | 46 |
| 48 // Stops video capturing, unregisters observers. | 47 // Stops video capturing, unregisters observers. |
| 49 - (void)stopCapture; | 48 - (void)stopCapture; |
| 50 | 49 |
| 51 @end | 50 @end |
| 52 | 51 |
| 53 #endif // MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ | 52 #endif // MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ |
| OLD | NEW |