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

Side by Side Diff: media/capture/video/mac/video_capture_device_avfoundation_mac.h

Issue 2169013002: Change class VideoCaptureDevice::Name to struct VideoCaptureDeviceDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 4 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
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_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_
6 #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ 6 #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // An AVDataOutput specialized for taking pictures out of |captureSession_|. 78 // An AVDataOutput specialized for taking pictures out of |captureSession_|.
79 base::scoped_nsobject<CrAVCaptureStillImageOutput> stillImageOutput_; 79 base::scoped_nsobject<CrAVCaptureStillImageOutput> stillImageOutput_;
80 80
81 base::ThreadChecker main_thread_checker_; 81 base::ThreadChecker main_thread_checker_;
82 } 82 }
83 83
84 // Returns a dictionary of capture devices with friendly name and unique id. 84 // Returns a dictionary of capture devices with friendly name and unique id.
85 + (NSDictionary*)deviceNames; 85 + (NSDictionary*)deviceNames;
86 86
87 // Retrieve the capture supported formats for a given device |name|. 87 // Retrieve the capture supported formats for a given device |descriptor|.
88 + (void)getDevice:(const media::VideoCaptureDevice::Name&)name 88 + (void)getDevice:(const media::VideoCaptureDeviceDescriptor&)descriptor
89 supportedFormats:(media::VideoCaptureFormats*)formats; 89 supportedFormats:(media::VideoCaptureFormats*)formats;
90 90
91 // Initializes the instance and the underlying capture session and registers the 91 // Initializes the instance and the underlying capture session and registers the
92 // frame receiver. 92 // frame receiver.
93 - (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; 93 - (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
94 94
95 // Sets the frame receiver. 95 // Sets the frame receiver.
96 - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; 96 - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
97 97
98 // Sets which capture device to use by name, retrieved via |deviceNames|. Once 98 // Sets which capture device to use by name, retrieved via |deviceNames|. Once
(...skipping 19 matching lines...) Expand all
118 // Stops video capturing and stops listening to notifications. 118 // Stops video capturing and stops listening to notifications.
119 - (void)stopCapture; 119 - (void)stopCapture;
120 120
121 // Takes a photo. This method should only be called between -startCapture and 121 // Takes a photo. This method should only be called between -startCapture and
122 // -stopCapture. 122 // -stopCapture.
123 - (void)takePhoto; 123 - (void)takePhoto;
124 124
125 @end 125 @end
126 126
127 #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ 127 #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698