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

Side by Side Diff: webrtc/modules/video_capture/objc/device_info.mm

Issue 2534553002: Replace VideoCaptureDataCallback by VideoSinkInterface. (Closed)
Patch Set: Break overlong lines. Created 4 years 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 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 using namespace webrtc; 24 using namespace webrtc;
25 using namespace videocapturemodule; 25 using namespace videocapturemodule;
26 26
27 static NSArray* camera_presets = @[ 27 static NSArray* camera_presets = @[
28 AVCaptureSessionPreset352x288, AVCaptureSessionPreset640x480, 28 AVCaptureSessionPreset352x288, AVCaptureSessionPreset640x480,
29 AVCaptureSessionPreset1280x720 29 AVCaptureSessionPreset1280x720
30 ]; 30 ];
31 31
32 #define IOS_UNSUPPORTED() \ 32 #define IOS_UNSUPPORTED() \
33 WEBRTC_TRACE(kTraceError, kTraceVideoCapture, _id, \ 33 WEBRTC_TRACE(kTraceError, kTraceVideoCapture, 0, \
34 "%s is not supported on the iOS platform.", __FUNCTION__); \ 34 "%s is not supported on the iOS platform.", __FUNCTION__); \
35 return -1; 35 return -1;
36 36
37 VideoCaptureModule::DeviceInfo* VideoCaptureImpl::CreateDeviceInfo( 37 VideoCaptureModule::DeviceInfo* VideoCaptureImpl::CreateDeviceInfo() {
38 const int32_t device_id) { 38 return new DeviceInfoIos();
39 return new DeviceInfoIos(device_id);
40 } 39 }
41 40
42 DeviceInfoIos::DeviceInfoIos(const int32_t device_id) 41 DeviceInfoIos::DeviceInfoIos() {
43 : DeviceInfoImpl(device_id) {
44 this->Init(); 42 this->Init();
45 } 43 }
46 44
47 DeviceInfoIos::~DeviceInfoIos() {} 45 DeviceInfoIos::~DeviceInfoIos() {}
48 46
49 int32_t DeviceInfoIos::Init() { 47 int32_t DeviceInfoIos::Init() {
50 // Fill in all device capabilities. 48 // Fill in all device capabilities.
51 49
52 int deviceCount = [DeviceInfoIosObjC captureDeviceCount]; 50 int deviceCount = [DeviceInfoIosObjC captureDeviceCount];
53 51
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::map<std::string, std::vector<VideoCaptureCapability>>::iterator it = 161 std::map<std::string, std::vector<VideoCaptureCapability>>::iterator it =
164 _capabilitiesMap.find(deviceName); 162 _capabilitiesMap.find(deviceName);
165 VideoCaptureCapabilities deviceCapabilities; 163 VideoCaptureCapabilities deviceCapabilities;
166 if (it != _capabilitiesMap.end()) { 164 if (it != _capabilitiesMap.end()) {
167 _captureCapabilities = it->second; 165 _captureCapabilities = it->second;
168 return 0; 166 return 0;
169 } 167 }
170 168
171 return -1; 169 return -1;
172 } 170 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_capture/objc/device_info.h ('k') | webrtc/modules/video_capture/objc/rtc_video_capture_objc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698